? Tue, 14 Jun 2022 16:59:57 +0300
Ivan Krylov <krylov.r00t at 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