Skip to content

Commit

Permalink
Merge pull request #9121 from fwyzard/IB/CMSSW_14_1_X/master_alpaka_g…
Browse files Browse the repository at this point in the history
…pu_only_mode

Build alpaka code in GPU-only mode
  • Loading branch information
smuzaffar authored Apr 8, 2024
2 parents cb0edba + 10adf2e commit f4a1a43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions scram-tools.file/tools/alpaka/alpaka-cuda.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<use name="alpaka"/>
<use name="cuda"/>
<!-- host comiplation should run with ALPAKA_HOST_ONLY defined -->
<flags CXXFLAGS="-DALPAKA_ACC_GPU_CUDA_ENABLED -DALPAKA_HOST_ONLY"/>
<flags GENREFLEX_CPPFLAGS="-DALPAKA_ACC_GPU_CUDA_ENABLED -DALPAKA_HOST_ONLY"/>
<flags CXXFLAGS="-DALPAKA_ACC_GPU_CUDA_ENABLED -DALPAKA_ACC_GPU_CUDA_ONLY_MODE -DALPAKA_HOST_ONLY"/>
<flags GENREFLEX_CPPFLAGS="-DALPAKA_ACC_GPU_CUDA_ENABLED -DALPAKA_ACC_GPU_CUDA_ONLY_MODE -DALPAKA_HOST_ONLY"/>
<!-- device comiplation should run without ALPAKA_HOST_ONLY defined -->
<flags CUDA_FLAGS="-DALPAKA_ACC_GPU_CUDA_ENABLED -UALPAKA_HOST_ONLY"/>
<flags CUDA_FLAGS="-DALPAKA_ACC_GPU_CUDA_ENABLED -DALPAKA_ACC_GPU_CUDA_ONLY_MODE -UALPAKA_HOST_ONLY"/>
</tool>
6 changes: 3 additions & 3 deletions scram-tools.file/tools/alpaka/alpaka-rocm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<use name="alpaka"/>
<use name="rocm"/>
<!-- 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"/>
<flags CXXFLAGS="-DALPAKA_ACC_GPU_HIP_ENABLED -DALPAKA_ACC_GPU_HIP_ONLY_MODE -DALPAKA_HOST_ONLY"/>
<flags GENREFLEX_CPPFLAGS="-DALPAKA_ACC_GPU_HIP_ENABLED -DALPAKA_ACC_GPU_HIP_ONLY_MODE -DALPAKA_HOST_ONLY"/>
<!-- device comiplation should run without ALPAKA_HOST_ONLY defined -->
<flags ROCM_FLAGS="-DALPAKA_ACC_GPU_HIP_ENABLED -UALPAKA_HOST_ONLY"/>
<flags ROCM_FLAGS="-DALPAKA_ACC_GPU_HIP_ENABLED -DALPAKA_ACC_GPU_HIP_ONLY_MODE -UALPAKA_HOST_ONLY"/>
</tool>

0 comments on commit f4a1a43

Please sign in to comment.