Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scripts and host configs for new compilers
- Loading branch information
Showing
8 changed files
with
269 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
host-configs/lc-builds/blueos/clang_upstream_2018_12_03.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,28 @@ | ||
############################################################################## | ||
## Copyright (c) 2018, Lawrence Livermore National Security, LLC. | ||
## | ||
## Produced at the Lawrence Livermore National Laboratory | ||
## | ||
## LLNL-CODE-758885 | ||
## | ||
## All rights reserved. | ||
## | ||
## This file is part of Comb. | ||
## | ||
## For details, see https://github.com/LLNL/Comb | ||
## Please also see the LICENSE file for MIT license. | ||
############################################################################## | ||
|
||
set(COMB_COMPILER "COMB_COMPILER_CLANG" CACHE STRING "") | ||
|
||
set(MPI_CXX_COMPILER "/usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-clang-upstream-2018.12.03/bin/mpiclang++" CACHE PATH "") | ||
set(MPI_C_COMPILER "/usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-clang-upstream-2018.12.03/bin/mpiclang" CACHE PATH "") | ||
|
||
set(CMAKE_CXX_COMPILER "/usr/tce/packages/clang/clang-upstream-2018.12.03/bin/clang++" CACHE PATH "") | ||
set(CMAKE_C_COMPILER "/usr/tce/packages/clang/clang-upstream-2018.12.03/bin/clang" CACHE PATH "") | ||
|
||
set(CMAKE_CXX_FLAGS_RELEASE "-O3" CACHE STRING "") | ||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g" CACHE STRING "") | ||
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g" CACHE STRING "") | ||
|
||
set(COMB_HOST_CONFIG_LOADED On CACHE Bool "") |
40 changes: 40 additions & 0 deletions
40
host-configs/lc-builds/blueos/nvcc_clang_upstream_2018_12_03.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,40 @@ | ||
############################################################################## | ||
## Copyright (c) 2018, Lawrence Livermore National Security, LLC. | ||
## | ||
## Produced at the Lawrence Livermore National Laboratory | ||
## | ||
## LLNL-CODE-758885 | ||
## | ||
## All rights reserved. | ||
## | ||
## This file is part of Comb. | ||
## | ||
## For details, see https://github.com/LLNL/Comb | ||
## Please also see the LICENSE file for MIT license. | ||
############################################################################## | ||
|
||
set(COMB_COMPILER "COMB_COMPILER_CLANG" CACHE STRING "") | ||
|
||
set(MPI_CXX_COMPILER "/usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-clang-upstream-2018.12.03/bin/mpiclang++" CACHE PATH "") | ||
set(MPI_C_COMPILER "/usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-clang-upstream-2018.12.03/bin/mpiclang" CACHE PATH "") | ||
|
||
set(CMAKE_CXX_COMPILER "/usr/tce/packages/clang/clang-upstream-2018.12.03/bin/clang++" CACHE PATH "") | ||
set(CMAKE_C_COMPILER "/usr/tce/packages/clang/clang-upstream-2018.12.03/bin/clang" CACHE PATH "") | ||
|
||
set(CMAKE_CXX_FLAGS_RELEASE "-O3" CACHE STRING "") | ||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g" CACHE STRING "") | ||
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os" CACHE STRING "") | ||
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g" CACHE STRING "") | ||
|
||
|
||
if(NOT DEFINED CUDA_ARCH) | ||
message(FATAL_ERROR "CUDA_ARCH NOT DEFINED") | ||
endif() | ||
|
||
set(COMB_NVCC_FLAGS "-restrict -arch ${CUDA_ARCH} --expt-extended-lambda" CACHE STRING "") | ||
set(COMB_NVCC_FLAGS_RELEASE "-O3" CACHE STRING "") | ||
set(COMB_NVCC_FLAGS_RELWITHDEBINFO "-O2 -g -lineinfo" CACHE STRING "") | ||
set(COMB_NVCC_FLAGS_MINSIZEREL "-Os" CACHE STRING "") | ||
set(COMB_NVCC_FLAGS_DEBUG "-O0 -g -G" CACHE STRING "") | ||
|
||
set(COMB_HOST_CONFIG_LOADED ON CACHE Bool "") |
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,40 @@ | ||
############################################################################## | ||
## Copyright (c) 2018, Lawrence Livermore National Security, LLC. | ||
## | ||
## Produced at the Lawrence Livermore National Laboratory | ||
## | ||
## LLNL-CODE-758885 | ||
## | ||
## All rights reserved. | ||
## | ||
## This file is part of Comb. | ||
## | ||
## For details, see https://github.com/LLNL/Comb | ||
## Please also see the LICENSE file for MIT license. | ||
############################################################################## | ||
|
||
set(COMB_COMPILER "COMB_COMPILER_XLC" CACHE STRING "") | ||
|
||
set(MPI_CXX_COMPILER "/usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-xl-2018.11.26/bin/mpixlC" CACHE PATH "") | ||
set(MPI_C_COMPILER "/usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-xl-2018.11.26/bin/mpixlc" CACHE PATH "") | ||
|
||
set(CMAKE_CXX_COMPILER "/usr/tce/packages/xl/xl-2018.11.26/bin/xlc++_r" CACHE PATH "") | ||
set(CMAKE_C_COMPILER "/usr/tce/packages/xl/xl-2018.11.26/bin/xlC_r" CACHE PATH "") | ||
|
||
set(CMAKE_CXX_FLAGS_RELEASE "-O3 " CACHE STRING "") | ||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g9 " CACHE STRING "") | ||
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -qsmp=omp:noopt " CACHE STRING "") | ||
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-z,muldefs" CACHE STRING "") | ||
|
||
|
||
if(NOT DEFINED CUDA_ARCH) | ||
message(FATAL_ERROR "CUDA_ARCH NOT DEFINED") | ||
endif() | ||
|
||
set(COMB_NVCC_FLAGS "-restrict -arch ${CUDA_ARCH} --expt-extended-lambda" CACHE STRING "") | ||
set(COMB_NVCC_FLAGS_RELEASE "-O3" CACHE STRING "") | ||
set(COMB_NVCC_FLAGS_RELWITHDEBINFO "-O2 -g -lineinfo" CACHE STRING "") | ||
set(COMB_NVCC_FLAGS_MINSIZEREL "-Os" CACHE STRING "") | ||
set(COMB_NVCC_FLAGS_DEBUG "-O0 -g -G" CACHE STRING "") | ||
|
||
set(COMB_HOST_CONFIG_LOADED On CACHE Bool "") |
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,29 @@ | ||
############################################################################## | ||
## Copyright (c) 2018, Lawrence Livermore National Security, LLC. | ||
## | ||
## Produced at the Lawrence Livermore National Laboratory | ||
## | ||
## LLNL-CODE-758885 | ||
## | ||
## All rights reserved. | ||
## | ||
## This file is part of Comb. | ||
## | ||
## For details, see https://github.com/LLNL/Comb | ||
## Please also see the LICENSE file for MIT license. | ||
############################################################################## | ||
|
||
set(COMB_COMPILER "COMB_COMPILER_XLC" CACHE STRING "") | ||
|
||
set(MPI_CXX_COMPILER "/usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-xl-2018.11.26/bin/mpixlC" CACHE PATH "") | ||
set(MPI_C_COMPILER "/usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-xl-2018.11.26/bin/mpixlc" CACHE PATH "") | ||
|
||
set(CMAKE_CXX_COMPILER "/usr/tce/packages/xl/xl-2018.11.26/bin/xlc++_r" CACHE PATH "") | ||
set(CMAKE_C_COMPILER "/usr/tce/packages/xl/xl-2018.11.26/bin/xlC_r" CACHE PATH "") | ||
|
||
set(CMAKE_CXX_FLAGS_RELEASE "-O3 " CACHE STRING "") | ||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g " CACHE STRING "") | ||
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -qsmp=omp:noopt " CACHE STRING "") | ||
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-z,muldefs" CACHE STRING "") | ||
|
||
set(COMB_HOST_CONFIG_LOADED On CACHE Bool "") |
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,32 @@ | ||
#!/bin/bash | ||
|
||
############################################################################## | ||
## Copyright (c) 2018, Lawrence Livermore National Security, LLC. | ||
## | ||
## Produced at the Lawrence Livermore National Laboratory | ||
## | ||
## LLNL-CODE-758885 | ||
## | ||
## All rights reserved. | ||
## | ||
## This file is part of Comb. | ||
## | ||
## For details, see https://github.com/LLNL/Comb | ||
## Please also see the LICENSE file for MIT license. | ||
############################################################################## | ||
|
||
BUILD_SUFFIX=lc_blueos_clang_upstream_2018_12_03 | ||
|
||
rm -rf build_${BUILD_SUFFIX} 2>/dev/null | ||
mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} | ||
|
||
module load cmake/3.9.2 | ||
|
||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DENABLE_OPENMP=ON \ | ||
-DENABLE_CUDA=OFF \ | ||
-C ../host-configs/lc-builds/blueos/clang_upstream_2018_12_03.cmake \ | ||
-DCMAKE_INSTALL_PREFIX=../install_${BUILD_SUFFIX} \ | ||
"$@" \ | ||
.. |
34 changes: 34 additions & 0 deletions
34
scripts/lc-builds/blueos/nvcc_9_2_clang_upstream_2018_12_03.sh
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,34 @@ | ||
#!/bin/bash | ||
|
||
############################################################################## | ||
## Copyright (c) 2018, Lawrence Livermore National Security, LLC. | ||
## | ||
## Produced at the Lawrence Livermore National Laboratory | ||
## | ||
## LLNL-CODE-758885 | ||
## | ||
## All rights reserved. | ||
## | ||
## This file is part of Comb. | ||
## | ||
## For details, see https://github.com/LLNL/Comb | ||
## Please also see the LICENSE file for MIT license. | ||
############################################################################## | ||
|
||
BUILD_SUFFIX=lc_blueos_nvcc_9_2_clang_upstream_2018_12_03 | ||
|
||
rm -rf build_${BUILD_SUFFIX} >/dev/null | ||
mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} | ||
|
||
module load cmake/3.9.2 | ||
|
||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DENABLE_OPENMP=ON \ | ||
-DENABLE_CUDA=ON \ | ||
-DCUDA_ARCH=sm_60 \ | ||
-DCUDA_TOOLKIT_ROOT_DIR=/usr/tce/packages/cuda/cuda-9.2.148 \ | ||
-C ../host-configs/lc-builds/blueos/nvcc_clang_upstream_2018_12_03.cmake \ | ||
-DCMAKE_INSTALL_PREFIX=../install_${BUILD_SUFFIX} \ | ||
"$@" \ | ||
.. |
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,34 @@ | ||
#!/bin/bash | ||
|
||
############################################################################## | ||
## Copyright (c) 2018, Lawrence Livermore National Security, LLC. | ||
## | ||
## Produced at the Lawrence Livermore National Laboratory | ||
## | ||
## LLNL-CODE-758885 | ||
## | ||
## All rights reserved. | ||
## | ||
## This file is part of Comb. | ||
## | ||
## For details, see https://github.com/LLNL/Comb | ||
## Please also see the LICENSE file for MIT license. | ||
############################################################################## | ||
|
||
BUILD_SUFFIX=lc_blueos_nvcc_9_2_xl_2018_11_26 | ||
|
||
rm -rf build_${BUILD_SUFFIX} 2>/dev/null | ||
mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} | ||
|
||
module load cmake/3.9.2 | ||
|
||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DENABLE_OPENMP=ON \ | ||
-DENABLE_CUDA=ON \ | ||
-DCUDA_ARCH=sm_60 \ | ||
-DCUDA_TOOLKIT_ROOT_DIR=/usr/tce/packages/cuda/cuda-9.2.148 \ | ||
-C ../host-configs/lc-builds/blueos/nvcc_xl_2018_11_26.cmake \ | ||
-DCMAKE_INSTALL_PREFIX=../install_${BUILD_SUFFIX} \ | ||
"$@" \ | ||
.. |
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,32 @@ | ||
#!/bin/bash | ||
|
||
############################################################################## | ||
## Copyright (c) 2018, Lawrence Livermore National Security, LLC. | ||
## | ||
## Produced at the Lawrence Livermore National Laboratory | ||
## | ||
## LLNL-CODE-758885 | ||
## | ||
## All rights reserved. | ||
## | ||
## This file is part of Comb. | ||
## | ||
## For details, see https://github.com/LLNL/Comb | ||
## Please also see the LICENSE file for MIT license. | ||
############################################################################## | ||
|
||
BUILD_SUFFIX=lc_blueos_xl_2018_11_26 | ||
|
||
rm -rf build_${BUILD_SUFFIX} 2>/dev/null | ||
mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} | ||
|
||
module load cmake/3.9.2 | ||
|
||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DENABLE_OPENMP=ON \ | ||
-DENABLE_CUDA=OFF \ | ||
-C ../host-configs/lc-builds/blueos/xl_2018_11_26.cmake \ | ||
-DCMAKE_INSTALL_PREFIX=../install_${BUILD_SUFFIX} \ | ||
"$@" \ | ||
.. |