BabelStream/docs/spack_instructions.md
2023-06-16 20:36:47 +00:00

1.6 KiB

Spack Instructions

Table of contents

OpenMP

  • There are 3 offloading options for OpenMP: NVIDIA, AMD and Intel.
  • If a user provides a value for cuda_arch, the execution will be automatically offloaded to NVIDIA.
  • If a user provides a value for amdgpu_target, the operation will be offloaded to AMD.
  • In the absence of cuda_arch and amdgpu_target, the execution will be offloaded to Intel.
Flag Definition Options
cuda_arch List of supported compute capabilities are provided here
Useful link for matching CUDA gencodes with NVIDIA architectures
cuda_arch=70
amdgpu_target List of supported architectures are provided here 'amdgpu_target=gfx701`

Example Commandss

# Example 1: for Intel offload
 $ spack install babelstream%oneapi +omp 

# Example 2: for Nvidia GPU for Volta (sm_70) 
 $ spack install babelstream +omp cuda_arch=70 
 
# Example 3: for AMD GPU gfx701 
 $ spack install babelstream +omp amdgpu_target=gfx701