-
Notifications
You must be signed in to change notification settings - Fork 127
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
Python frontend should use storage type of array to determine map schedule #1185
Comments
+1 Hit this multiple times in different occasion. The worst is that it can manifest as a host code accessing device memory, crashing in non-obvious way for non GPU native coders. Another example would be: a_device_array = np.min(a_device_array , 0.0) Here the coder mistake of using |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@alexnick83
In the following example, the storage types of the output arrays are well-inferred:
However, the map generated by
a + b
would have theDefault
schedule, which translates to a CPU map, which subsequently crashes.Additionally, the following code should probably fail gracefully, due to the output storage / computation schedule not being able to be inferred:
but it doesn't fail.
The text was updated successfully, but these errors were encountered: