GPU Coder error "Function 'addDependentFile' not supported for code generation."

1 次查看(过去 30 天)
Hello,
I encounter the following error when using the GPU coder to convert a function and pre-trained-resnet model to a .mex file:
"Function 'addDependentFile' not supported for code generation."
I don't know what causes it, and online search points to nothing. I use the GPU Coder app, but the same happens when I run from the command line. Bellow, you can see the a screenshot of the errors in the GPU Coder app. There you can also see the function I use.
The function is super basic and based on what I've seen in MATLAB tutorial this video. I've added the function as an attachment to test. As input, I use ones(224,224,3,'uint8').
I have a Windows system and the CUDA toolkit v11.0 installed with driver 452.06. I also have cudnn v8.1.1.33 and Visual Studio 2019 (for the c++ compiler?) installed. Bellow you can see a screenshot of nvidia-smi and nvcc -V.
Can anyone please help me? Thank you in advance!
Cheers
Tim
GPU Coder app screenshot
nvidia-smi screenshot
nvidia-smi screenshot
nvcc -V screenshot

回答(1 个)

Infinite_king
Infinite_king 2024-5-7
Hi Tim Van De Looverbosch,
Follow the below troubleshooting steps to resolve the issue,
  1. Check the code generation environment to ensure that all dependencies are installed properly and that the environment variables are correctly set. This resource explains how to verify the code generation environment - https://www.mathworks.com/help/gpucoder/gs/setting-up-the-toolchain.html#mw_cd757b3b-e5a2-493f-8fec-bd8ff8593b1a
  2. If any dependent libraries are missing, install them and set up the respective environment variables. Refer the following MATLAB resource - https://in.mathworks.com/help/gpucoder/gs/install-prerequisites.html
  3. Verify the compatibility of each CUDA library version and ensure they are consistent with the supported versions. For details on supported versions, refer to this :- https://www.mathworks.com/help/gpucoder/gs/install-prerequisites.html#:~:text=tested%20with%20cuDNN%20v8.9
  4. Follow the steps outlined in the following example to verify and understand the DLL code generation workflow - https://www.mathworks.com/help/gpucoder/ug/code-generation-for-deep-learning-networks.html
Hope this is helpful.

类别

Help CenterFile Exchange 中查找有关 Get Started with GPU Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by