-
Notifications
You must be signed in to change notification settings - Fork 123
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
support for Cuda 12.1 #395
Comments
cc @ivanradanov So the support being partial comes from LLVM upstream. It looks like here the issue is a header is missing, can you run find on your build dir to see if it was built anywhere? |
The partial support works for my machine. Your issue here is that you need to point Polygeist to the correct clang resource dir, which would be We need better support for installing polygeist and having it properly set up include paths link paths etc, need to look into how clang does it... But for the meantime better documentation would be nice... |
You are getting an empty module, can you try removing |
@ivanradanov I'm sorry I deleted that as I realized some errors but here is fuller output incorporating your advice:
|
If you would like to see MLIR (raised to affine) you need |
I'll have to study more to understand why I need to output assembly in order to raise to affine. Thanks though. |
So, this is Polygeist specific, but in order to emit GPU executables we require the programmer to explicitly specify the target on the command line as such: |
As for |
Thanks @ivanradanov for all the tips. This is an amazing library bridging the gap for people like me with some Cuda background learning mlir. |
Hello @ivanradanov
Sorry to interrupt! I have just two questions which I think related to this issue thread.
Thanks in advance! |
We do not support llvm release 18. The 18 in that string indicates that release 18 is in development (or released) on that specific commit. We only support the specific llvm commit the git submodule points to. I believe it may work for cuda 12, but that specific PR you linked is unrelated and on our ROCm end. |
I named the example
simple_matmul.cu
and tried to compile likewill Cuda 12.1 be supported soon? What are some workarounds?
My nvidia-smi and nvcc --version are:
The text was updated successfully, but these errors were encountered: