Joseph Huber
Joseph Huber
Was this fixed by https://github.com/llvm/llvm-project/commit/292cb114b0a35da5e35eb856c29deff577c54210?
The logs suggest that it's not building the device runtime library because it cannot find one of the tools. I recently made a small change there in 92233159035d1b50face95d886901cf99035bd99. I don't...
> > it is picking up the llvm-extract binary? > > @jhuber6 sorry but what do you mean here? at time of the failure, llvm-extract isn't built yet (it is...
> I will try to remove the (NOT EXTRACT_TOOL) > > OpenMP is already building as RUNTIMES, not as PROJECTS I just pushed that should actually print the value of...
> Removing EXTRACT_TOOL give `/bin/sh: 1: EXTRACT_TOOL-NOTFOUND: not found` But it seems to find `opt`, those should be installed next to each-other as they're both LLVM tools. They're found using...
> With the error: > > ``` > > -- LIBOMPTARGET: Building x86_64 offloading plugin. > -- LIBOMPTARGET: Not building DeviceRTL. Missing clang: /build/llvm-toolchain-snapshot-16~++20221007052802+3e6767ed5f6d/build-llvm/bin/clang, llvm-link: /build/llvm-toolchain-snapshot-16~++20221007052802+3e6767ed5f6d/build-llvm/bin/llvm-link, opt: /build/llvm-toolchain-snapshot-16~++20221007052802+3e6767ed5f6d/build-llvm/bin/opt, llvm-extract: EXTRACT_TOOL-NOTFOUND,...
> all my builds are fresh (with a new chroot) This is a regression from your change, not a local issue. openmp should force the build of llvm-extract first it...
> This patch made things worse (even more failures) Can you provide a link to the CMake logs? @ye-luo any ideas?
I think the expected way to perform RDC-mode compilation is via the [CUDA_SEPARABLE_COMPILATION](https://cmake.org/cmake/help/latest/prop_tgt/CUDA_SEPARABLE_COMPILATION.html) option. I think this is supported for Clang as well judging by this [issue](https://gitlab.kitware.com/cmake/cmake/-/issues/20726).
If you want to try out the new driver I would appreciate it. For compiling an application in RDC mode you can do the following. ``` clang++ a.cu b.cu --offload-new-driver...