-
Notifications
You must be signed in to change notification settings - Fork 120
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
Is it possible to copy data to device constant memory? #88
Comments
I believe |
Thanks for the response! Using Here’s an example of what I’m trying to do:
When I run this I get the following error:
I assume that If I were writing C CUDA then I assume I’d need to annotate |
#[no_mangle]
static DATA: [f32; 1024] = [0.; 1024]; |
When using C CUDA it's possible to allocate constant memory on the GPU by using
cudaMemcpyToSymbol
rather thancudaMemcpy
. Is there a similar mechanism in thecust
library for copying an array with a constant size from the host to the device constant memory?The text was updated successfully, but these errors were encountered: