[Openmp-dev] AMDGPU related messages while running on A100

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Wed Aug 4 04:23:00 PDT 2021


Hi,
I am getting these while running an offloading app for A100:

Target AMDGPU RTL --> Start initializing AMDGPU
Target AMDGPU RTL --> Unable to load library 'libhsa-runtime64.so':
libhsa-runtime64.so: cannot open shared object file: No such file or
directory!
Target AMDGPU RTL --> Error when initializing AMDGPU
CUDA error: Error returned from cuMemFree
CUDA error: invalid argument
CUDA error: Error returned from cuMemFree
CUDA error: invalid argument

I build Clang this way:

cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug \
        -DCMAKE_INSTALL_PREFIX=$PROJECT/kitayama1/dev/clang \
        -DCLANG_OPENMP_NVPTX_DEFAULT_ARCH=sm_80 \
        -DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES=80 \
        -DLLVM_ENABLE_PROJECTS="clang" \
        -DLLVM_ENABLE_RUNTIMES="openmp" \
        -DCMAKE_C_COMPILER="clang" \
        -DCMAKE_CXX_COMPILER="clang++" \
        -DGCC_INSTALL_PREFIX=/p/software/jurecadc/stages/2020/software/GCCcore/9.3.0/
\
        $SCRATCH/kitayama1/projects/llvm-project/llvm


More information about the Openmp-dev mailing list