-
Notifications
You must be signed in to change notification settings - Fork 209
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
Using copyto! with SharedArray trigger scalar indexing disallowed error #2317
Comments
To correct the expectation here, SharedArray is a non-standard array type (there are many in the Julia community) and we don't necessarily support all possible array types in CUDA.jl/GPUArrays. |
As noted by @vchuravy, we only strive to support array wrappers that are part of the Julia standard library, or some very popular arrays outside of that. Other support would have to happen in the upstream repository, e.g., as an extension package. FYI, you can also try to use unified memory (using |
Describe the bug
Using
copyto!
with a SharedArray triggers a scalar indexing disallowed error, while using an otherwise identical regular array does not.To reproduce
The Minimal Working Example (MWE) for this bug:
Manifest.toml
Expected behavior
I expect the SharedArrays array to work identically to the normally declared array when copying to a GPU array, and not trigger a scalar indexing error.
Version info
Details on Julia:
Details on CUDA:
The text was updated successfully, but these errors were encountered: