-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
I have a (Debian stable) system with three OpenCL platforms installed:
$ clinfo | head -21
Number of platforms 3
Platform Name Intel Gen OCL Driver
Platform Vendor Intel
Platform Version OpenCL 2.0 beignet 1.3
Platform Profile FULL_PROFILE
Platform 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_image2d_from_buffer cl_khr_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short
Platform Extensions function suffix Intel
Platform Name Intel(R) OpenCL
Platform Vendor Intel(R) Corporation
Platform Version OpenCL 2.0
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_icd cl_khr_image2d_from_buffer cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_spir
Platform Extensions function suffix INTEL
Platform Name Portable Computing Language
Platform Vendor The pocl project
Platform Version OpenCL 2.0 pocl 0.13, LLVM 3.8.1
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix POCL
Beignet and POCL have been installed from the Debian repositories. For Intel OpenCL I used the binary installer from Intel. A simple sample program finds all three platforms:
#include <stdio.h>
#include <CL/cl.h>
int main(void)
{
cl_int err;
cl_uint numPlatforms = 0;
err = clGetPlatformIDs(0, NULL, &numPlatforms);
if (CL_SUCCESS == err)
printf("Detected OpenCL platforms: %d\n", numPlatforms);
else
printf("Error calling clGetPlatformIDs. Error code: %d\n", err);
return 0;
}Output:
$ ./platforms
Detected OpenCL platforms: 3
However, gpuR::detectPlatforms() finds only two of them:
gpuR::detectPlatforms()
#> [1] 2
packageVersion("gpuR")
#> [1] '2.0.0'I am pretty sure that it is Intel OpenCL that is missing since something similar happens in the OpenCL package: s-u/OpenCL#4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels