-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add example host-config for intel-oneapi + c++17 on tos3
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
host-configs/llnl/toss_3_x86_64_ib/intel-oneapi@2021.3-c++17.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and | ||
# other BLT Project Developers. See the top-level LICENSE file for details | ||
# | ||
# SPDX-License-Identifier: (BSD-3-Clause) | ||
|
||
#------------------------------------------------------------------------------ | ||
# Example host-config file for the quartz cluster at LLNL | ||
#------------------------------------------------------------------------------ | ||
# | ||
# This file provides CMake with paths / details for: | ||
# C,C++, & Fortran compilers + MPI | ||
# | ||
#------------------------------------------------------------------------------ | ||
|
||
#------------------------------------------------------------------------------ | ||
# intel-oneapi.2021.3 compilers | ||
#------------------------------------------------------------------------------ | ||
|
||
set(INTELLLVM_VERSION "intel-oneapi.2021.3") | ||
set(INTELLLVM_HOME "/usr/tce/packages/intel/${INTELLLVM_VERSION}") | ||
|
||
# c compiler | ||
set(CMAKE_C_COMPILER "${INTELLLVM_HOME}/bin/icx" CACHE PATH "") | ||
|
||
# cpp compiler | ||
set(CMAKE_CXX_COMPILER "${INTELLLVM_HOME}/bin/icpx" CACHE PATH "") | ||
|
||
# fortran support | ||
set(ENABLE_FORTRAN ON CACHE BOOL "") | ||
|
||
# fortran compiler | ||
set(CMAKE_Fortran_COMPILER "${INTELLLVM_HOME}/bin/ifx" CACHE PATH "") | ||
|
||
#------------------------------------------------------------------------------ | ||
# Extra flags | ||
#------------------------------------------------------------------------------ | ||
|
||
set(BLT_CXX_STD "c++17") | ||
|
||
# Use non-system default stdlib | ||
set(GCC_VERSION "gcc-9.3.1") | ||
set(GCC_HOME "/usr/tce/packages/gcc/${GCC_VERSION}/rh") | ||
|
||
set(BLT_C_FLAGS "--gcc-toolchain=${GCC_HOME}" CACHE STRING "") | ||
set(BLT_CXX_FLAGS "--gcc-toolchain=${GCC_HOME}" CACHE STRING "") | ||
set(BLT_FORTRAN_FLAGS "-gcc-name=${GCC_HOME}/bin/gcc" CACHE STRING "") | ||
|
||
#------------------------------------------------------------------------------ | ||
# MPI Support | ||
#------------------------------------------------------------------------------ | ||
set(ENABLE_MPI ON CACHE BOOL "") | ||
|
||
set(MPI_HOME "/usr/tce/packages/mvapich2/mvapich2-2.3.6-${INTELLLVM_VERSION}" CACHE PATH "") | ||
|
||
set(MPI_C_COMPILER "${MPI_HOME}/bin/mpicc" CACHE PATH "") | ||
set(MPI_CXX_COMPILER "${MPI_HOME}/bin/mpicxx" CACHE PATH "") | ||
set(MPI_Fortran_COMPILER "${MPI_HOME}/bin/mpif90" CACHE PATH "") | ||
|
||
set(MPIEXEC "/usr/bin/srun" CACHE PATH "") | ||
set(MPIEXEC_NUMPROC_FLAG "-n" CACHE PATH "") |