Skip to content

Commit cf37b18

Browse files
committed
AL: added some fixes for compilation of petsc on BG/Q
1 parent 23c7074 commit cf37b18

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tools/scripts/install-coolfluid-deps.pl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ ()
12901290
run_command_or_die("export PATH=$opt_cuda_dir/bin:\\\$PATH");
12911291
run_command_or_die("export LD_LIBRARY_PATH=/usr/lib64:$opt_cuda_dir/lib64:/usr/lib64/nvidia:\\\$LD_LIBRARY_PATH");
12921292

1293-
if ($version eq "3.6.3" or $version eq "3.7.3a" or $version eq "3.7.3-next" ) {
1293+
if ($version eq "3.6.3" or $version eq "3.7.3a" or $version eq "3.7.3-next" or $version eq "3.7.6") {
12941294
if ($opt_viennacl eq "0") {
12951295
# download and unpack compatible cusp source files
12961296
my $cusp_name = "cusp-v0.4.0.zip";
@@ -1367,6 +1367,17 @@ ()
13671367
my $COPTFLAGS ="-O3 ";
13681368
my $CXXOPTFLAGS ="-O3 ";
13691369

1370+
# IBM BG/Q
1371+
if ( $petsc_arch eq "arch-ppc64" ) {
1372+
$CXXFLAGS="-O3 -qstrict -qarch=qp -qtune=qp";
1373+
$CFLAGS="-O3 -qstrict -qarch=qp -qtune=qp";
1374+
$FFLAGS="-O3 -qstrict -qarch=qp -qtune=qp";
1375+
$F90FLAGS="-O3 -qstrict -qarch=qp -qtune=qp";
1376+
$CXXOPTFLAGS="-O3 -qstrict -qarch=qp -qtune=qp";
1377+
$COPTFLAGS="-O3 -qstrict -qarch=qp -qtune=qp";
1378+
$FOPTFLAGS="-O3 -qstrict -qarch=qp -qtune=qp";
1379+
}
1380+
13701381
if ($version eq "3.7.6") {
13711382
$dynamicload ="";
13721383
}

0 commit comments

Comments
 (0)