-
Notifications
You must be signed in to change notification settings - Fork 9
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
LLVM ERROR: Module has aliases, which NVPTX does not support. #13
Comments
Hi, I'm getting the same error, even for a minimal example like
When I do I ran out of ideas what to try for now, so any suggestions what to do next are greatly appreciated. Thanks! |
Sorry for a late response. The problem was reported in rust-lang/rust#57356 and you can track its progress in rust-lang/rust#57268. As soon as the PR will be merged, there will be a chance to disable an optimisation pass that causes the issue. |
Could you please try the updated
|
Thank you for this suggestion.
Are the troubling optimisations done before linking time? |
Sorry, forgot to mention: it also has to be a recent Rust nightly ( |
This looks like progress. Still not quite.
|
Yes, unfortunately, I applied the following trivial fix to a test crate at Functions in |
I'm trying to compile your ptx-linker intrinsics example.
After this hack:
I'm somewhat new to Rust, thanks for all your help! |
That's a nice catch, thanks. I can reproduce your problem! I'll post here when the issue will be fixed. |
@Frequenzmodulation can you please pull the latest I've added a code to handle the case: denzp/rustc-llvm-proxy@20815b5 |
@denzp Thank you, seems it did the trick! I produces |
Great! that fixes my issue :) Sorry for the long delay! |
Hi,
Thanks for creating this great package! I have tried to get rust-ptx-builder to work, but I have not yet succeeded. I get the error 'LLVM ERROR: Module has aliases, which NVPTX does not support.'. To make sure that I was not an error on my part, I have tried to build one of the example projects in rust-ptx-support.
This is what I get:
Unfortunately, I cannot seem to get more verbose output than this. I have installed xargo and ptx-linker. I have CUDA_LIBRARY_PATH set correctly. I do not have LLVM installed locally.
I tried with the following versions of rustc:
failed
: same reasonfailed
: same reasonfailed
: different reason - "note: Unable to find LLVM shared lib in possible locations:"failed
: different reason - "note: Unable to find LLVM shared lib in possible locations:"failed
: different reason - "note: Unable to find LLVM shared lib in possible locations:"failed
: different reason - "note: Unable to find LLVM shared lib in possible locations:"I am not sure which of these errors occurs earlier in the compilation process, the module alias error, or the LLVM shared lib error.
If there is anything I can do to make this issue more specific, please let me know!
The text was updated successfully, but these errors were encountered: