abinfo "Setting ROCM_PATH ..."
export ROCM_PATH=/usr/lib/rocm

abinfo "Adding ROCm to PATH ..."
export PATH="/usr/lib/rocm/bin:$PATH"

abinfo "Adding ROCm LLVM to PATH ..."
export PATH="/usr/lib/rocm/lib/llvm/bin:$PATH"

# FIXME
# need --rtlib=compiler-rt
# /usr/bin/ld: bin/librvslib.so.0.0.0: undefined reference to `__extendhfsf2'
# /usr/bin/ld: bin/librvslib.so.0.0.0: undefined reference to `__truncsfhf2'
# need -Wl,--copy-dt-needed-entries
# /usr/bin/ld: rvs/CMakeFiles/rvs.dir/src/rvs.cpp.o: undefined reference to symbol '_Unwind_Resume@@GCC_3.0'
# /usr/bin/ld: /../lib/libgcc_s.so.1: error adding symbols: DSO missing from command line
abinfo "FIX undefined reference ..."
export LDFLAGS="$LDFLAGS --rtlib=compiler-rt -Wl,--copy-dt-needed-entries"
