Missing gpu.lib in R2024a
15 次查看(过去 30 天)
显示 更早的评论
I am trying to compile CUDA version of Matconvnet on R2024a.
Mex reporting an error of missing gpu.lib and indeed I can't find it in R2024a. It however, exists in the previous versions, for example R2023b.
Is there a replacement for gpu.lib in R2024a?
Thank you,
Ilia
0 个评论
采纳的回答
Umar
2024-7-2
Hi Ilia,
If I jog my memory, normally the nvcuda.lib file is typically located in the CUDA Toolkit installation directory. You can find it in a path similar to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\{CUDA_version}\lib\x64 for a 64-bit system. Make sure you have installed the CUDA Toolkit on your machine. If you cannot locate the file in the specified directory, you may need to reinstall the CUDA Toolkit to ensure all necessary files are properly installed.
2 个评论
Umar
2024-7-3
Hi Ilia,
Sorry to hear that. However, check for any environment variables that may need to be set up correctly for Matlab to locate the CUDA toolkit files. Goodluck with your future endeavors.
更多回答(1 个)
Umar
2024-7-1
移动:Walter Roberson
2024-7-1
Hi Ilia,
You can link against nvcuda.lib instead of gpu.lib in your CUDA project within Matconvnet to resolve the missing library error. For more information on Matconvent, please refer to
Afterwards, try to update your compilation settings to reference nvcuda.lib in R2024a, and your CUDA code should compile successfully without relying on the deprecated gpu.lib file.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!