OpenCL - Interface allowing R to use OpenCL - check results
RForge.net

OpenCL

About OpenCL
GIT access
Download/Files
News
Check results
Package R docs

Version: 0.2-11
Result: OK
Check time: 2024-03-15 00:47
* using log directory ‘’
* using R Under development (unstable) (2023-11-28 r85645)
* using platform: x86_64-pc-linux-gnu
* R was compiled by
gcc (Debian 10.2.1-6) 10.2.1 20210110
GNU Fortran (Debian 10.2.1-6) 10.2.1 20210110
* running under: Debian GNU/Linux 11 (bullseye)
* using session charset: UTF-8
* using option ‘--as-cran’
* checking for file ‘OpenCL/DESCRIPTION’ ... OK
* this is package ‘OpenCL’ version ‘0.2-11’
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking serialization versions ... OK
* checking whether package ‘OpenCL’ can be installed ... OK
* used C compiler: ‘gcc (Debian 10.2.1-6) 10.2.1 20210110’
* checking installed package size ... OK
* checking package directory ... OK
* checking for future file timestamps ... OK
* checking DESCRIPTION meta-information ... NOTE
License stub is invalid DCF.
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking loading without being on the library search path ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking line endings in C/C++/Fortran sources/headers ... OK
* checking line endings in Makefiles ... OK
* checking compilation flags in Makevars ... OK
* checking for GNU extensions in Makefiles ... NOTE
GNU make is a SystemRequirements.
* checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
* checking use of PKG_*FLAGS in Makefiles ... OK
* checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
* checking pragmas in C/C++ headers and code ... OK
* checking compilation flags used ... OK
* checking compiled code ... OK
* checking examples ... OK
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ...
Running ‘buffer.R’
Comparing ‘buffer.Rout’ to ‘buffer.Rout.save’ ...4a5,81
> > ctx<-oclContext()
> >
> > # 1. Create single-precision buffer and fill with values
> > buf <- clBuffer(ctx, 16, "single")
> > buf[] <- 1:16
> >
> > # Inspect the resulting buffer
> > class(buf)
> [1] "clBuffer"
> > print(attributes(buf)$mode)
> [1] "single"
> > print(buf)
> OpenCL buffer, 16 elements of type single
> [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
> > length(buf)
> [1] 16
> >
> > # subsetting
> > buf[2:5] # contiguous
> [1] 2 3 4 5
> > buf[c(1,6)] # non-contiguous
> [1] 1 6
> > buf[-1] # negative
> [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
> > buf[buf[] > 6] # logical
> [1] 7 8 9 10 11 12 13 14 15 16
> > buf[c(NA, 4)] # NA
> [1] NA 4
> >
> > # subassignment
> > buf[2:3] = 0 # contiguous
> > buf[1:5]
> [1] 1 0 0 4 5
> > sum(buf[1:4])
> [1] 5
> > buf[5:4] = c(1,2) # non-contiguous (reversed)
> > buf[1:5]
> [1] 1 0 0 2 1
> >
> > # Check if memory accounting works.
> > oclMemLimits()$used
> [1] 64
> > rm(buf)
> > invisible(gc())
> > oclMemLimits()$used
> [1] 0
> >
> > # 2. The same for an integer buffer
> > ints <- clBuffer(ctx, 32, "integer")
> > ints[] <- 16:47
> >
> > # Inspect the resulting buffer
> > class(ints)
> [1] "clBuffer"
> > print(attributes(ints)$mode)
> [1] "integer"
> > print(ints)
> OpenCL buffer, 32 elements of type integer
> [1] 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
> [26] 41 42 43 44 45 46 47
> > length(ints)
> [1] 32
> >
> > # 3. Let's see if we can guess the type correctly
> > numeric.buf <- as.clBuffer(sqrt(3:18), ctx)
> > print(numeric.buf)
> OpenCL buffer, 16 elements of type double
> [1] 1.732051 2.000000 2.236068 2.449490 2.645751 2.828427 3.000000 3.162278
> [9] 3.316625 3.464102 3.605551 3.741657 3.872983 4.000000 4.123106 4.242641
> > integer.buf <- as.clBuffer(-1:14, ctx)
> > print(integer.buf)
> OpenCL buffer, 16 elements of type integer
> [1] -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
> >
> > # 4. Other functions
> > c(is.clBuffer(ints), is.clBuffer(1:16), is.clBuffer(ctx))
> [1] TRUE FALSE FALSE
6,15d82
< > if (!length(oclPlatforms())) {
< + cat("== Cannot run tests as there is no platform")
< + q("no")
< + }
< == Cannot run tests as there is no platform> proc.time()
< user system elapsed
< 0.096 0.022 0.111
< Warning message:
< In oclPlatforms() :
< No OpenCL platforms found - try adding Installable Client Drivers (ICD) for your hardware.
Running ‘kernel.R’
Comparing ‘kernel.Rout’ to ‘kernel.Rout.save’ ...4a5,36
> > ctx <- oclContext()
> > code <- readChar("kernel.cl", nchars=file.info("kernel.cl")$size)
> >
> > # 1. Create kernel without inputs and run it
> > linear <- oclSimpleKernel(ctx, "linear", code, "integer")
> > oclRun(linear, 4)
> OpenCL buffer, 4 elements of type integer
> [1] 0 1 2 3
> > oclRun(linear, 32)
> OpenCL buffer, 32 elements of type integer
> [1] 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
> [26] 25 26 27 28 29 30 31
> >
> > # 2. Run kernel with a numeric input buffer
> > square <- oclSimpleKernel(ctx, "square", code)
> > input <- as.clBuffer(sqrt(1:16), ctx)
> > output <- oclRun(square, 16, input)
> > output
> OpenCL buffer, 16 elements of type double
> [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
> > oclRun(square, 16, output)
> OpenCL buffer, 16 elements of type double
> [1] 1 4 9 16 25 36 49 64 81 100 121 144 169 196 225 256
> >
> > # 3. Run kernel with a buffer argument and a scalar argument
> > multiply <- oclSimpleKernel(ctx, "multiply", code)
> > input <- as.clBuffer((1:16)^2, ctx)
> > output <- oclRun(multiply, 16, input, 2.5)
> > output
> OpenCL buffer, 16 elements of type double
> [1] 2.5 10.0 22.5 40.0 62.5 90.0 122.5 160.0 202.5 250.0 302.5 360.0
> [13] 422.5 490.0 562.5 640.0
6,15d37
< > if (!length(oclPlatforms())) {
< + cat("== Cannot run tests as there is no platform")
< + q("no")
< + }
< == Cannot run tests as there is no platform> proc.time()
< user system elapsed
< 0.108 0.011 0.112
< Warning message:
< In oclPlatforms() :
< No OpenCL platforms found - try adding Installable Client Drivers (ICD) for your hardware.
OK
* checking PDF version of manual ... OK
* checking HTML version of manual ... OK
* checking for non-standard things in the check directory ... OK
* checking for detritus in the temp directory ... OK
* DONE

Status: 2 NOTEs
See
‘/00check.log’
for details.



Installation log: 00install.out

Distribution log

SVN checkout/GIT clone log


Build log for Mac OS X 10.5 (R 2.16.x)

* installing *source* package 'OpenCL' ...
** libs
*** arch - i386
gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -DNDEBUG -I/usr/local/include -fPIC -g -O2 -c ocl.c -o ocl.o
ocl.c:4:27: error: OpenCL/opencl.h: No such file or directory
ocl.c:20: error: expected ')' before 'id'
ocl.c:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getPlatformID'
ocl.c:37: error: expected ')' before 'id'
ocl.c:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getDeviceID'
ocl.c: In function 'clFreeContext':
ocl.c:56: warning: implicit declaration of function 'clReleaseContext'
ocl.c:56: error: 'cl_context' undeclared (first use in this function)
ocl.c:56: error: (Each undeclared identifier is reported only once
ocl.c:56: error: for each function it appears in.)
ocl.c:56: error: expected ')' before 'R_ExternalPtrAddr'
ocl.c: At top level:
ocl.c:59: error: expected ')' before 'ctx'
ocl.c: In function 'clFreeKernel':
ocl.c:78: warning: implicit declaration of function 'clReleaseKernel'
ocl.c:78: error: 'cl_kernel' undeclared (first use in this function)
ocl.c:78: error: expected ')' before 'R_ExternalPtrAddr'
ocl.c: At top level:
ocl.c:81: error: expected ')' before 'k'
ocl.c:90: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getKernel'
ocl.c: In function 'ocl_platforms':
ocl.c:99: error: 'cl_uint' undeclared (first use in this function)
ocl.c:99: error: expected ';' before 'np'
ocl.c:100: error: 'cl_platform_id' undeclared (first use in this function)
ocl.c:100: error: 'pid' undeclared (first use in this function)
ocl.c:101: warning: implicit declaration of function 'clGetPlatformIDs'
ocl.c:101: error: 'np' undeclared (first use in this function)
ocl.c:101: error: 'CL_SUCCESS' undeclared (first use in this function)
ocl.c:106: error: expected expression before ')' token
ocl.c:113: warning: implicit declaration of function 'mkPlatformID'
ocl.c:113: warning: passing argument 3 of 'SET_VECTOR_ELT' makes pointer from integer without a cast
ocl.c: In function 'ocl_devices':
ocl.c:121: error: 'cl_platform_id' undeclared (first use in this function)
ocl.c:121: error: expected ';' before 'pid'
ocl.c:123: error: 'cl_uint' undeclared (first use in this function)
ocl.c:123: error: expected ';' before 'np'
ocl.c:124: error: 'cl_device_id' undeclared (first use in this function)
ocl.c:124: error: 'did' undeclared (first use in this function)
ocl.c:125: error: 'cl_device_type' undeclared (first use in this function)
ocl.c:125: error: expected ';' before 'dt'
ocl.c:127: warning: implicit declaration of function 'clGetDeviceIDs'
ocl.c:127: error: 'pid' undeclared (first use in this function)
ocl.c:127: error: 'dt' undeclared (first use in this function)
ocl.c:127: error: 'np' undeclared (first use in this function)
ocl.c:127: error: 'CL_SUCCESS' undeclared (first use in this function)
ocl.c:133: error: 'CL_DEVICE_TYPE_CPU' undeclared (first use in this function)
ocl.c:135: error: 'CL_DEVICE_TYPE_GPU' undeclared (first use in this function)
ocl.c:138: error: 'CL_DEVICE_TYPE_ACCELERATOR' undeclared (first use in this function)
ocl.c:140: error: 'CL_DEVICE_TYPE_ALL' undeclared (first use in this function)
ocl.c:142: error: 'CL_DEVICE_TYPE_DEFAULT' undeclared (first use in this function)
ocl.c:148: error: expected expression before ')' token
ocl.c:155: warning: implicit declaration of function 'mkDeviceID'
ocl.c:155: warning: passing argument 3 of 'SET_VECTOR_ELT' makes pointer from integer without a cast
ocl.c: In function 'ocl_get_device_info_char':
ocl.c:164: error: 'cl_device_id' undeclared (first use in this function)
ocl.c:164: error: expected ';' before 'device_id'
ocl.c:165: error: 'cl_device_info' undeclared (first use in this function)
ocl.c:165: error: expected ';' before 'pn'
ocl.c:167: warning: implicit declaration of function 'clGetDeviceInfo'
ocl.c:167: error: 'device_id' undeclared (first use in this function)
ocl.c:167: error: 'pn' undeclared (first use in this function)
ocl.c:167: error: 'CL_SUCCESS' undeclared (first use in this function)
ocl.c: At top level:
ocl.c:172: error: expected ')' before 'device_id'
ocl.c:179: error: expected ')' before 'platform_id'
ocl.c: In function 'ocl_get_device_info':
ocl.c:188: error: 'cl_device_id' undeclared (first use in this function)
ocl.c:188: error: expected ';' before 'device_id'
ocl.c:195: warning: implicit declaration of function 'getDeviceInfo'
ocl.c:195: error: 'device_id' undeclared (first use in this function)
ocl.c:195: error: 'CL_DEVICE_NAME' undeclared (first use in this function)
ocl.c:195: warning: passing argument 3 of 'SET_VECTOR_ELT' makes pointer from integer without a cast
ocl.c:196: error: 'CL_DEVICE_VENDOR' undeclared (first use in this function)
ocl.c:196: warning: passing argument 3 of 'SET_VECTOR_ELT' makes pointer from integer without a cast
ocl.c:197: error: 'CL_DEVICE_VERSION' undeclared (first use in this function)
ocl.c:197: warning: passing argument 3 of 'SET_VECTOR_ELT' makes pointer from integer without a cast
ocl.c:198: error: 'CL_DEVICE_PROFILE' undeclared (first use in this function)
ocl.c:198: warning: passing argument 3 of 'SET_VECTOR_ELT' makes pointer from integer without a cast
ocl.c:199: error: 'CL_DEVICE_EXTENSIONS' undeclared (first use in this function)
ocl.c:199: warning: passing argument 3 of 'SET_VECTOR_ELT' makes pointer from integer without a cast
ocl.c:200: error: 'CL_DRIVER_VERSION' undeclared (first use in this function)
ocl.c:200: warning: passing argument 3 of 'SET_VECTOR_ELT' makes pointer from integer without a cast
ocl.c: In function 'ocl_get_platform_info':
ocl.c:207: error: 'cl_platform_id' undeclared (first use in this function)
ocl.c:207: error: expected ';' before 'platform_id'
ocl.c:214: warning: implicit declaration of function 'getPlatformInfo'
ocl.c:214: error: 'platform_id' undeclared (first use in this function)
ocl.c:214: error: 'CL_PLATFORM_NAME' undeclared (first use in this function)
ocl.c:214: warning: passing argument 3 of 'SET_VECTOR_ELT' makes pointer from integer without a cast
ocl.c:215: error: 'CL_PLATFORM_VENDOR' undeclared (first use in this function)
ocl.c:215: warning: passing argument 3 of 'SET_VECTOR_ELT' makes pointer from integer without a cast
ocl.c:216: error: 'CL_PLATFORM_VERSION' undeclared (first use in this function)
ocl.c:216: warning: passing argument 3 of 'SET_VECTOR_ELT' makes pointer from integer without a cast
ocl.c:217: error: 'CL_PLATFORM_PROFILE' undeclared (first use in this function)
ocl.c:217: warning: passing argument 3 of 'SET_VECTOR_ELT' makes pointer from integer without a cast
ocl.c:218: error: 'CL_PLATFORM_EXTENSIONS' undeclared (first use in this function)
ocl.c:218: warning: passing argument 3 of 'SET_VECTOR_ELT' makes pointer from integer without a cast
ocl.c: In function 'ocl_ez_kernel':
ocl.c:229: error: 'cl_context' undeclared (first use in this function)
ocl.c:229: error: expected ';' before 'ctx'
ocl.c:232: error: 'cl_device_id' undeclared (first use in this function)
ocl.c:232: error: expected ';' before 'device_id'
ocl.c:233: error: 'cl_program' undeclared (first use in this function)
ocl.c:233: error: expected ';' before 'program'
ocl.c:234: error: 'cl_kernel' undeclared (first use in this function)
ocl.c:234: error: expected ';' before 'kernel'
ocl.c:242: error: 'ctx' undeclared (first use in this function)
ocl.c:242: warning: implicit declaration of function 'clCreateContext'
ocl.c:242: error: 'device_id' undeclared (first use in this function)
ocl.c:245: warning: implicit declaration of function 'mkContext'
ocl.c:245: warning: passing argument 1 of 'Rf_protect' makes pointer from integer without a cast
ocl.c:252: error: 'program' undeclared (first use in this function)
ocl.c:252: warning: implicit declaration of function 'clCreateProgramWithSource'
ocl.c:258: warning: implicit declaration of function 'clBuildProgram'
ocl.c:259: error: 'CL_SUCCESS' undeclared (first use in this function)
ocl.c:261: warning: implicit declaration of function 'clGetProgramBuildInfo'
ocl.c:261: error: 'CL_PROGRAM_BUILD_LOG' undeclared (first use in this function)
ocl.c:262: warning: implicit declaration of function 'clReleaseProgram'
ocl.c:266: error: 'kernel' undeclared (first use in this function)
ocl.c:266: warning: implicit declaration of function 'clCreateKernel'
ocl.c:272: warning: implicit declaration of function 'mkKernel'
ocl.c:272: warning: passing argument 1 of 'Rf_protect' makes pointer from integer without a cast
ocl.c: At top level:
ocl.c:346: error: expected specifier-qualifier-list before 'cl_mem'
ocl.c: In function 'ocl_call_context_fin':
ocl.c:362: error: 'ocl_call_context_t' has no member named 'finished'
ocl.c:362: warning: implicit declaration of function 'clFinish'
ocl.c:362: error: 'ocl_call_context_t' has no member named 'commands'
ocl.c:363: error: 'ocl_call_context_t' has no member named 'event'
ocl.c:363: warning: implicit declaration of function 'clReleaseEvent'
ocl.c:363: error: 'ocl_call_context_t' has no member named 'event'
ocl.c:364: error: 'ocl_call_context_t' has no member named 'output'
ocl.c:364: warning: implicit declaration of function 'clReleaseMemObject'
ocl.c:364: error: 'ocl_call_context_t' has no member named 'output'
ocl.c:365: error: 'ocl_call_context_t' has no member named 'float_args'
ocl.c:365: error: 'ocl_call_context_t' has no member named 'float_args'
ocl.c:366: error: 'ocl_call_context_t' has no member named 'float_out'
ocl.c:366: error: 'ocl_call_context_t' has no member named 'float_out'
ocl.c:367: error: 'ocl_call_context_t' has no member named 'mem_objects'
ocl.c:367: error: 'ocl_call_context_t' has no member named 'mem_objects'
ocl.c:367: error: 'clReleaseMemObject' undeclared (first use in this function)
ocl.c:368: error: 'ocl_call_context_t' has no member named 'commands'
ocl.c:368: warning: implicit declaration of function 'clReleaseCommandQueue'
ocl.c:368: error: 'ocl_call_context_t' has no member named 'commands'
ocl.c: In function 'ocl_call':
ocl.c:390: error: 'cl_kernel' undeclared (first use in this function)
ocl.c:390: error: expected ';' before 'kernel'
ocl.c:391: error: 'cl_context' undeclared (first use in this function)
ocl.c:391: error: expected ';' before 'context'
ocl.c:392: error: 'cl_command_queue' undeclared (first use in this function)
ocl.c:392: error: expected ';' before 'commands'
ocl.c:393: error: 'cl_device_id' undeclared (first use in this function)
ocl.c:393: error: expected ';' before 'device_id'
ocl.c:394: error: 'cl_mem' undeclared (first use in this function)
ocl.c:394: error: expected ';' before 'output'
ocl.c:395: error: 'cl_int' undeclared (first use in this function)
ocl.c:395: error: expected ';' before 'err'
ocl.c:397: warning: implicit declaration of function 'clGetKernelInfo'
ocl.c:397: error: 'kernel' undeclared (first use in this function)
ocl.c:397: error: 'CL_KERNEL_CONTEXT' undeclared (first use in this function)
ocl.c:397: error: 'context' undeclared (first use in this function)
ocl.c:397: error: 'CL_SUCCESS' undeclared (first use in this function)
ocl.c:419: error: 'ocl_call_context_t' has no member named 'output'
ocl.c:419: error: 'output' undeclared (first use in this function)
ocl.c:419: warning: implicit declaration of function 'clCreateBuffer'
ocl.c:419: error: 'CL_MEM_WRITE_ONLY' undeclared (first use in this function)
ocl.c:419: error: 'err' undeclared (first use in this function)
ocl.c:422: warning: implicit declaration of function 'clSetKernelArg'
ocl.c:426: error: 'ocl_call_context_t' has no member named 'commands'
ocl.c:426: error: 'commands' undeclared (first use in this function)
ocl.c:426: warning: implicit declaration of function 'clCreateCommandQueue'
ocl.c:426: error: 'device_id' undeclared (first use in this function)
ocl.c:430: error: 'ocl_call_context_t' has no member named 'float_args'
ocl.c:481: error: expected ';' before 'input'
ocl.c:482: error: 'input' undeclared (first use in this function)
ocl.c:484: error: 'ocl_call_context_t' has no member named 'mem_objects'
ocl.c:485: error: 'ocl_call_context_t' has no member named 'mem_objects'
ocl.c:486: error: 'ocl_call_context_t' has no member named 'mem_objects'
ocl.c:499: warning: implicit declaration of function 'clEnqueueNDRangeKernel'
ocl.c:499: error: 'ocl_call_context_t' has no member named 'event'
ocl.c:506: warning: implicit declaration of function 'clFlush'
ocl.c:507: error: 'ocl_call_context_t' has no member named 'ftres'
ocl.c:508: error: 'ocl_call_context_t' has no member named 'ftype'
ocl.c:509: error: 'ocl_call_context_t' has no member named 'on'
ocl.c:516: error: 'ocl_call_context_t' has no member named 'finished'
ocl.c:519: error: 'ocl_call_context_t' has no member named 'mem_objects'
ocl.c:520: error: 'ocl_call_context_t' has no member named 'mem_objects'
ocl.c:520: error: 'clReleaseMemObject' undeclared (first use in this function)
ocl.c:521: error: 'ocl_call_context_t' has no member named 'mem_objects'
ocl.c:525: error: 'ocl_call_context_t' has no member named 'float_args'
ocl.c:531: warning: implicit declaration of function 'clEnqueueReadBuffer'
ocl.c:531: error: 'CL_TRUE' undeclared (first use in this function)
ocl.c:543: error: 'ocl_call_context_t' has no member named 'float_out'
ocl.c: In function 'ocl_collect_call':
ocl.c:561: error: 'cl_int' undeclared (first use in this function)
ocl.c:561: error: expected ';' before 'err'
ocl.c:566: error: 'ocl_call_context_t' has no member named 'finished'
ocl.c:569: error: 'ocl_call_context_t' has no member named 'event'
ocl.c:570: error: expected ';' before 'status'
ocl.c:571: error: 'err' undeclared (first use in this function)
ocl.c:571: warning: implicit declaration of function 'clGetEventInfo'
ocl.c:571: error: 'ocl_call_context_t' has no member named 'event'
ocl.c:571: error: 'CL_EVENT_COMMAND_EXECUTION_STATUS' undeclared (first use in this function)
ocl.c:571: error: 'status' undeclared (first use in this function)
ocl.c:571: error: 'CL_SUCCESS' undeclared (first use in this function)
ocl.c:577: error: 'CL_COMPLETE' undeclared (first use in this function)
ocl.c:581: error: 'ocl_call_context_t' has no member named 'commands'
ocl.c:582: error: 'ocl_call_context_t' has no member named 'finished'
ocl.c:585: error: 'ocl_call_context_t' has no member named 'mem_objects'
ocl.c:586: error: 'ocl_call_context_t' has no member named 'mem_objects'
ocl.c:586: error: 'clReleaseMemObject' undeclared (first use in this function)
ocl.c:587: error: 'ocl_call_context_t' has no member named 'mem_objects'
ocl.c:589: error: 'ocl_call_context_t' has no member named 'float_args'
ocl.c:590: error: 'ocl_call_context_t' has no member named 'float_args'
ocl.c:591: error: 'ocl_call_context_t' has no member named 'float_args'
ocl.c:594: error: 'ocl_call_context_t' has no member named 'on'
ocl.c:595: error: 'ocl_call_context_t' has no member named 'ftres'
ocl.c:596: error: 'ocl_call_context_t' has no member named 'ftype'
ocl.c:597: error: 'ocl_call_context_t' has no member named 'ftres'
ocl.c:598: error: 'ocl_call_context_t' has no member named 'commands'
ocl.c:598: error: 'ocl_call_context_t' has no member named 'output'
ocl.c:598: error: 'CL_TRUE' undeclared (first use in this function)
ocl.c:610: error: 'ocl_call_context_t' has no member named 'float_out'
ocl.c:611: error: 'ocl_call_context_t' has no member named 'commands'
ocl.c:611: error: 'ocl_call_context_t' has no member named 'output'
ocl.c:616: error: 'ocl_call_context_t' has no member named 'commands'
ocl.c:616: error: 'ocl_call_context_t' has no member named 'output'
make: *** [ocl.o] Error 1
ERROR: compilation failed for package 'OpenCL'
* removing '/Volumes/Tiger/Builds/rforge/Rlib/osx9-2.16/OpenCL'

Build log for Windows 7 (R 3.0.x)

(OpenCL 0.1-3)
* installing to library 'z:/rforge/Rlib/win7-3.0'
* installing *source* package 'OpenCL' ...
** libs

*** arch - i386
gcc -m32 -I"C:/PROGRA~1/r/r-3.0/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O3 -Wall -std=gnu99 -mtune=core2 -c ocl.c -o ocl.o
ocl.c:6:23: fatal error: CL/opencl.h: No such file or directory
compilation terminated.
make: *** [ocl.o] Error 1
ERROR: compilation failed for package 'OpenCL'
* removing 'z:/rforge/Rlib/win7-3.0/OpenCL'