I've been trying to compile the library to use my GPU, but I keep getting the following error:
vl_compilenn('enableGpu', true, 'cudaRoot', 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7')
Warning: Support for toolboxdir('distcomp') will be removed in a future release.
Use toolboxdir('parallel') instead.
> In toolboxdir (line 49)
In vl_compilenn (line 379)
Error using vl_compilenn>nvcc_compile
Command "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc" -c -o
"C:\Users\feder\Documents\MATLAB\matconvnet\matlab\mex\.build\bits\data.obj"
"C:\Users\feder\Documents\MATLAB\matconvnet\matlab\src\bits\data.cu" -DENABLE_GPU
-DENABLE_DOUBLE -DNDEBUG -D_FORCE_INLINES --std=c++11 -I "C:\Program
Files\MATLAB\R2022a\extern\include" -I "C:\Program
Files\MATLAB\R2022a\toolbox\parallel\gpu\extern\include"
-gencode=arch=compute_61,code=\"sm_61,compute_61\" --compiler-options=/MD
--compiler-bindir="C:\Program Files\Microsoft Visual
Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\Hostx64\x64" failed.
Error in vl_compilenn (line 499)
nvcc_compile(opts, srcs{i}, objfile, flags) ;
Matlab version:R2022a
VS 2022
CUDA 11.7
I was able to compile the library without GPUenabled, but once I try to include the GPU option it keeps failing.
I've been trying to compile the library to use my GPU, but I keep getting the following error:
Matlab version:R2022a
VS 2022
CUDA 11.7
I was able to compile the library without GPUenabled, but once I try to include the GPU option it keeps failing.