Skip to content
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

Fixed issues with LibDevice integration. #784

Merged
merged 2 commits into from
Apr 4, 2022

Conversation

MoFtZ
Copy link
Collaborator

@MoFtZ MoFtZ commented Apr 2, 2022

Fixes #781.

The issue with JN is that we are generating the wrong NVVM/LLVM code, used for extracting the PTX. It does not support the .NET type names of int, long, uint and ulong. Instead, we use the types i32 and i64.

Upon further testing, also discovered an issue with Half type. The generated PTX uses the b32 register, and the NVVM code uses the i16 type.

@m4rs-mt I have based this commit on the ILGPU v1.1.0 tag, in case we wanted to do create an ILGPU v1.1.1 patch release.

@m4rs-mt m4rs-mt added the bug label Apr 2, 2022
@m4rs-mt m4rs-mt added this to the v1.2 milestone Apr 2, 2022
@m4rs-mt
Copy link
Owner

m4rs-mt commented Apr 4, 2022

@MoFtZ Thanks for working on this issue and for creating this PR based on the v1.1 tag. Since we are planning to release v1.2-beta1 soon, I think it should be ok to include this fix in the next release.

@m4rs-mt m4rs-mt merged commit cbf2f0a into m4rs-mt:master Apr 4, 2022
@MoFtZ MoFtZ deleted the bug/libdevice branch April 4, 2022 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Meet an error in JN function.
2 participants