Skip to content

Commit

Permalink
Merge branch 'azamat/cam/build-threaded-update' into next (PR #1464)
Browse files Browse the repository at this point in the history
Update CAM's nosmp configure option
Turn smp off when both NTHRDS_ATM==1 and BUILD_THREADED==FALSE. If
BUILD_THREADED==TRUE, then run CAM in single-threaded mode with
HORIZ_OPENMP CPP macro turned on.

Fixes #1382
[BFB]
  • Loading branch information
amametjanov committed May 4, 2017
2 parents b3a3fbf + d69272d commit 00229cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/cam/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ my $RUN_REFTOD = `./xmlquery RUN_REFTOD -value`;
my $UTILROOT = `./xmlquery UTILROOT -value`;
my $DOCN_MODE = `./xmlquery DOCN_MODE -value`;
my $COMPILER = `./xmlquery COMPILER -value`; # for chem preprocessor
my $BUILD_THREADED = `./xmlquery BUILD_THREADED -value`;

my @dirs = ("$CIMEROOT/utils/perl5lib");
unshift @INC, @dirs;
Expand Down Expand Up @@ -75,7 +76,7 @@ if ($BUILD_COMPLETE eq 'FALSE') {
my $spmd = '-spmd';
if ($MPILIB eq 'mpi-serial') {$spmd = "-nospmd";}
my $smp = '-smp';
if ($NTHRDS_ATM == 1) {$smp = "-nosmp";}
if (($NTHRDS_ATM == 1) && ($BUILD_THREADED eq 'FALSE')) {$smp = "-nosmp";}

# The ocean component setting is only used by CAM to do attribute matching for
# setting default tuning parameter values. In SOM mode we want to use the same
Expand Down

0 comments on commit 00229cc

Please sign in to comment.