I'm trying to get up and running with llvm/clang + cuda. llvm 11.0.1 successfully installed. When I try to compile the simple example shown in llvm examples I get clang-11: warning: Unknown CUDA version. cuda.h: CUDA_VERSION=11020. Assuming the latest supported version 10.1 [-Wunknown-cuda-version] axpy.cu:23:7: error: use of undeclared identifier cudaConfigureCall axpy<<<1, kDataLen>>>(a, device_x, device_y); I have cuda 11.2 installed however clang apparently needs cuda 10.1 and I'm running fedora 33 which is too new for cuda 10.1. cuda 10.1 is supported on fedora 29. I can't downgrade to fedora 29. Is there a combo of llvm clang + cuda that works with fedora 33? Is there any plan for llvm to use the latest cuda? on what time frame? Thanks Burlen -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210119/66cc5aa1/attachment.html>
Johannes Doerfert via llvm-dev
2021-Jan-20 00:02 UTC
[llvm-dev] clang + cuda version issue
Hi Burlen, it might be better to repost the question on cfe-dev at lists.llvm.org, which is the clang frontend developer list. ~ Johannes On 1/19/21 5:48 PM, Burlen Loring via llvm-dev wrote:> I'm trying to get up and running with llvm/clang + cuda. llvm 11.0.1 > successfully installed. > > When I try to compile the simple example shown in llvm examples I get > > clang-11: warning: Unknown CUDA version. cuda.h: CUDA_VERSION=11020. > Assuming the latest supported version 10.1 [-Wunknown-cuda-version] > axpy.cu:23:7: error: use of undeclared identifier cudaConfigureCall > axpy<<<1, kDataLen>>>(a, device_x, device_y); > > > I have cuda 11.2 installed however clang apparently needs cuda 10.1 > and I'm running fedora 33 which is too new for cuda 10.1. cuda 10.1 is > supported on fedora 29. I can't downgrade to fedora 29. > > Is there a combo of llvm clang + cuda that works with fedora 33? > > Is there any plan for llvm to use the latest cuda? on what time frame? > > Thanks > Burlen > > > > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev