[R] Install OpenCL

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Tue Jun 14 16:08:13 CEST 2022


В Tue, 14 Jun 2022 16:59:57 +0300
Ivan Krylov <krylov.r00t using gmail.com> пишет:

> If you set it correctly, file.exists(Sys.getenv('OCL')) should return
> TRUE.

Actually, I'm wrong about this. Your path contains spaces, which means
that it needs to be quoted. Otherwise the compiler will see five
separate arguments "-IC:/Program" "Files/NVIDIA" "GPU" "Computing"
"Toolkit/CUDA/v11.7/include" instead of one and won't understand what's
needed from it.

Does it work if you use the following call to set the environment
variable in quotes? The file.exists() test will fail, but other parts
of the package build system should work with it.

Sys.setenv(OCL = '"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7"')

-- 
Best regards,
Ivan



More information about the R-help mailing list