cdeterman / gpuR

R interface to use GPU's
241 stars 26 forks source link

Problem with devices which doesn't support cl_khr_fp64 #39

Closed dselivanov closed 8 years ago

dselivanov commented 8 years ago

Error from master 0e54a5d.

library(gpuR)
A <- seq.int(from=0, to=999)
gpuA <- gpuVector(A)

Error in deviceHasDouble(platform_index, device_index) : is_integer : gpu_idx is not of type 'integer'; it has class 'numeric'.

Seems somewhere internally we call deviceHasDouble with numeric argument. I can open new issue for that.

gpuInfo()

$deviceName [1] "Iris Pro" $deviceVendor [1] "Intel" $numberOfCores [1] 40 $maxWorkGroupSize [1] 512 $maxWorkItemDim [1] 3 $maxWorkItemSizes [1] 512 512 512 $deviceMemory [1] 1610612736 $clockFreq [1] 1200 $localMem [1] 65536 $maxAllocatableMem [1] 402653184 $available [1] "yes" $deviceExtensions [1] "cl_APPLE_SetMemObjectDestructor" "cl_APPLE_ContextLoggingFunctions"
[3] "cl_APPLE_clut" "cl_APPLE_query_kernel_names"
[5] "cl_APPLE_gl_sharing" "cl_khr_gl_event"
[7] "cl_khr_global_int32_base_atomics" "cl_khr_global_int32_extended_atomics" [9] "cl_khr_local_int32_base_atomics" "cl_khr_local_int32_extended_atomics" [11] "cl_khr_byte_addressable_store" "cl_khr_image2d_from_buffer"
[13] "cl_khr_gl_depth_images" "cl_khr_depth_images"
[15] "cl_khr_3d_image_writes" ""
$double_support [1] FALSE

dselivanov commented 8 years ago

Works fine on develop branch - feel free to close.