Skip to content

Instantly share code, notes, and snippets.

@cgmb
Created January 22, 2026 20:11
Show Gist options
  • Select an option

  • Save cgmb/81bebe191f04f4c7bbd654e02c374463 to your computer and use it in GitHub Desktop.

Select an option

Save cgmb/81bebe191f04f4c7bbd654e02c374463 to your computer and use it in GitHub Desktop.
OpenMP AMDGPU Offloading
#!/bin/sh
# Test of OpenMP AMDGPU Offloading on Debian Forky and Ubuntu Resolute
set -eux
apt install hipcc libomp-21-dev liboffload-21-dev clang clang-tools build-essential git
git clone https://github.com/ROCm/aomp.git -b rocm-7.2.0
cd aomp/test/smoke/veccopy
make # or use "clang -O2 -fopenmp --offload-arch=native veccopy.c -o veccopy"
OMP_TARGET_OFFLOAD=MANDATORY ./veccopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment