gpuR
gpuR copied to clipboard
OpenCL error after trouble finding libOpenCL during install
Hi Charles,
Thank you for your package.
I'm running Ubuntu 19.10 with a GTX1070. I've installed cuda 10.2 and the samples run fine. The OpenCL headers also seemed to install fine.
While installing gpuR 2.0.3 from CRAN I had an error where it couldn't find libOpenCL. I found libOpenCL.so, libOpenCL.so.1, and libOpenCL.so.1.1, in /usr/local/cuda-10.2/targets/x86_64-linux/lib, and copied them into usr/lib/R/lib. Sorry if this was a mistake, I don't know much about how this is supposed to work.
After this the install completed and the library loaded and the gpuVector and gpuMatrix examples worked, but when I timed the adds and multiplies (with dimensions ~ 1e6) they were much slower than the base R functions.
I downloaded the gpuR tar file from CRAN and ran the tests as described at the end of the gpuR vignette. There were two errors as follows:
-
checking tests ... Running ‘testthat.R’ ERROR Running the tests in ‘tests/testthat.R’ failed. Last 13 lines of output: ... updated dvclMatrix not equivalent to assigned base matrix
══ testthat results ═══════════════════════════════════════════════════════════ [ OK: 1802 | SKIPPED: 160 | WARNINGS: 0 | FAILED: 7 ]
- Error: gpuMatrix Integer Precision Sum (@test_gpuMatrix_row_col.R#41)
- Failure: Non-Shared memory between vclMatrix & vclVector (@test_shared_memory.R#69)
- Error: vclMatrix complex float class initializer (@test_vclMatrix_classes.R#22)
- Error: vclMatrix complex double class initializer (@test_vclMatrix_classes.R#38)
- Error: vclMatrix integer scalar initializers (@test_vclMatrix_classes.R#156)
- Error: vclMatrix Integer Precision Sum (@test_vclMatrix_row_col.R#43)
- Failure: vclMatrix set matrix access (@test_vclMatrix_utils.R#272)
Error: testthat unit tests failed Execution halted
-
checking PDF version of manual without hyperrefs or index ... ERROR Re-running with no redirection of stdout/stderr. Hmm ... looks like a package Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, : pdflatex is not available Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, : pdflatex is not available Error in running tools::texi2pdf() You may want to clean up by 'rm -Rf /tmp/RtmpWsiApu/Rd2pdf13da4747a90d'
Now when I try library(gpuR) I get the error:
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.
I've looked through lots of issues but haven't found anything I'm confident about trying. Also I'm not sure how to use platformInfo to get my OpenCL Platform sorry. Any help would be greatly appreciated as I am quite a novice but I am really interested in getting my gpu working with R.
Thanks in advance! Robin