-
Notifications
You must be signed in to change notification settings - Fork 40
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 exceptions #69
Comments
Yeah, this is currently expected, due to Metal.jl not supporting exceptions yet. You can work around this by doing a non-throwing conversion, e.g. |
Thank you for the suggestion! |
Sorry, but I'm getting the same error.
The error is the following:
|
Sorry, that's the one I meant, not plain |
Yes sorry, it works. I don’t know what was the issue… maybe I forgot the Int argument somewhere. I also have another issue. I don’t really understand how can I use a function from another package. If I define the function in the same module (Main in this case), it works; but if |
That obviously should work fine. The bug tracker is not really suited for such queries though, but you can open a thread on Discourse with some actual code to demonstrate the issue. |
For a simple situation where I need to take the floor of a number and convert it to a integer, the compilation step through GPUCompiler fails with
The failing code is the following:
The text was updated successfully, but these errors were encountered: