cdeterman / gpuR

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

Issues in installing 'gpuR' in Windows10 #151

Open boscolamhk opened 5 years ago

boscolamhk commented 5 years ago

Hello All,

I have recently got a new desktop and graphic cards (NVIDIA GTX2060) and would like to install 'gpuR' to speed up the computation. I follow this post for the installation and it doesn't seem like working However, I have been facing some error messages after reading others' posts with similar issues.

Sys.setenv(OPENCL_LIB64 = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/lib/x64")
Sys.setenv(OPENCL_INC = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/include/CL")
Sys.setenv(CUDA_HOME="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1")

install_github("cdeterman/gpuR", ref = "develop")

Below is the log (only the error part) after running the code above:

*** arch - i386
Error: package or namespace load failed for 'gpuR':
 .onAttach failed in attachNamespace() for 'gpuR', details:
  call: initContexts()
  error: ViennaCL: FATAL ERROR: ViennaCL encountered an unknown OpenCL error. Most likely your OpenCL SDK or driver is not installed properly. In some cases, this error is due to an invalid global work size or several kernel compilation errors.
If you think that this is a bug in ViennaCL, please report it at viennacl-support@lists.sourceforge.net and supply at least the following information:
 * Operating System
 * Which OpenCL implementation (AMD, NVIDIA, etc.)
 * ViennaCL version
Many thanks in advance!
Error: loading failed
Execution halted
*** arch - x64
Error: package or namespace load failed for 'gpuR':
 .onAttach failed in attachNamespace() for 'gpuR', details:
  call: initContexts()
  error: ViennaCL: FATAL ERROR: ViennaCL encountered an unknown OpenCL error. Most likely your OpenCL SDK or driver is not installed properly. In some cases, this error is due to an invalid global work size or several kernel compilation errors.
If you think that this is a bug in ViennaCL, please report it at viennacl-support@lists.sourceforge.net and supply at least the following information:
 * Operating System
 * Which OpenCL implementation (AMD, NVIDIA, etc.)
 * ViennaCL version
Many thanks in advance!
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing 'C:/Users/Bosco Lam/Documents/R/win-library/3.5/gpuR'
In R CMD INSTALL
Error in i.p(...) : 
  (converted from warning) installation of package ‘C:/Users/BOSCOL~1/AppData/Local/Temp/RtmpyQHQO4/file5382eb326ee/gpuR_2.0.3.tar.gz’ had non-zero exit status

Based on the error message above, I suspect there is some issues installing ViennaCL. Therefore, I run the following:

install_github("cdeterman/RViennaCL", force = TRUE)

There is no error message for the above installation and I can run library(RViennaCL)

Based on the posts I read regarding similar issues, I notice the following which may be different from the others:

The environmental variables OPENCL_INC and OPENCL_LIB32/OPENCL_LIB64 pointing towards your opencl headers and opencl library (OpenCL.dll) respectively. -- On this requirement, I notice that there is no OpenCL.dll file in my OPENCL_INC path. Instead, I find the file in

C:\Program Files\NVIDIA Corporation\Installer2

Any advice would be welcome. Thank you very much.

cdeterman commented 5 years ago

Thanks for reporting the issue. Please see the solutions provided in issues #144 and #150. Please let me know if you are still unable to resolve the problem.

boscolamhk commented 5 years ago

Thanks for the prompt reply.

Below is my pc spec: Operating System: Windows 10 version 1809 Graphic Card: NVIDIA GeForce RTX 2060 R version 3.5.2

Below are some actions I tried: 1) I went to the Registry Editor by running regedit.exe. However I was not able to locate HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors. Inside the "Khronos" directory, I could only see Vulkan\ImplicitLayers. In this directory, there is a REG_SZ file and a REG_DWORD file. The REGDWORD is a .json file instead of a .dll file. Upon searching in any folders for "OpenCL", I can only find opencl64.dl files here (C:\Program Files\NVIDIA Corporation\Installer2\Display.Driver.{CF9D2B6D-1F97-4918-B1CB-44E6A95A5015})

I suspect the OpenCL.dll file is missing in my computer and therefore I download it from here and put the file in C:\Program Files\NVIDIA Corporation\OpenCL. Then I downloaded the gpuR package but no luck again.

Next I followed the comment on adding nvopencl64.dll to the Registry Editor. It looks like I am on the right path and at last I run:

> Sys.setenv(OPENCL_LIB64 = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64")
> Sys.setenv(OPENCL_INC = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/include/CL")
> Sys.setenv(CUDA_HOME="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0")
> devtools::install_github('cdeterman/gpuR')

but it gives me

Skipping install of 'gpuR' from a github remote, the SHA1 (1221717b) has not changed since last install.
  Use `force = TRUE` to force installation

Therefore I add force = TRUE but it gives me the following error message:

make[1]: Entering directory '/Users/BOSCOL~1/AppData/Local/Temp/RtmpC4T7oJ/R.INSTALLb08235e52/gpuR/inst/include/loader'
c:/Rtools/mingw_32/bin/gcc  -I../ -O3 -Wall  -std=gnu99 -mtune=generic -c icd.c -o i386/icd.o
Assembler messages:
Fatal error: can't create i386/icd.o: No such file or directory
make[1]: *** [Makefile:10: i386/icd.o] Error 1
make[1]: Leaving directory '/Users/BOSCOL~1/AppData/Local/Temp/RtmpC4T7oJ/R.INSTALLb08235e52/gpuR/inst/include/loader'
make: *** [Makevars.win:15: ../inst/include/loader/i386/libOpenCL.a] Error 2
ERROR: compilation failed for package 'gpuR'
* removing 'C:/Users/Bosco Lam/Documents/R/win-library/3.5/gpuR'
* restoring previous 'C:/Users/Bosco Lam/Documents/R/win-library/3.5/gpuR'
In R CMD INSTALL
Error in i.p(...) : 
  (converted from warning) installation of package ‘C:/Users/BOSCOL~1/AppData/Local/Temp/RtmpK2Ua0F/file5090756a61e3/gpuR_2.0.1.tar.gz’ had non-zero exit status
cdeterman commented 5 years ago

@boscolamhk you are installing from the 'master' branch? I put in a fix for the missing directory problem in the 'develop' branch when building the ICD loader.

boscolamhk commented 5 years ago

@cdeterman Sorry I am not sure what master branch is, but I use this line:

devtools::install_github('cdeterman/gpuR')

If it is not the master branch, would you mind providing more guidelines on how to do it please?

boscolamhk commented 5 years ago

I tried installing once again and posted the full output for your reference:

> Sys.setenv(OPENCL_LIB64 = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64")
> Sys.setenv(OPENCL_INC = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/include/CL")
> Sys.setenv(CUDA_HOME="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0")
> install_github("cdeterman/gpuR", ref = "develop")
Downloading GitHub repo cdeterman/gpuR@develop
√  checking for file 'C:\Users\Bosco Lam\AppData\Local\Temp\RtmpuGmhZk\remotes56bc563c5829\cdeterman-gpuR-a42f75d/DESCRIPTION' ...
-  preparing 'gpuR': (390ms)
√  checking DESCRIPTION meta-information ...
-  cleaning src
-  running 'cleanup.win'
-  checking for LF line-endings in source and make files and shell scripts (467ms)
-  checking for empty or unneeded directories
-  building 'gpuR_2.0.3.tar.gz'
   Warning: file 'gpuR/cleanup' did not have execute permissions: corrected
   Warning: file 'gpuR/configure' did not have execute permissions: corrected

Installing package into ‘C:/Users/Bosco Lam/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing *source* package 'gpuR' ...

   **********************************************
   WARNING: this package has a configure script
         It probably needs manual configuration
   **********************************************

** libs

*** arch - i386
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c RcppExports.cpp -o RcppExports.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c chol.cpp -o chol.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c context.cpp -o context.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c custom_math.cpp -o custom_math.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c device.cpp -o device.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c gpuEigenPtr.cpp -o gpuEigenPtr.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c gpuMatrix_igemm.cpp -o gpuMatrix_igemm.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c norm.cpp -o norm.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c platform.cpp -o platform.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c set_row_order.cpp -o set_row_order.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c solve.cpp -o solve.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c synchronize.cpp -o synchronize.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c trunc_gpuMat.cpp -o trunc_gpuMat.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c utils-vcl.cpp -o utils-vcl.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c utils.cpp -o utils.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vclPtr.cpp -o vclPtr.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_blas1.cpp -o vienna_blas1.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_blas2.cpp -o vienna_blas2.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_blas3.cpp -o vienna_blas3.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_eigen.cpp -o vienna_eigen.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_qr.cpp -o vienna_qr.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_stats.cpp -o vienna_stats.o
c:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_svd.cpp -o vienna_svd.o
cd ../inst/include/loader && mkdir -p ./i386 && /Rtools/bin/make ./i386/libOpenCL.a \
CC="c:/Rtools/mingw_32/bin/gcc " CFLAGS="    -O3 -Wall  -std=gnu99 -mtune=generic" AR="c:/Rtools/mingw_32/bin/ar" RM="rm -f" \
ICD_OS=icd_windows
make[1]: Entering directory '/Users/BOSCOL~1/AppData/Local/Temp/RtmpADmSTB/R.INSTALL5e60141621c5/gpuR/inst/include/loader'
c:/Rtools/mingw_32/bin/gcc  -I../ -O3 -Wall  -std=gnu99 -mtune=generic -c icd.c -o i386/icd.o
c:/Rtools/mingw_32/bin/gcc  -I../ -O3 -Wall  -std=gnu99 -mtune=generic -c icd_dispatch.c -o i386/icd_dispatch.o
icd_dispatch.c: In function 'clGetExtensionFunctionAddressForPlatform':
icd_dispatch.c:1417:5: warning: 'clGetKernelSubGroupInfoKHR' is deprecated (declared at ../CL/cl_ext.h:330) [-Wdeprecated-declarations]
     CL_COMMON_EXTENSION_ENTRYPOINT_ADD(clGetKernelSubGroupInfoKHR);
     ^
icd_dispatch.c: In function 'clGetExtensionFunctionAddress':
icd_dispatch.c:1623:5: warning: 'clGetKernelSubGroupInfoKHR' is deprecated (declared at ../CL/cl_ext.h:330) [-Wdeprecated-declarations]
     CL_COMMON_EXTENSION_ENTRYPOINT_ADD(clGetKernelSubGroupInfoKHR);
     ^
c:/Rtools/mingw_32/bin/gcc  -I../ -O3 -Wall  -std=gnu99 -mtune=generic -c icd_windows.c -o i386/icd_windows.o
rm -f i386/libOpenCL.a
c:/Rtools/mingw_32/bin/ar rcs i386/libOpenCL.a i386/icd.o i386/icd_dispatch.o i386/icd_windows.o
make[1]: Leaving directory '/Users/BOSCOL~1/AppData/Local/Temp/RtmpADmSTB/R.INSTALL5e60141621c5/gpuR/inst/include/loader'
c:/Rtools/mingw_32/bin/g++ -shared -s -static-libgcc -o gpuR.dll tmp.def RcppExports.o chol.o context.o custom_math.o device.o gpuEigenPtr.o gpuMatrix_igemm.o norm.o platform.o set_row_order.o solve.o synchronize.o trunc_gpuMat.o utils-vcl.o utils.o vclPtr.o vienna_blas1.o vienna_blas2.o vienna_blas3.o vienna_eigen.o vienna_qr.o vienna_stats.o vienna_svd.o -L../inst/include/loader/i386 -lOpenCL -LC:/PROGRA~1/R/R-35~1.2/bin/i386 -lR
installing to C:/Users/Bosco Lam/Documents/R/win-library/3.5/gpuR/libs/i386

*** arch - x64
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c RcppExports.cpp -o RcppExports.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c chol.cpp -o chol.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c context.cpp -o context.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c custom_math.cpp -o custom_math.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c device.cpp -o device.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c gpuEigenPtr.cpp -o gpuEigenPtr.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c gpuMatrix_igemm.cpp -o gpuMatrix_igemm.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c norm.cpp -o norm.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c platform.cpp -o platform.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c set_row_order.cpp -o set_row_order.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c solve.cpp -o solve.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c synchronize.cpp -o synchronize.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c trunc_gpuMat.cpp -o trunc_gpuMat.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c utils-vcl.cpp -o utils-vcl.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c utils.cpp -o utils.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vclPtr.cpp -o vclPtr.o
In file included from C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include/Eigen/Core:394:0,
                 from C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include/viennacl/meta/result_of.hpp:41,
                 from C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include/viennacl/scalar.hpp:29,
                 from C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include/viennacl/tools/entry_proxy.hpp:27,
                 from C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include/viennacl/detail/matrix_def.hpp:26,
                 from C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include/viennacl/matrix.hpp:26,
                 from ../inst/include/gpuR/dynVCLMat.hpp:17,
                 from vclPtr.cpp:4:
C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include/Eigen/src/Core/arch/SSE/Complex.h: In function 'Packet Eigen::internal::pset1(const typename Eigen::internal::unpacket_traits<Packet>::type&) [with Packet = Eigen::internal::Packet2cf; typename Eigen::internal::unpacket_traits<Packet>::type = std::complex<float>]':
C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include/Eigen/src/Core/arch/SSE/Complex.h:103:50: warning: 'res.Eigen::internal::Packet2cf::v' is used uninitialized in this function [-Wuninitialized]
   res.v = _mm_loadl_pi(res.v, (const __m64*)&from);
                                                  ^
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_blas1.cpp -o vienna_blas1.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_blas2.cpp -o vienna_blas2.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_blas3.cpp -o vienna_blas3.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_eigen.cpp -o vienna_eigen.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_qr.cpp -o vienna_qr.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_stats.cpp -o vienna_stats.o
c:/Rtools/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG -I. -I../inst/include -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RcppEigen/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/RViennaCL/include" -I"C:/Users/Bosco Lam/Documents/R/win-library/3.5/BH/include"        -O2 -Wall  -mtune=generic -c vienna_svd.cpp -o vienna_svd.o
cd ../inst/include/loader && mkdir -p ./x64 && /Rtools/bin/make ./x64/libOpenCL.a \
CC="c:/Rtools/mingw_64/bin/gcc " CFLAGS="    -O2 -Wall  -std=gnu99 -mtune=generic" AR="c:/Rtools/mingw_64/bin/ar" RM="rm -f" \
ICD_OS=icd_windows
make[1]: Entering directory '/Users/BOSCOL~1/AppData/Local/Temp/RtmpADmSTB/R.INSTALL5e60141621c5/gpuR/inst/include/loader'
c:/Rtools/mingw_64/bin/gcc  -I../ -O2 -Wall  -std=gnu99 -mtune=generic -c icd.c -o x64/icd.o
c:/Rtools/mingw_64/bin/gcc  -I../ -O2 -Wall  -std=gnu99 -mtune=generic -c icd_dispatch.c -o x64/icd_dispatch.o
icd_dispatch.c: In function 'clGetExtensionFunctionAddressForPlatform':
icd_dispatch.c:1417:5: warning: 'clGetKernelSubGroupInfoKHR' is deprecated (declared at ../CL/cl_ext.h:330) [-Wdeprecated-declarations]
     CL_COMMON_EXTENSION_ENTRYPOINT_ADD(clGetKernelSubGroupInfoKHR);
     ^
icd_dispatch.c: In function 'clGetExtensionFunctionAddress':
icd_dispatch.c:1623:5: warning: 'clGetKernelSubGroupInfoKHR' is deprecated (declared at ../CL/cl_ext.h:330) [-Wdeprecated-declarations]
     CL_COMMON_EXTENSION_ENTRYPOINT_ADD(clGetKernelSubGroupInfoKHR);
     ^
c:/Rtools/mingw_64/bin/gcc  -I../ -O2 -Wall  -std=gnu99 -mtune=generic -c icd_windows.c -o x64/icd_windows.o
rm -f x64/libOpenCL.a
c:/Rtools/mingw_64/bin/ar rcs x64/libOpenCL.a x64/icd.o x64/icd_dispatch.o x64/icd_windows.o
make[1]: Leaving directory '/Users/BOSCOL~1/AppData/Local/Temp/RtmpADmSTB/R.INSTALL5e60141621c5/gpuR/inst/include/loader'
c:/Rtools/mingw_64/bin/g++ -shared -s -static-libgcc -o gpuR.dll tmp.def RcppExports.o chol.o context.o custom_math.o device.o gpuEigenPtr.o gpuMatrix_igemm.o norm.o platform.o set_row_order.o solve.o synchronize.o trunc_gpuMat.o utils-vcl.o utils.o vclPtr.o vienna_blas1.o vienna_blas2.o vienna_blas3.o vienna_eigen.o vienna_qr.o vienna_stats.o vienna_svd.o -L../inst/include/loader/x64 -lOpenCL -LC:/PROGRA~1/R/R-35~1.2/bin/x64 -lR
installing to C:/Users/Bosco Lam/Documents/R/win-library/3.5/gpuR/libs/x64
** R
** inst
** byte-compile and prepare package for lazy loading
Creating a generic function for 'eigen' from package 'base' in package 'gpuR'
Creating a generic function for '%o%' from package 'base' in package 'gpuR'
Creating a generic function for 'tcrossprod' from package 'base' in package 'gpuR'
Creating a generic function for 'nrow' from package 'base' in package 'gpuR'
Creating a generic function for 'ncol' from package 'base' in package 'gpuR'
Creating a generic function for 'crossprod' from package 'base' in package 'gpuR'
Creating a generic function for 'cov' from package 'stats' in package 'gpuR'
Creating a generic function for 'colSums' from package 'base' in package 'gpuR'
Creating a generic function for 'rowSums' from package 'base' in package 'gpuR'
Creating a generic function for 'colMeans' from package 'base' in package 'gpuR'
Creating a generic function for 'rowMeans' from package 'base' in package 'gpuR'
Creating a generic function for 'dist' from package 'stats' in package 'gpuR'
Creating a generic function for 'diag' from package 'base' in package 'gpuR'
Creating a generic function for 'diag<-' from package 'base' in package 'gpuR'
Creating a generic function for 'det' from package 'base' in package 'gpuR'
Creating a generic function for 'norm' from package 'base' in package 'gpuR'
Creating a generic function for 'qr.R' from package 'base' in package 'gpuR'
Creating a generic function for 'qr.Q' from package 'base' in package 'gpuR'
Creating a generic function for 'typeof' from package 'base' in package 'gpuR'
Creating a generic function for 'colnames<-' from package 'base' in package 'gpuR'
** help
*** installing help indices
  converting help for package 'gpuR'
    finding HTML links ... done
    Arith-methods                           html  
    Compare-methods                         html  
    Math-methods                            html  
    Summary-methods                         html  
    as.gpuMatrix-methods                    html  
    as.gpuVector-methods                    html  
    as.vclVector-methods                    html  
    assert_has_double                       html  
    cgpuMatrix-class                        html  
    chol-methods                            html  
    colnames-methods                        html  
    cov-methods                             html  
    currentContext                          html  
    currentDevice                           html  
    currentPlatform                         html  
    custom_opencl                           html  
    cvclMatrix-class                        html  
    det-methods                             html  
    detectCPUs                              html  
    detectGPUs                              html  
    detectPlatforms                         html  
    deviceHasDouble                         html  
    deviceInfo                              html  
    deviceType                              html  
    dgpuMatrix-class                        html  
    dgpuVector-class                        html  
    diag-methods                            html  
    dim-methods                             html  
    dist-vclMatrix                          html  
    dvclMatrix-class                        html  
    dvclVector-class                        html  
    eigen-gpuMatrix                         html  
    extract-methods                         html  
    fgpuMatrix-class                        html  
    fgpuVector-class                        html  
    fvclMatrix-class                        html  
    fvclVector-class                        html  
    gpuMatrix-class                         html  
    gpuMatrix-crossprod                     html  
    gpuMatrix-methods                       html  
    gpuMatrix.colSums                       html  
    gpuR-block                              html  
    gpuR-deepcopy                           html  
    gpuR-package                            html  
    gpuR-slice                              html  
    gpuVector-class                         html  
    gpuVector-methods                       html  
    grapes-o-grapes-methods                 html  
    grapes-times-grapes-methods             html  
    has_cpu_skip                            html  
    has_double_skip                         html  
    has_gpu_skip                            html  
    has_multiple_double_skip                html  
    has_multiple_gpu_skip                   html  
    identity_matrix                         html  
    igpuMatrix-class                        html  
    igpuVector-class                        html  
    inplace-methods                         html  
    ivclMatrix-class                        html  
    ivclVector-class                        html  
    length-methods                          html  
    listContexts                            html  
    log-methods                             html  
    norm-methods                            html  
    nrow-gpuR                               html  
    permute-methods                         html  
    platformInfo                            html  
    pmax                                    html  
Rd warning: C:/Users/Bosco Lam/AppData/Local/Temp/RtmpADmSTB/R.INSTALL5e60141621c5/gpuR/man/pmax.Rd:21: file link 'pmax' in package 'base' does not exist and so has been treated as a topic
Rd warning: C:/Users/Bosco Lam/AppData/Local/Temp/RtmpADmSTB/R.INSTALL5e60141621c5/gpuR/man/pmax.Rd:21: file link 'pmin' in package 'base' does not exist and so has been treated as a topic
    pmin.vclVector                          html  
    pocl_check                              html  
    print.gpuMatrix                         html  
    qr-methods                              html  
    qr.R-methods                            html  
Rd warning: C:/Users/Bosco Lam/AppData/Local/Temp/RtmpADmSTB/R.INSTALL5e60141621c5/gpuR/man/qr.R-methods.Rd:26: file link 'qr.R' in package 'base' does not exist and so has been treated as a topic
Rd warning: C:/Users/Bosco Lam/AppData/Local/Temp/RtmpADmSTB/R.INSTALL5e60141621c5/gpuR/man/qr.R-methods.Rd:26: file link 'qr.Q' in package 'base' does not exist and so has been treated as a topic
    setContext                              html  
    set_device_context                      html  
    setup_opencl                            html  
    solve-methods                           html  
    svd-methods                             html  
    synchronize                             html  
    t-methods                               html  
    typeof-gpuR-methods                     html  
    vclMatrix-class                         html  
    vclMatrix-crossprod                     html  
    vclMatrix-methods                       html  
    vclMatrix.colSums                       html  
    vclVector-class                         html  
    vclVector-methods                       html  
    zgpuMatrix-class                        html  
    zvclMatrix-class                        html  
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
Error: package or namespace load failed for 'gpuR':
 .onAttach failed in attachNamespace() for 'gpuR', details:
  call: initContexts()
  error: ViennaCL: FATAL ERROR: ViennaCL encountered an unknown OpenCL error. Most likely your OpenCL SDK or driver is not installed properly. In some cases, this error is due to an invalid global work size or several kernel compilation errors.
If you think that this is a bug in ViennaCL, please report it at viennacl-support@lists.sourceforge.net and supply at least the following information:
 * Operating System
 * Which OpenCL implementation (AMD, NVIDIA, etc.)
 * ViennaCL version
Many thanks in advance!
Error: loading failed
Execution halted
*** arch - x64
Number of platforms: 1
- platform: NVIDIA Corporation: OpenCL 1.2 CUDA 10.1.131
  - context device index: 0
    - GeForce RTX 2060
checked all devices
completed initialization
ERROR: loading failed for 'i386'
* removing 'C:/Users/Bosco Lam/Documents/R/win-library/3.5/gpuR'
* restoring previous 'C:/Users/Bosco Lam/Documents/R/win-library/3.5/gpuR'
In R CMD INSTALL
Error in i.p(...) : 
  (converted from warning) installation of package ‘C:/Users/BOSCOL~1/AppData/Local/Temp/RtmpuGmhZk/file56bc26212182/gpuR_2.0.3.tar.gz’ had non-zero exit status
dfleis commented 5 years ago

I have been able to get the x64 architecture ViennaCL errors working by following the registry editing advice in #144. However, I too have persistent i386 architecture errors that the registry editing method hasn't yet resolved.

Specifically, I'm referring to the final lines in the output:

*** arch - i386
Error: package or namespace load failed for 'gpuR':
 .onAttach failed in attachNamespace() for 'gpuR', details:
  call: initContexts()
  error: ViennaCL: FATAL ERROR: ViennaCL encountered an unknown OpenCL error. Most likely your OpenCL SDK or driver is not installed properly. In some cases, this error is due to an invalid global work size or several kernel compilation errors.
If you think that this is a bug in ViennaCL, please report it at viennacl-support@lists.sourceforge.net and supply at least the following information:
 * Operating System
 * Which OpenCL implementation (AMD, NVIDIA, etc.)
 * ViennaCL version
Many thanks in advance!
Error: loading failed
Execution halted
*** arch - x64
Number of platforms: 1
- platform: NVIDIA Corporation: OpenCL 1.2 CUDA 10.1.131
  - context device index: 0
    - GeForce RTX 2080
checked all devices
completed initialization
ERROR: loading failed for 'i386'
boscolamhk commented 5 years ago

@cdeterman is there any update?

zekeargus commented 5 years ago

NVIDIA based system with R-3.6 Hello. I have the exact comment as you have. I have also added a registry key as described in issue 144 by "dualvim commented on Jan 18 >" on nvopencl64.dll I still get the same error. Have you worked-around this?

iarosenco commented 5 years ago

NVIDIA based system with R-3.6 Hello. I have the exact comment as you have. I have also added a registry key as described in issue 144 by "dualvim commented on Jan 18 >" on nvopencl64.dll I still get the same error. Have you worked-around this?

Workaround that did it for me: Re-install R & R-tools with 64-bit binaries and libraries only.

@boscolamhk @zekeargus

SaraAshry commented 4 years ago

I have the same error How u solved it?

I waste more than week and I can't solve this issue?

I appreciate your help!

SaraAshry commented 4 years ago

building package indices installing vignettes ** testing if installed package can be loaded from temporary location *** arch - i386 Error: package or namespace load failed for 'gpuR': .onAttach failed in attachNamespace() for 'gpuR', details: call: initContexts() error: ViennaCL: FATAL ERROR: ViennaCL encountered an unknown OpenCL error. Most likely your OpenCL SDK or driver is not installed properly. In some cases, this error is due to an invalid global work size or several kernel compilation errors. If you think that this is a bug in ViennaCL, please report it at viennacl-support@lists.sourceforge.net and supply at least the following information:

iarosenco commented 4 years ago

I have the same error How u solved it?

I waste more than week and I can't solve this issue?

I appreciate your help!

Uninstall both R & R-tools from the system. Do a reboot. Install both back but select ONLY 64-bit versions. Make sure the registry fix is in place (https://github.com/cdeterman/gpuR/issues/150).

Hope this helps.