Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCL error after trouble finding libOpenCL during install #168

Open
rasutt opened this issue Feb 26, 2020 · 0 comments
Open

OpenCL error after trouble finding libOpenCL during install #168

rasutt opened this issue Feb 26, 2020 · 0 comments

Comments

@rasutt
Copy link

rasutt commented Feb 26, 2020

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 ]

    1. Error: gpuMatrix Integer Precision Sum (@test_gpuMatrix_row_col.R#41)
    2. Failure: Non-Shared memory between vclMatrix & vclVector (@test_shared_memory.R#69)
    3. Error: vclMatrix complex float class initializer (@test_vclMatrix_classes.R#22)
    4. Error: vclMatrix complex double class initializer (@test_vclMatrix_classes.R#38)
    5. Error: vclMatrix integer scalar initializers (@test_vclMatrix_classes.R#156)
    6. Error: vclMatrix Integer Precision Sum (@test_vclMatrix_row_col.R#43)
    7. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant