Closed RahulDas-dev closed 1 year ago
The linking error says you're missing the opencl .lib file to link against, the .dll in the screenshot is used at runtime. I had the same problem on my windows 10 machine, I had to install the CUDA toolkit to get the library, but that's because I have an Nvidia GPU, not sure what the alternative in your case is.
If you're still stuck, try the following quick and dirty method. This is for Windows but Linux follows the same principle. I'm including generic instructions for non-intel users as well.
C:\Program Files (x86)\Intel\oneAPI\compiler\2023.2.0\windows\lib
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2\lib\x64
OpenCL.lib
to C:\Users\{username]\.rustup\toolchains\{toolchain]\lib\rustlib\x86_64-pc-windows-msvc\lib
.Haven't tested this on AMD recently but should work.
I was trying one of the example examples/trivial.rs on my windows 11 , But I am having this error = note: LINK : fatal error LNK1181: cannot open input file 'OpenCL.lib'
Here is the full error stack
cargo install --path .
here is my repo
I am having opencl Compatible drivers
My Rust Version
rustc 1.71.0 (8ede3aae2 2023-07-12)
Any assistance or insights on resolving this issue would be greatly appreciated. Thank you!