rocm-arch

A collection of Arch Linux PKGBUILDS for the ROCm platform

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
post_install() {
    source /etc/profile.d/aomp-amdgpu.sh
    export AOMP=/opt/rocm/aomp

    cat << EOF

To compile C/C++ code with OpenMP offloading use

$AOMP/bin/hipcc -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=$($AOMP/bin/mygpu)

followed by additional flags and the source file.
EOF
}

post_updgrade() {
    post_install
}