Missing gpu.lib in R2024a

14 visualizaciones (últimos 30 días)
Ilia
Ilia el 30 de Jun. de 2024
Comentada: Umar el 3 de Jul. de 2024
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

Respuesta aceptada

Umar
Umar el 2 de Jul. de 2024
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 comentarios
Ilia
Ilia el 3 de Jul. de 2024
Thanks,
I have installed a new CUDA toolkit, but it still doesn't have nvcuda.lib file.
Probably, I will go back to theolder Matlab version which has gpu.lib
Ilia
Umar
Umar el 3 de Jul. de 2024
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.

Iniciar sesión para comentar.

Más respuestas (1)

Umar
Umar el 1 de Jul. de 2024
Movida: Walter Roberson el 1 de Jul. de 2024
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.
  1 comentario
Ilia
Ilia el 2 de Jul. de 2024
Thank you. Can you please point me where to find nvcuda.lib ?
I can only find nvcuda.dll in c:\Windows\System32 folder.
Ilia

Iniciar sesión para comentar.

Categorías

Más información sobre GPU Computing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by