diff --git a/cluster_configs/local-ubuntu.cmake b/cluster_configs/local-ubuntu.cmake index 4aabae33a551fe52be5504bacf12f43cca77176f..d6a9feab313216d8db280521f18c912cfeeb5c32 100644 --- a/cluster_configs/local-ubuntu.cmake +++ b/cluster_configs/local-ubuntu.cmake @@ -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")