Configuring and building on Perlmutter with gcc 9.3.0, there is following warning message in configuration stage:
g++: error: unrecognized command line option '-show'
g++: fatal error: no input files
compilation terminated.
Full log is below:
-- The CXX compiler identification is GNU 9.3.0
-- The C compiler identification is GNU 9.3.0
-- Cray Programming Environment 2.7.11 CXX
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/cray/pe/craype/2.7.11/bin/CC - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Cray Programming Environment 2.7.11 C
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/cray/pe/craype/2.7.11/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_VERSION: 3.20.5
-- EnGPar_VERSION: 1.1.0
-- BUILD_TESTING: OFF
-- CMAKE_INSTALL_PREFIX: /global/homes/z/zhangc20/xgcm/install/EnGPar/install
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- IS_TESTING: OFF
g++: error: unrecognized command line option '-show'
g++: fatal error: no input files
compilation terminated.
-- CXX compilation command:
-- MPIRUN: MPIRUN-NOTFOUND -np
-- PCU_COMPRESS: OFF
-- ENGPAR_FORTRAN_INTERFACE: OFF
-- Local indices are 32 bytes
-- ENABLE_PARMETIS: OFF
-- ENABLE_ZOLTAN: OFF
-- Configuring done
-- Generating done
The building is fine. Full script:
module load PrgEnv-gnu
module load cmake/3.20.5
module load cpe-cuda
module load cuda/11.1.1
export cuda=$CUDA_DIR
export PATH=$cuda/bin:$PATH
export LD_LIBRARY_PATH=$cuda/lib64:$LD_LIBRARY_PATH
export installroot=$PWD
export srcroot=$installroot/../
export kksrc=$srcroot/kokkos
export EnGParsrc=$srcroot/EnGPar/
export EnGPar=$installroot/EnGPar/install
export OMPI_CXX=$kksrc/bin/nvcc_wrapper
cd $installroot
mkdir -p EnGPar/build
cd EnGPar/build
cmake $EnGParsrc -DCMAKE_INSTALL_PREFIX=$EnGPar -DCMAKE_C_COMPILER=cc \
-DCMAKE_CXX_COMPILER=CC -DCMAKE_CXX_FLAGS="-std=c++11" \
-DENABLE_PARMETIS=OFF -DENABLE_PUMI=OFF -DIS_TESTING=OFF
make install -j4
Configuring and building on Perlmutter with gcc 9.3.0, there is following warning message in configuration stage:
Full log is below:
The building is fine. Full script: