OpenCL driver missing.
From the sipeed pi 4a specs:
OpenCL 1.1/1.2/2.0
But if I test for OpenCL support using clinfo I get:
$ sudo clinfo
Number of platforms 0
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.3.1
ICD loader Profile OpenCL 3.0
When I try to install the mesa ICD, I get:
$ sudo apt install mesa-opencl-icd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mesa-opencl-icd : Depends: libclc-r600 (>= 0.2.0+git20180312-1~) but it is not installable
Depends: libclc-amdgcn (>= 0.2.0+git20180312-1~) but it is not installable
E: Unable to correct problems, you have held broken packages.
How do I get an OpenCL driver onto the Lichee Pi4a board?
From working with other Imagination's GPU, the library seems to be there ( /usr/lib/libPVROCL.so) but the ICD description file seems to be missing
Make sure that /etc/OpenCL/vendors/ exist, then create in there a file like IMG.icd (same name as what they are using with their driver, but that probably do not matter) and just put libPVROCL.so in it. This should do the trick.
Thank you so much, @Godzil
That worked very well. I will leave the bug open, because this should be added to the distribution. This is now the output:
$ clinfo
Number of platforms 1
Platform Name PowerVR
Platform Vendor Imagination Technologies
Platform Version OpenCL 3.0
Platform Profile EMBEDDED_PROFILE
Platform Extensions cl_khr_icd cl_khr_fp16 cl_img_spirv cles_khr_int64 cl_img_yuv_image cl_khr_device_uuid cl_khr_depth_images cl_khr_priority_hints cl_img_generate_mipmap cl_khr_3d_image_writes cl_img_cached_allocations cl_khr_create_command_queue cl_img_mem_properties cl_img_mem_properties_relax_alloc_requirements cl_khr_extended_versioning cl_khr_image2d_from_buffer cl_khr_byte_addressable_store cl_khr_local_int32_base_atomics cl_khr_global_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_global_int32_extended_atomics cl_khr_spir cl_khr_egl_image cl_arm_import_memory cl_arm_import_memory_dma_buf cl_img_protected_content cl_img_semaphore cl_img_external_semaphore cl_img_external_semaphore_sync_fd
Platform Extensions with Version cl_khr_icd 0x400000 (1.0.0)
cl_khr_fp16 0x400000 (1.0.0)
cl_img_spirv 0x400000 (1.0.0)
cles_khr_int64 0x400000 (1.0.0)
cl_img_yuv_image 0x400000 (1.0.0)
cl_khr_device_uuid 0x400000 (1.0.0)
cl_khr_depth_images 0x400000 (1.0.0)
cl_khr_priority_hints 0x400000 (1.0.0)
cl_img_generate_mipmap 0x400000 (1.0.0)
cl_khr_3d_image_writes 0x400000 (1.0.0)
cl_img_cached_allocations 0x400000 (1.0.0)
cl_khr_create_command_queue 0x400000 (1.0.0)
cl_img_mem_properties 0x400000 (1.0.0)
cl_img_mem_properties_relax_alloc_requirements 0x400000 (1.0.0)
cl_khr_extended_versioning 0x400000 (1.0.0)
cl_khr_image2d_from_buffer 0x400000 (1.0.0)
cl_khr_byte_addressable_store 0x400000 (1.0.0)
cl_khr_local_int32_base_atomics 0x400000 (1.0.0)
cl_khr_global_int32_base_atomics 0x400000 (1.0.0)
cl_khr_local_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_global_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_spir 0x400000 (1.0.0)
cl_khr_egl_image 0x400000 (1.0.0)
cl_arm_import_memory 0x400000 (1.0.0)
cl_arm_import_memory_dma_buf 0x400000 (1.0.0)
cl_img_protected_content 0x400000 (1.0.0)
cl_img_semaphore 0x400000 (1.0.0)
cl_img_external_semaphore 0x400000 (1.0.0)
cl_img_external_semaphore_sync_fd 0x400000 (1.0.0)
Platform Numeric Version 0xc00000 (3.0.0)
Platform Extensions function suffix IMG
Platform Host timer resolution 0ns
Platform Name PowerVR
Number of devices 1
Device Name PowerVR B-Series BXM-4-64
Device Vendor Imagination Technologies
Device Vendor ID 0x1
Device Version OpenCL 3.0
Device UUID 33362035-3220-3130-3420-313832000000
Driver UUID 36303939-3538-3000-0000-000000000000
Valid Device LUID No
Device LUID 0000-000000000000
Device Node Mask 0
Device Numeric Version 0xc00000 (3.0.0)
Driver Version 1.16@6099580
Device OpenCL C Version OpenCL C 1.2
Device OpenCL C Numeric Version 0x402000 (1.2.0)
Device OpenCL C all versions OpenCL C 0x400000 (1.0.0)
OpenCL C 0x401000 (1.1.0)
OpenCL C 0x402000 (1.2.0)
OpenCL C 0xc00000 (3.0.0)
Device OpenCL C features __opencl_c_int64 0x400000 (1.0.0)
__opencl_c_pipes 0xc00000 (3.0.0)
__opencl_c_images 0x400000 (1.0.0)
__opencl_c_subgroups 0xc00000 (3.0.0)
__opencl_c_3d_image_writes 0x400000 (1.0.0)
__opencl_c_read_write_images 0x400000 (1.0.0)
__opencl_c_generic_address_space 0xc00000 (3.0.0)
__opencl_c_program_scope_global_variables 0xc00000 (3.0.0)
__opencl_c_work_group_collective_functions 0xc00000 (3.0.0)
Latest conformance test passed v2021-06-16-00
Device Type GPU
Device Profile EMBEDDED_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 1
Max clock frequency 792MHz
Device Partition (core)
Max number of sub-devices 1
Supported partition types None
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 512x512x512
Max work group size 512
Preferred work group size multiple (device) 32
44444444444444444444444444 Preferred work group size multiple (kernel) 32
Max sub-groups per work group 512
Preferred / native vector sizes
char 1 / 1
short 1 / 1
int 1 / 1
long 1 / 1
half 0 / 0 (cl_khr_fp16)
float 1 / 1
double 0 / 0 (n/a)
Half-precision Floating-point support (cl_khr_fp16)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Double-precision Floating-point support (n/a)
Address bits 64, Little-Endian
Global memory size 7300710400 (6.799GiB)
Error Correction support No
Max memory allocation 1825177600 (1.7GiB)
Unified memory for Host and Device Yes
Shared Virtual Memory (SVM) capabilities (core)
Coarse-grained buffer sharing Yes
Fine-grained buffer sharing No
Fine-grained system sharing No
Atomics No
Minimum alignment for any data type 128 bytes
Alignment of base address 1024 bits (128 bytes)
Preferred alignment for atomics
SVM 0 bytes
Global 0 bytes
Local 0 bytes
Atomic memory capabilities relaxed, work-group scope
Atomic fence capabilities relaxed, acquire/release, work-group scope
Max size for global variable 16384 (16KiB)
Preferred total size of global vars 0
Global Memory cache type Read/Write
Global Memory cache size 16384 (16KiB)
Global Memory cache line size 64 bytes
Image support Yes
Max number of samplers per kernel 8
Max size for 1D images from buffer 8192 pixels
Max 1D or 2D image array size 2048 images
Base address alignment for 2D image buffers 64 bytes
Pitch alignment for 2D image buffers 64 pixels
Max 2D image size 8192x8192 pixels
Max 3D image size 8192x8192x2048 pixels
Max number of read image args 8
Max number of write image args 1
Max number of read/write image args 64
Pipe support Yes
Max number of pipe args 16
Max active pipe reservations 1
Max pipe packet size 1024
Local memory type Local
Local memory size 4096 (4KiB)
Max number of constant args 4
Max constant buffer size 65536 (64KiB)
Generic address space support Yes
Max size of kernel argument 1024
Queue properties (on host)
Out-of-order execution Yes
Profiling Yes
Device enqueue capabilities (n/a)
Queue properties (on device)
Out-of-order execution No
Profiling No
Preferred size 0
Max size 0
Max queues on device 0
Max events on device 0
Prefer user sync for interop Yes
Profiling timer resolution 1000ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels Yes
Non-uniform work-groups Yes
Work-group collective functions Yes
Sub-group independent forward progress No
IL version (n/a)
ILs with version (n/a)
SPIR versions 1.2
printf() buffer size 65536 (64KiB)
Built-in kernels (n/a)
Built-in kernels with version (n/a)
Device Extensions cl_khr_icd cl_khr_fp16 cl_img_spirv cles_khr_int64 cl_img_yuv_image cl_khr_device_uuid cl_khr_depth_images cl_khr_priority_hints cl_img_generate_mipmap cl_khr_3d_image_writes cl_img_cached_allocations cl_khr_create_command_queue cl_img_mem_properties cl_img_mem_properties_relax_alloc_requirements cl_khr_extended_versioning cl_khr_image2d_from_buffer cl_khr_byte_addressable_store cl_khr_local_int32_base_atomics cl_khr_global_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_global_int32_extended_atomics cl_khr_spir cl_khr_egl_image cl_arm_import_memory cl_arm_import_memory_dma_buf cl_img_protected_content cl_img_semaphore cl_img_external_semaphore cl_img_external_semaphore_sync_fd
Device Extensions with Version cl_khr_icd 0x400000 (1.0.0)
cl_khr_fp16 0x400000 (1.0.0)
cl_img_spirv 0x400000 (1.0.0)
cles_khr_int64 0x400000 (1.0.0)
cl_img_yuv_image 0x400000 (1.0.0)
cl_khr_device_uuid 0x400000 (1.0.0)
cl_khr_depth_images 0x400000 (1.0.0)
cl_khr_priority_hints 0x400000 (1.0.0)
cl_img_generate_mipmap 0x400000 (1.0.0)
cl_khr_3d_image_writes 0x400000 (1.0.0)
cl_img_cached_allocations 0x400000 (1.0.0)
cl_khr_create_command_queue 0x400000 (1.0.0)
cl_img_mem_properties 0x400000 (1.0.0)
cl_img_mem_properties_relax_alloc_requirements 0x400000 (1.0.0)
cl_khr_extended_versioning 0x400000 (1.0.0)
cl_khr_image2d_from_buffer 0x400000 (1.0.0)
cl_khr_byte_addressable_store 0x400000 (1.0.0)
cl_khr_local_int32_base_atomics 0x400000 (1.0.0)
cl_khr_global_int32_base_atomics 0x400000 (1.0.0)
cl_khr_local_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_global_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_spir 0x400000 (1.0.0)
cl_khr_egl_image 0x400000 (1.0.0)
cl_arm_import_memory 0x400000 (1.0.0)
cl_arm_import_memory_dma_buf 0x400000 (1.0.0)
cl_img_protected_content 0x400000 (1.0.0)
cl_img_semaphore 0x400000 (1.0.0)
cl_img_external_semaphore 0x400000 (1.0.0)
cl_img_external_semaphore_sync_fd 0x400000 (1.0.0)
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) PowerVR
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [IMG]
clCreateContext(NULL, ...) [default] Success [IMG]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name PowerVR
Device Name PowerVR B-Series BXM-4-64
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name PowerVR
Device Name PowerVR B-Series BXM-4-64
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) Invalid device type for platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name PowerVR
Device Name PowerVR B-Series BXM-4-64
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.3.1
ICD loader Profile OpenCL 3.0
root@lpi4a:/etc/OpenCL/vendors# clinfo | less
root@lpi4a:/etc/OpenCL/vendors# clinfo
Number of platforms 1
Platform Name PowerVR
Platform Vendor Imagination Technologies
Platform Version OpenCL 3.0
Platform Profile EMBEDDED_PROFILE
Platform Extensions cl_khr_icd cl_khr_fp16 cl_img_spirv cles_khr_int64 cl_img_yuv_image cl_khr_device_uuid cl_khr_depth_images cl_khr_priority_hints cl_img_generate_mipmap cl_khr_3d_image_writes cl_img_cached_allocations cl_khr_create_command_queue cl_img_mem_properties cl_img_mem_properties_relax_alloc_requirements cl_khr_extended_versioning cl_khr_image2d_from_buffer cl_khr_byte_addressable_store cl_khr_local_int32_base_atomics cl_khr_global_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_global_int32_extended_atomics cl_khr_spir cl_khr_egl_image cl_arm_import_memory cl_arm_import_memory_dma_buf cl_img_protected_content cl_img_semaphore cl_img_external_semaphore cl_img_external_semaphore_sync_fd
Platform Extensions with Version cl_khr_icd 0x400000 (1.0.0)
cl_khr_fp16 0x400000 (1.0.0)
cl_img_spirv 0x400000 (1.0.0)
cles_khr_int64 0x400000 (1.0.0)
cl_img_yuv_image 0x400000 (1.0.0)
cl_khr_device_uuid 0x400000 (1.0.0)
cl_khr_depth_images 0x400000 (1.0.0)
cl_khr_priority_hints 0x400000 (1.0.0)
cl_img_generate_mipmap 0x400000 (1.0.0)
cl_khr_3d_image_writes 0x400000 (1.0.0)
cl_img_cached_allocations 0x400000 (1.0.0)
cl_khr_create_command_queue 0x400000 (1.0.0)
cl_img_mem_properties 0x400000 (1.0.0)
cl_img_mem_properties_relax_alloc_requirements 0x400000 (1.0.0)
cl_khr_extended_versioning 0x400000 (1.0.0)
cl_khr_image2d_from_buffer 0x400000 (1.0.0)
cl_khr_byte_addressable_store 0x400000 (1.0.0)
cl_khr_local_int32_base_atomics 0x400000 (1.0.0)
cl_khr_global_int32_base_atomics 0x400000 (1.0.0)
cl_khr_local_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_global_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_spir 0x400000 (1.0.0)
cl_khr_egl_image 0x400000 (1.0.0)
cl_arm_import_memory 0x400000 (1.0.0)
cl_arm_import_memory_dma_buf 0x400000 (1.0.0)
cl_img_protected_content 0x400000 (1.0.0)
cl_img_semaphore 0x400000 (1.0.0)
cl_img_external_semaphore 0x400000 (1.0.0)
cl_img_external_semaphore_sync_fd 0x400000 (1.0.0)
Platform Numeric Version 0xc00000 (3.0.0)
Platform Extensions function suffix IMG
Platform Host timer resolution 0ns
Platform Name PowerVR
Number of devices 1
Device Name PowerVR B-Series BXM-4-64
Device Vendor Imagination Technologies
Device Vendor ID 0x1
Device Version OpenCL 3.0
Device UUID 33362035-3220-3130-3420-313832000000
Driver UUID 36303939-3538-3000-0000-000000000000
Valid Device LUID No
Device LUID 0000-000000000000
Device Node Mask 0
Device Numeric Version 0xc00000 (3.0.0)
Driver Version 1.16@6099580
Device OpenCL C Version OpenCL C 1.2
Device OpenCL C Numeric Version 0x402000 (1.2.0)
Device OpenCL C all versions OpenCL C 0x400000 (1.0.0)
OpenCL C 0x401000 (1.1.0)
OpenCL C 0x402000 (1.2.0)
OpenCL C 0xc00000 (3.0.0)
Device OpenCL C features __opencl_c_int64 0x400000 (1.0.0)
__opencl_c_pipes 0xc00000 (3.0.0)
__opencl_c_images 0x400000 (1.0.0)
__opencl_c_subgroups 0xc00000 (3.0.0)
__opencl_c_3d_image_writes 0x400000 (1.0.0)
__opencl_c_read_write_images 0x400000 (1.0.0)
__opencl_c_generic_address_space 0xc00000 (3.0.0)
__opencl_c_program_scope_global_variables 0xc00000 (3.0.0)
__opencl_c_work_group_collective_functions 0xc00000 (3.0.0)
Latest conformance test passed v2021-06-16-00
Device Type GPU
Device Profile EMBEDDED_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 1
Max clock frequency 792MHz
Device Partition (core)
Max number of sub-devices 1
Supported partition types None
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 512x512x512
Max work group size 512
Preferred work group size multiple (device) 32
44444444444444444444444444 Preferred work group size multiple (kernel) 32
Max sub-groups per work group 512
Preferred / native vector sizes
char 1 / 1
short 1 / 1
int 1 / 1
long 1 / 1
half 0 / 0 (cl_khr_fp16)
float 1 / 1
double 0 / 0 (n/a)
Half-precision Floating-point support (cl_khr_fp16)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Double-precision Floating-point support (n/a)
Address bits 64, Little-Endian
Global memory size 7270486016 (6.771GiB)
Error Correction support No
Max memory allocation 1817621504 (1.693GiB)
Unified memory for Host and Device Yes
Shared Virtual Memory (SVM) capabilities (core)
Coarse-grained buffer sharing Yes
Fine-grained buffer sharing No
Fine-grained system sharing No
Atomics No
Minimum alignment for any data type 128 bytes
Alignment of base address 1024 bits (128 bytes)
Preferred alignment for atomics
SVM 0 bytes
Global 0 bytes
Local 0 bytes
Atomic memory capabilities relaxed, work-group scope
Atomic fence capabilities relaxed, acquire/release, work-group scope
Max size for global variable 16384 (16KiB)
Preferred total size of global vars 0
Global Memory cache type Read/Write
Global Memory cache size 16384 (16KiB)
Global Memory cache line size 64 bytes
Image support Yes
Max number of samplers per kernel 8
Max size for 1D images from buffer 8192 pixels
Max 1D or 2D image array size 2048 images
Base address alignment for 2D image buffers 64 bytes
Pitch alignment for 2D image buffers 64 pixels
Max 2D image size 8192x8192 pixels
Max 3D image size 8192x8192x2048 pixels
Max number of read image args 8
Max number of write image args 1
Max number of read/write image args 64
Pipe support Yes
Max number of pipe args 16
Max active pipe reservations 1
Max pipe packet size 1024
Local memory type Local
Local memory size 4096 (4KiB)
Max number of constant args 4
Max constant buffer size 65536 (64KiB)
Generic address space support Yes
Max size of kernel argument 1024
Queue properties (on host)
Out-of-order execution Yes
Profiling Yes
Device enqueue capabilities (n/a)
Queue properties (on device)
Out-of-order execution No
Profiling No
Preferred size 0
Max size 0
Max queues on device 0
Max events on device 0
Prefer user sync for interop Yes
Profiling timer resolution 1000ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels Yes
Non-uniform work-groups Yes
Work-group collective functions Yes
Sub-group independent forward progress No
IL version (n/a)
ILs with version (n/a)
SPIR versions 1.2
printf() buffer size 65536 (64KiB)
Built-in kernels (n/a)
Built-in kernels with version (n/a)
Device Extensions cl_khr_icd cl_khr_fp16 cl_img_spirv cles_khr_int64 cl_img_yuv_image cl_khr_device_uuid cl_khr_depth_images cl_khr_priority_hints cl_img_generate_mipmap cl_khr_3d_image_writes cl_img_cached_allocations cl_khr_create_command_queue cl_img_mem_properties cl_img_mem_properties_relax_alloc_requirements cl_khr_extended_versioning cl_khr_image2d_from_buffer cl_khr_byte_addressable_store cl_khr_local_int32_base_atomics cl_khr_global_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_global_int32_extended_atomics cl_khr_spir cl_khr_egl_image cl_arm_import_memory cl_arm_import_memory_dma_buf cl_img_protected_content cl_img_semaphore cl_img_external_semaphore cl_img_external_semaphore_sync_fd
Device Extensions with Version cl_khr_icd 0x400000 (1.0.0)
cl_khr_fp16 0x400000 (1.0.0)
cl_img_spirv 0x400000 (1.0.0)
cles_khr_int64 0x400000 (1.0.0)
cl_img_yuv_image 0x400000 (1.0.0)
cl_khr_device_uuid 0x400000 (1.0.0)
cl_khr_depth_images 0x400000 (1.0.0)
cl_khr_priority_hints 0x400000 (1.0.0)
cl_img_generate_mipmap 0x400000 (1.0.0)
cl_khr_3d_image_writes 0x400000 (1.0.0)
cl_img_cached_allocations 0x400000 (1.0.0)
cl_khr_create_command_queue 0x400000 (1.0.0)
cl_img_mem_properties 0x400000 (1.0.0)
cl_img_mem_properties_relax_alloc_requirements 0x400000 (1.0.0)
cl_khr_extended_versioning 0x400000 (1.0.0)
cl_khr_image2d_from_buffer 0x400000 (1.0.0)
cl_khr_byte_addressable_store 0x400000 (1.0.0)
cl_khr_local_int32_base_atomics 0x400000 (1.0.0)
cl_khr_global_int32_base_atomics 0x400000 (1.0.0)
cl_khr_local_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_global_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_spir 0x400000 (1.0.0)
cl_khr_egl_image 0x400000 (1.0.0)
cl_arm_import_memory 0x400000 (1.0.0)
cl_arm_import_memory_dma_buf 0x400000 (1.0.0)
cl_img_protected_content 0x400000 (1.0.0)
cl_img_semaphore 0x400000 (1.0.0)
cl_img_external_semaphore 0x400000 (1.0.0)
cl_img_external_semaphore_sync_fd 0x400000 (1.0.0)
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) PowerVR
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [IMG]
clCreateContext(NULL, ...) [default] Success [IMG]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name PowerVR
Device Name PowerVR B-Series BXM-4-64
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name PowerVR
Device Name PowerVR B-Series BXM-4-64
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) Invalid device type for platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name PowerVR
Device Name PowerVR B-Series BXM-4-64
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.3.1
ICD loader Profile OpenCL 3.0
I can use OpenCL now, but sadly it segfaults as soon as I enqueue my kernel.
The callstack is of little use. Is there any way that I can get the debug symbols for libPVROCL.so perhaps?
Thread 2 "testgib" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x3ff427e160 (LWP 11429)]
__GI_memset (dstpp=0x3fe8e7e000, c=0, len=<optimized out>) at ./string/memset.c:56
56 ./string/memset.c: No such file or directory.
(gdb) where
#0 __GI_memset (dstpp=0x3fe8e7e000, c=0, len=<optimized out>) at ./string/memset.c:56
#1 0x0000003ff7aef292 in ?? () from /lib/libPVROCL.so
EDIT: The crash is caused by an EnqueueFillBuffer operation, it has nothing do to with the OpenCL kernel.