- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
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?
Enlace copiado
1 Responder
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
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
Responder
Opciones de temas
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla