Skip to content

Commit

Permalink
lassen: add path to cuda/10.1.243 to host configs (#531)
Browse files Browse the repository at this point in the history
* set cuda path for example integration on lassen

* set LD_LIBRARY_PATH
  • Loading branch information
slabasan authored Mar 19, 2024
1 parent 7993cfa commit d27011a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitlab/lassen-gpu-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ build-lassen-gpu:
- cmake --version
- cd install-gitlab-lassen-gpu/examples/using-with-cmake/c
- echo -e "PWD:" ${PWD}
- export LD_LIBRARY_PATH=/usr/tce/packages/cuda/cuda-10.1.243/lib64:${LD_LIBRARY_PATH} # hack for getting older cuda
- mkdir _test_build
- cd _test_build
- cmake ../
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ set(VARIORUM_WITH_INTEL_CPU OFF CACHE BOOL "")
set(VARIORUM_WITH_INTEL_GPU OFF CACHE BOOL "")
set(VARIORUM_WITH_NVIDIA_GPU ON CACHE BOOL "")

# You need to load CUDA 9.2.* to build this on Lassen
# because hwloc was built with CUDA 9.2.* and not the default CUDA version
# (10.1.*)
set(CMAKE_SHARED_LINKER_FLAGS "-L/usr/tce/packages/cuda/cuda-10.1.243/nvidia/targets/ppc64le-linux/lib/stubs/ -lnvidia-ml" CACHE PATH "")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath -Wl,/usr/tce/packages/cuda/cuda-10.1.243/lib64" CACHE PATH "")

# path to global hwloc install
set(HWLOC_DIR "/usr/global/tools/hwloc/blueos_3_ppc64le_ib/hwloc-1.11.10-cuda/" CACHE PATH "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ set(VARIORUM_WITH_INTEL_CPU OFF CACHE BOOL "")
set(VARIORUM_WITH_INTEL_GPU OFF CACHE BOOL "")
set(VARIORUM_WITH_NVIDIA_GPU ON CACHE BOOL "")

# You need to load CUDA 9.2.* to build this on Lassen
# because hwloc was built with CUDA 9.2.* and not the default CUDA version (10.1.*)
set(CMAKE_SHARED_LINKER_FLAGS "-L/usr/tce/packages/cuda/cuda-10.1.243/nvidia/targets/ppc64le-linux/lib/stubs/ -lnvidia-ml" CACHE PATH "")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath -Wl,/usr/tce/packages/cuda/cuda-10.1.243/lib64" CACHE PATH "")

# path to global hwloc install
set(HWLOC_DIR "/usr/global/tools/hwloc/blueos_3_ppc64le_ib/hwloc-1.11.10-cuda/" CACHE PATH "")
Expand Down

0 comments on commit d27011a

Please sign in to comment.