- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey guys.
I have a little doubt and I really need your help.
My problem is this:
I create an opencl buffer as follows:
d_sample = clCreateBuffer(context, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR,
sizeof(float) * (1 * 3 * 224 * 224), NULL, &status);
checkError(status, "Failed to create buffer d_sample");
Then I have 1 array full of values like my_array [99999]
And I want to pass these values from my array to the buffer.
How can I do it?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please, take a look at example, which is coming with Intel(R) OpenCL SDK in CPU/GPU Template.
Also, take a look at OpenCL documentation.
Best regards,
Sergey

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page