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

[bug] Unbox nodes in GraalVM JIT IR causing compilation errors. #521

Closed
andrii0lomakin opened this issue Aug 1, 2024 · 6 comments
Closed

Comments

@andrii0lomakin
Copy link
Contributor

The presence of the Unbox nodes in GrallVM IR is causing compilation errors.

There are several examples of such compilation crashes from this discussion #515 (reply in thread) and this one #516 (comment) .

@andrii0lomakin
Copy link
Contributor Author

andrii0lomakin commented Aug 1, 2024

Because I am working on the generation of kernels from basic functions and passed to them functional interfaces and will have to deal with this issue anyway - #516 I will fix this bug first if there are no objections.

@andrii0lomakin
Copy link
Contributor Author

Hi @jjfumero .
This is a small update from my side: I have fixed the issue that is shown in this test - #516 (comment). I tested only on the OpenCL platform. So, I will test on all platforms before committing the changes.

I am going to add a separate test suite to test support of primitive wrappers (obviously unboxing only; no method calls are supported), and it will include the currently failing test #515 (reply in thread) .

I suppose there will be other tests that need to be fixed.
So, how do you prefer that I submit this fix as a separate PR or provide PR for all fixed tests?

@jjfumero
Copy link
Member

Hi @andrii0lomakin , we prefer separate PRs. You can submit incremental PRs to support more and more. The important thing is that the PRs can be reproduced with tests, and those tests can run on multiple platforms (OpenCL, PTX and SPIR-V).

@andrii0lomakin
Copy link
Contributor Author

@jjfumero When you mean that you prefer incremental PRs did it imply that you use some kind of PR stacking tool or resolve all upcoming changes manually?

@andrii0lomakin andrii0lomakin changed the title Unbox nodes in GraalVM JIT IR causing compilation errors. [bug] Unbox nodes in GraalVM JIT IR causing compilation errors. Aug 12, 2024
@jjfumero
Copy link
Member

I meant. every PR is one fix, in the case you have different types of fixes.

andrii0lomakin added a commit to babylonml/TornadoVM that referenced this issue Aug 14, 2024
andrii0lomakin added a commit to babylonml/TornadoVM that referenced this issue Aug 14, 2024
andrii0lomakin added a commit to babylonml/TornadoVM that referenced this issue Aug 14, 2024
@jjfumero
Copy link
Member

I am closing this issue since the fix was provided and merged in #533

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants