-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add example fails to build #22
Comments
The linux prebuilts on there seem to be a big buggy which is why i disabled them. This is something weird with llvm config giving invalid flags, maybe try installing the apt package of llvm7? This is what we do in CI and it seems to work |
It's because the prebuilt llvm is built with a later version of gcc. I
fixed this on master a while ago but it appears to have been reverted
…On Fri, 17 Dec 2021 at 14:05, RDambrosio016 ***@***.***> wrote:
The linux prebuilts on there seem to be a big buggy which is why i
disabled them. This is something weird with llvm config giving invalid
flags, maybe try installing the apt package of llvm7? This is what we do in
CI and it seems to work
—
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOYQXIVFGDQS5H4YGWIF73URKEE5ANCNFSM5KHUYL3A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I dont think i did anything to revert that, if i did... oops my bad 🙃 |
Oops no I just never pushed it :D try pulling master now |
I took the latest from master and unset my then I get see this gist for the full output I also tried with llvm-7 from an apt install while setting I also tried on Windows with a similar result but I can go fetch the exact result there if it'd help somehow. |
@RDambrosio016 I put together a docker image to reproduce the error. I still cannot get the example to build. Please see the dockerfile and output here https://gist.github.com/CircArgs/56bc8917d850681c65d0787279e5284e As you'll see
In my output, you'll see I added a few statements to the build file
so I could confirm the build was seeing what I expected. |
Fixed see #28 |
I'm not sure this works perfectly even with the new docker container. My output from attempting to use the docker container to build device code is as following.
|
Hello, I was trying to build the example and after troubleshooting a few issues as I worked through the getting started, I've hit a wall I think without hints at least with my knowledge.
Before I show the output of the build failure, here is some background:
System is Ubuntu 20.04
>>> nvcc --version
I took the prebuilt llvm from https://github.com/rust-gpu/rustc_codegen_nvvm-llvm/releases/download/LLVM-7.1.0/ and set
LLVM_CONFIG
to it (I was hitting this before but no longer)I needed to set
CUDA_ROOT
andCUDA_PATH
to/usr/local/cuda-11.5/bin
I also has
libnvvm.so
under/usr/local/cuda-11.5/nvvm/lib64
which is now in myPATH
My toolchain is defaulted to
nightly-2021-12-04-x86_64-unknown-linux-gnu
to be sure, but I also put the toolchain file in the root of Rust-CUDA in theadd
example rootI don't see anything from the getting started that I seem to have missed, so, finally, the output of the build now is
The text was updated successfully, but these errors were encountered: