diff options
author | Torsten Keßler | 2020-07-04 23:56:39 +0200 |
---|---|---|
committer | GitHub | 2020-07-04 17:56:39 -0400 |
commit | b665f0620c7c16772ee5a28ef7b6857753f64759 (patch) | |
tree | 8a7d5e207bf4f39e566b27646538ab80cf017fdf /aomp-amdgpu.install | |
parent | 3bec5676959d4676337c599249e41fd03fd4527c (diff) | |
download | aur-b665f0620c7c16772ee5a28ef7b6857753f64759.tar.gz |
[aomp-amdgpu] Standalone build (#290)
Diffstat (limited to 'aomp-amdgpu.install')
-rw-r--r-- | aomp-amdgpu.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/aomp-amdgpu.install b/aomp-amdgpu.install new file mode 100644 index 000000000000..4558ed2fd4a2 --- /dev/null +++ b/aomp-amdgpu.install @@ -0,0 +1,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 +} |