Skip to content

Commit

Permalink
Add KFParticle
Browse files Browse the repository at this point in the history
  • Loading branch information
fisyak committed Dec 26, 2024
1 parent 98bd47f commit 06f17bf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions mgr/ConsDefs.pm
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,7 @@
# restore
($CFLAGS,$CXXFLAGS) = @ARGS; # <--- same order than above
}
$CXXFLAGS .= " -fdiagnostics-color=always";# -Wno-pedantic -Wno-shadow -Wno-unused-parameter -Wno-extra -Wno-shadow";



Expand Down
19 changes: 17 additions & 2 deletions mgr/Conscript-standard
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,22 @@ if ( $pkg !~ /^sim$/ && $pkg !~ /^gen$/ ) {
if ( defined($ENV{Vc_LIB_DIR}) ) { die("Vc_LIB_DIR is not supported anymore. Please use Vc_DIR."); }
$LIBS = "-lVc";
if ($extraCXXFLAGS =~ /USE_TBB/) {$LIBS .= " -lTBB";}
}
} elsif ( $pkg =~ m/KFParticle/ || $pkg =~ m/StMuMcAnalysisMaker/ || $pkg =~ m/^StKFParticleAnalysisMaker$/) {
# $CPPFLAGS .= " -DDO_TPCCATRACKER_EFF_PERFORMANCE";
# $main::PATH_SEPARATOR . "#" . $Dir . $main::PATH_SEPARATOR . "#" . $Dir . "/../TPCCATracker" .
# $main::PATH_SEPARATOR . "#" . $Dir . "/../TPCCATrackerPerformance" .
# $main::PATH_SEPARATOR . "#" . $Dir . "/../KFParticlePerformance";
$CPPPATH .= $main::PATH_SEPARATOR . "#" . $Dir . "/../KFParticle" .
$main::PATH_SEPARATOR . "#" . $Dir . "/../KFParticle/KFPSimd";
my $extraCXXFLAGS = "";
# " -DNVALGRIND -DSTAR_STANDALONE";# -W -Wall -Wswitch -Wformat -Wchar-subscripts";
if ($STAR_SYS eq 'sl64_gcc447' or $STAR_SYS eq 'sl64_x8664_gcc447') {$extraCXXFLAGS .= " --param large-function-growth=500";}
$extraCXXFLAGS .= " -DNDEBUG";
$CXXFLAGS .= $extraCXXFLAGS;
# $CXXFLAGS =~ s/mavx/msse4\.2/;
$CXXFLAGS .= " -msse4.2";
# print "======================================== TH => $CPPPATH \tCPPFLAGS => $CPPFLAGS\n";
}
if ( $pkg =~ m/^Sti$/) {
if ($DEBUG =~ /-O/ and $STAR_SYS =~ /gcc432/) { # hack for Sti with gcc432
$envNoDeb = $env->clone('DEBUG' => '-g');
Expand Down Expand Up @@ -975,7 +990,7 @@ if ( $pkg !~ /^sim$/ && $pkg !~ /^gen$/ ) {
# print "pkg = $pkg FPPFLAGS = $FPPFLAGS\n";
my $libpath = $LIBPATH;
if (! $LIBS) {$libpath = "";}
# print "CPPPATH => $CPPPATH \tCPPFLAGS => $CPPFLAGS\n";
# print "======================================== TH => $CPPPATH \tCPPFLAGS => $CPPFLAGS\n";
#print "DEBUG Passing $ROOTCINT_CPPFLAGS\n";
$env2 = $env1->clone('Package' => $pkg,
'EXTRA_CPPFLAGS' => $EXTRA_CPPFLAGS,
Expand Down

0 comments on commit 06f17bf

Please sign in to comment.