Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull thirdparty libraries out or reconfigure build system #59

Closed
climbfuji opened this issue Jul 16, 2018 · 6 comments
Closed

Pull thirdparty libraries out or reconfigure build system #59

climbfuji opened this issue Jul 16, 2018 · 6 comments

Comments

@climbfuji
Copy link
Collaborator

The thirdparty libraries required to compile SCM are currently compiled with a mixture of compiler flag and preprocessor definitions coming from the calling CMakeLists.txt from scm/src and from within the individual directories (e.g. external/w3nco/v2.0.6/src/CMakeLists.txt).

I would like to propose to pull the thirdparty libraries out of gmtb-scm and install them separately in the same way as we do it for FV3. We do have a github repository for all NCEP libraries that compile them with compiler flags and preprocessor options independent of what is chosen for SCM (https://github.com/climbfuji/NCEPlibs). This will hopefully be consolidated with EMC's effort in the near future, but until then we could use this repository and the instructions in there to build on all platforms with Intel, GNU or PGI.

This would allow us to tidy up the build system for gmtb-scm and also for ccpp-physics.

Thoughts, opinions?

@grantfirl
Copy link
Collaborator

@climbfuji I'm trying to address this issue. Could you compile the NCEPlibs on Cheyenne with the modules loaded as in Cheyenne_setup_intel.csh and Cheyenne_setup_gnu.sh?

@grantfirl
Copy link
Collaborator

Addressed in PR #108

@climbfuji
Copy link
Collaborator Author

NCEPlibs are provided on Cheyenne, but for these compiler versions (Intel 19 and GNU 8). I will do this later today.

@climbfuji
Copy link
Collaborator Author

climbfuji commented Jun 5, 2019

Cheyenne / intel-19.0.2: /glade/p/ral/jntp/GMTB/tools/NCEPlibs/20190307/intel-19.0.2/mpt-2.19

Instructions:

git clone https://github.com/NCAR/NCEPlibs
cd NCEPlibs
module load ncarenv/1.2 intel/19.0.2 ncarcompilers/0.4.1 mpt/2.19 netcdf/4.6.1
mkdir -p /glade/p/ral/jntp/GMTB/tools/NCEPlibs/20190307/intel-19.0.2/mpt-2.19
./make_ncep_libs.sh -s cheyenne -c intel -d /glade/p/ral/jntp/GMTB/tools/NCEPlibs/20190307/intel-19.0.2/mpt-2.19 -o 1 2>&1 | tee make_ncep_libs.intel-19.0.2.log

@climbfuji
Copy link
Collaborator Author

Cheyenne / gnu-8.1.0: /glade/p/ral/jntp/GMTB/tools/NCEPlibs/20190307/gnu-8.1.0/mpt-2.19

Instructions:

git clone https://github.com/NCAR/NCEPlibs
cd NCEPlibs
module load ncarenv/1.2 gnu/8.1.0 ncarcompilers/0.4.1 mpt/2.19 netcdf/4.6.1
mkdir -p /glade/p/ral/jntp/GMTB/tools/NCEPlibs/20190307/gnu-8.1.0/mpt-2.19
./make_ncep_libs.sh -s cheyenne -c gnu -d /glade/p/ral/jntp/GMTB/tools/NCEPlibs/20190307/gnu-8.1.0/mpt-2.19 -o 1 2>&1 | tee make_ncep_libs.gnu-8.1.0.log

@grantfirl
Copy link
Collaborator

Thanks @climbfuji for installing these libraries! Issue is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants