This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

calling cl_arm_import_memory failed with error code -6 on RK3399

hey, I am new to OPENCL. bumped into an issue when we try to leverage the GPU for some math operations (basically matrix multiplication).

following is my sample code, 

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
char *allocptr = malloc(WIDTH*HEIGHT*2);
cl_mem buffer = clImportMemoryARM(context,CL_MEM_READ_WRITE, NULL,allocp$
if (error ==CL_SUCCESS)
{
printf("sucess\n");
}
else
{
printf("error %d\n.",error);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

the code can be compiled without any issue, however it through out error -6 at run time. Can anyone shed some lights here?

the CLINFO is pasted below as well.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
firefly@firefly:~$ sudo clinfo -a
Platform #0
Name: ARM Platform
Vendor: ARM
Version: OpenCL 1.2 v1.r14p0-01rel0-git(966ed26).f44c85cb3d2ceb87e8be88e7592755c3
Profile: FULL_PROFILE
Extensions: cl_khr_global_int32_base_atomics
cl_khr_global_int32_extended_atomics
cl_khr_local_int32_base_atomics
cl_khr_local_int32_extended_atomics
cl_khr_byte_addressable_store
cl_khr_3d_image_writes
cl_khr_fp64
cl_khr_int64_base_atomics
cl_khr_int64_extended_atomics
cl_khr_fp16
cl_khr_gl_sharing
cl_khr_icd
cl_khr_egl_event
cl_khr_egl_image
cl_khr_image2d_from_buffer
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0