Skip to content

Commit

Permalink
Disable the vendor specific random number generators in Alpaka (NVIDI…
Browse files Browse the repository at this point in the history
…A cuRAND, AMD rocRAND, Intel DPL)
  • Loading branch information
fwyzard committed Jan 23, 2024
1 parent 242d3bd commit bf32ea7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion scram-tools.file/tools/alpaka/alpaka-rocm.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<tool name="alpaka-rocm" version="@TOOL_VERSION@">
<use name="alpaka"/>
<use name="rocm"/>
<use name="rocm-rocrand"/>
<!-- host comiplation should run with ALPAKA_HOST_ONLY defined -->
<flags CXXFLAGS="-DALPAKA_ACC_GPU_HIP_ENABLED -DALPAKA_HOST_ONLY"/>
<flags GENREFLEX_CPPFLAGS="-DALPAKA_ACC_GPU_HIP_ENABLED -DALPAKA_HOST_ONLY"/>
Expand Down
4 changes: 4 additions & 0 deletions scram-tools.file/tools/alpaka/alpaka.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@
<flags CXXFLAGS="-DALPAKA_DEFAULT_HOST_MEMORY_ALIGNMENT=128"/>
<flags CUDA_FLAGS="-DALPAKA_DEFAULT_HOST_MEMORY_ALIGNMENT=128"/>
<flags GENREFLEX_CPPFLAGS="-DALPAKA_DEFAULT_HOST_MEMORY_ALIGNMENT=128"/>
<!-- disable the vendor specific random number generators (NVIDIA cuRAND, AMD rocRAND, Intel DPL) -->
<flags CXXFLAGS="-DALPAKA_DISABLE_VENDOR_RNG"/>
<flags CUDA_FLAGS="-DALPAKA_DISABLE_VENDOR_RNG"/>
<flags GENREFLEX_CPPFLAGS="-DALPAKA_DISABLE_VENDOR_RNG"/>
</tool>

0 comments on commit bf32ea7

Please sign in to comment.