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

Update local-ubuntu.cmake

parent 08499f96
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,16 @@ if ( COMPILER STREQUAL "intel")
endif()
if ( COMPILER STREQUAL "intel_oneapi")
messege(ERROR "ONEAPI is not supported on IFA cluster")
if (NO_MPI)
set(CMAKE_C_COMPILER icx CACHE STRING "C compiler" FORCE) # C compiler for serial build
set(CMAKE_CXX_COMPILER icpx 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 mpiicc -cc=icx CACHE STRING "C compiler" FORCE) # C compiler for parallel build
set(CMAKE_CXX_COMPILER mpiicpc -cxx=icpx CACHE STRING "CXX compiler" FORCE) # C++ compiler for parallel build
set(CMAKE_Fortran_COMPILER mpiifort -fc=ifx CACHE STRING "Fortran compiler" FORCE) # Fortran compiler for parallel build
endif()
set(comp_flags -O3 -no-ansi-alias -funroll-loops -mavx -xavx -Wno-tautological-constant-compare CACHE STRING "comp_flags to add" FORCE)
endif()
if ( COMPILER STREQUAL "gnu")
......
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