Only set rocm-path if using the old aomp-package. The new openmp-extras package does not need to set rocm-path.
@@ -12,12 +12,12 @@ set -x
# mygpu will eventually relocate to /opt/rocm/bin, support both cases for now.
if [ -a $AOMP/bin/mygpu ]; then
export AOMP_GPU=`$AOMP/bin/mygpu`
+ export EXTRA_OMP_FLAGS=--rocm-path=$AOMP/
else
export AOMP_GPU=`$AOMP/../bin/mygpu`
fi
echo AOMP_GPU = $AOMP_GPU
-export EXTRA_OMP_FLAGS=--rocm-path=$AOMP/
$AOMP/bin/clang --version
ls $AOMP/amdgcn/bitcode
