Skip to content

Commit

Permalink
Alehouse cmake config file for GPU-only build
Browse files Browse the repository at this point in the history
  • Loading branch information
amarathe84 authored and slabasan committed Jul 31, 2023
1 parent b9496e1 commit 3d9187a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions host-configs/[email protected]@12.0.0.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright 2019-2023 Lawrence Livermore National Security, LLC and other
# Variorum Project Developers. See the top-level LICENSE file for details.
#
# SPDX-License-Identifier: MIT

# c compiler
set(CMAKE_C_COMPILER "gcc" CACHE PATH "")

# cpp compiler
set(CMAKE_CXX_COMPILER "g++" CACHE PATH "")

# fortran compiler
set(CMAKE_Fortran_COMPILER "gfortran" CACHE PATH "")

set(ENABLE_MPI OFF CACHE BOOL "")
set(ENABLE_OPENMP OFF CACHE BOOL "")

set(BUILD_DOCS OFF CACHE BOOL "")
set(BUILD_TESTS OFF CACHE BOOL "")

set(VARIORUM_WITH_AMD_CPU OFF CACHE BOOL "")
set(VARIORUM_WITH_AMD_GPU OFF CACHE BOOL "")
set(VARIORUM_WITH_ARM_CPU OFF CACHE BOOL "")
set(VARIORUM_WITH_IBM_CPU OFF CACHE BOOL "")
set(VARIORUM_WITH_INTEL_CPU OFF CACHE BOOL "")
set(VARIORUM_WITH_NVIDIA_GPU ON CACHE BOOL "")

set(CMAKE_SHARED_LINKER_FLAGS "-L/usr/lib64/ -lnvidia-ml" CACHE PATH "")

# path to global hwloc install
set(HWLOC_DIR "/usr/local/share/hwloc-1.11.7-install" CACHE PATH "")

# path to global jansson install
set(JANSSON_DIR "/usr/local/share/jansson-2.6-install" CACHE PATH "")

set(NVML_DIR "/usr/lib64" CACHE PATH "")
set(NVML_INCLUDE_DIRS "/usr/local/cuda-12.0/targets/ppc64le-linux/include" CACHE PATH "")

0 comments on commit 3d9187a

Please sign in to comment.