Created
January 22, 2026 20:11
-
-
Save cgmb/81bebe191f04f4c7bbd654e02c374463 to your computer and use it in GitHub Desktop.
OpenMP AMDGPU Offloading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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