Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when compiling with GPU enabled #1259

Open
FedeArtico opened this issue May 19, 2022 · 1 comment
Open

Issue when compiling with GPU enabled #1259

FedeArtico opened this issue May 19, 2022 · 1 comment

Comments

@FedeArtico
Copy link

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.

@FedeArtico FedeArtico changed the title Issue when compiling wuth GPU Issue when compiling with GPU enabled May 19, 2022
@Jagannath2022
Copy link

Hi, have you solved the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants