Skip to content

Commit

Permalink
Modified presets and toolschain to work on the lscamdgpu50-d box.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Zuniga authored and Miguel Zuniga committed Sep 27, 2023
1 parent fd9757c commit c819bc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions cpp/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@
"displayName": "GPU-NVHPC",
"description": "NVC++ build option for gpu with std::par",
"generator": "Unix Makefiles",
pwd,

"binaryDir": "${sourceDir}/build_gpu_nvhpc_pr",
"toolchainFile":"${sourceDir}/nvhpc_toolchain",
"cacheVariables": {
"CMAKE_CXX_FLAGS_INIT": "-O2 -std=c++20 -stdpar=gpu"
"CMAKE_CXX_FLAGS_INIT": "-O2 -std=c++20 -stdpar=gpu --gcc-toolchain=/opt/gcc/12.3.0 -I/opt/gcc/12.3.0/include/c++/12.3.0 -I/opt/netcdf/4.9.2/NVHPC/23.7/include -I/opt/hdf5/1.14.1-2/NVHPC/23.7/include"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion cpp/nvhpc_toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
set(tools /opt/nvidia/hpc_sdk/Linux_x86_64/23.7)
set(tools /opt/nvhpc/Linux_x86_64/23.7)
set(CMAKE_C_COMPILER ${tools}/compilers/bin/nvc)
set(CMAKE_CXX_COMPILER ${tools}/compilers/bin/nvc++)

0 comments on commit c819bc4

Please sign in to comment.