libclc-0.2.0_pre20191024 fails to compile for me. I get this error: clang-11: error: cannot find ROCm device library. Provide its path via --rocm-path or --rocm-device-lib-path, or pass -nogpulib to build without ROCm device library. make: *** [Makefile:2490: amdgcn--amdhsa/lib/workitem/get_global_size.cl.bc] Error 1 Build log attached
Created attachment 669446 [details] build.log
Created attachment 669449 [details] environment
Do you have AMDGPU LLVM target enabled? If not, could you try rebuilding LLVM & Clang with it?
> Do you have AMDGPU LLVM target enabled? Yes, I have these llvm versions installed: 10.0.1(10)^t{tbz2}(15:04:02 30/10/20)(libffi ncurses xml -debug -doc -exegesis -gold -libedit -test -xar -z3 ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32" KERNEL="-Darwin" LLVM_TARGETS="AMDGPU X86-AArch64 -ARC -ARM -AVR -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore") 11.0.0(11)^t{tbz2}(14:08:12 30/10/20)(libffi ncurses xml -debug -doc -exegesis -gold -libedit -test -xar -z3 ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32" KERNEL="-Darwin" LLVM_TARGETS="AMDGPU X86 -AArch64 -ARC -ARM -AVR -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -VE -WebAssembly -XCore") And these LLVM_TARGETS set: LLVM_TARGETS="X86 AMDGPU"
The new snapshot libclc-0.2.0_pre20201001 fixes this for me :)