summarylogtreecommitdiffstats
path: root/aomp-amdgpu.install
blob: 4558ed2fd4a2a07ae2f186cc5cdf9990cdd87911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}