Skip to content
Snippets Groups Projects
Commit 69b527be authored by Debolskiy Andrey's avatar Debolskiy Andrey :bicyclist_tone5:
Browse files

updated vars for run script generation

parent 5f31532b
No related branches found
No related tags found
No related merge requests found
#get from loaded modules versions of compilers
#NETCDF support
if (USE_NETCDF)
set(CUSTOM_NETCDF false FORCE)
find_package(Net_CDFCxx)
endif()
if ( compiler_lc STREQUAL "intel")
if (NO_MPI)
set(CMAKE_C_COMPILER icc CACHE STRING "C compiler" FORCE) # C compiler for serial build
set(CMAKE_CXX_COMPILER c++ CACHE STRING "CXX compiler" FORCE) # C++ compiler for serial build
set(CMAKE_Fortran_COMPILER ifort CACHE STRING "Fortran compiler" FORCE) # Fortran compiler for serial build
else()
set(CMAKE_C_COMPILER mpiicpc CACHE STRING "C compiler" FORCE) # C compiler for parallel build
set(CMAKE_CXX_COMPILER mpiicpc CACHE STRING "CXX compiler" FORCE) # C++ compiler for parallel build
set(CMAKE_Fortran_COMPILER mpiifort CACHE STRING "Fortran compiler" FORCE) # Fortran compiler for parallel build
endif()
set(comp_flags " -restrict -alias-const -parallel -funroll-loops -no-ansi-alias -mavx -fma ")
endif()
if ( compiler_lc STREQUAL "intel_oneapi")
messege(ERROR "ONEAPI is not supported on IFA cluster")
endif()
if ( compiler_lc STREQUAL "gnu")
if (NO_MPI)
set(CMAKE_C_COMPILER gcc CACHE STRING "C compiler" FORCE) # C compiler for serial build
set(CMAKE_CXX_COMPILER g++ CACHE STRING "CXX compiler" FORCE) # C++ compiler for serial build
set(CMAKE_Fortran_COMPILER gfortran CACHE STRING "Fortran compiler" FORCE) # Fortran compiler for serial build
else()
set(CMAKE_C_COMPILER mpicc CACHE STRING "C compiler" FORCE) # C compiler for parallel build
set(CMAKE_CXX_COMPILER mpicxx CACHE STRING "CXX compiler" FORCE) # C++ compiler for parallel build
set(CMAKE_Fortran_COMPILER mpifort CACHE STRING "Fortran compiler" FORCE) # Fortran compiler for parallel build
endif()
set(comp_flags " -O3 -fno-strict-aliasing -funroll-loops -march=native -std=c++0x ")
endif()
#specify stuff for run-script
set(cluster_queue "epyc")
if ( ${compiler_lc} STREQUAL "intel" OR ${compiler_lc} STREQUAL "intel_oneapi")
set(run_exec "srun -u")
set(prerun_env_export "module load mpi/impi && export I_MPI_PMI_LIBRARY=/usr/lib64/libpmi.so")
endif()
if ( compiler_lc STREQUAL "gnu")
set(run_exec "mpirun")
endif ()
\ No newline at end of file
......@@ -56,4 +56,5 @@ if ( compiler_lc STREQUAL "gnu")
endif()
#specify stuff for run-script
set(cluster_queue "normal")
\ No newline at end of file
set(cluster_queue "normal")
set(run_exec "mpirun")
\ No newline at end of file
......@@ -56,4 +56,5 @@ set(comp_flags " -O3 -fno-strict-aliasing -funroll-loops -mavx2 -std=c++0x ")
endif()
#specify stuff for run-script
set(cluster_queue "normal")
\ No newline at end of file
set(cluster_queue "normal")
set(run_exec "mpirun")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment