Modified configure script to work on Athena.#600
Conversation
…flag that triggers one of two options for either GNU or CRAY compilers. This along with the --with-blas and --with-lapack flags allows the use of Cray's libsci on Athena so things build cleanly.
tukss
left a comment
There was a problem hiding this comment.
This looks good. I was wondering if we should try to handle the Cray environments more generally. We also have them on all the DOE systems. So far I've always used the spack package to integrate those and it worked pretty well.
I'm fine with merging this now and improving on it during the hackathon.
| #DBG_FLAGS="$DBG_FLAGS -DCRAY_COMPILER" | ||
| OPT_FLAGS="$OPT_FLAGS" | ||
| DBG_FLAGS="$DBG_FLAGS" | ||
| fi |
There was a problem hiding this comment.
Do you remember why this was necessary? I've added it back then because we had similar defines for Intel and GNU. I think the only place we it matters is where we have nonstandard routines like SIGNAL.
CRAY_COMPILER is not used anywhere in the source at the moment, so it shouldn't make a difference.
There was a problem hiding this comment.
That's why I got rid of it, but left the original in the file in case it popped up at some point.
There is a flag (--for-athena) that triggers one of two options for either GNU or CRAY compilers [can add intel/aocc if wanted]. This along with the --with-blas and --with-lapack flags allows the use of Cray's libsci on Athena so things build cleanly, you just need to specify the library path with $CRAY_LIBSCI_PREFIX; same for fftw --with-fftw=$FFTW_ROOT.
Here's the currently loaded modules for the Cray environment:
module list
Currently Loaded Modulefiles:
To use GNU module unload PrgEnv-cray and module load PrgEnv-gnu. At runtime, be sure to add the libmpi path to your LD_LIBRARY_PATH for some reason that doesn't seem to be provided by the module properly. For the cray config that is
/opt/cray/pe/mpich/9.1.0/ofi/CRAY/20.0/lib
for GNU it is
/opt/cray/pe/mpich/9.1.0/ofi/GNU/11.2/lib