-
Notifications
You must be signed in to change notification settings - Fork 749
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
vl_compilenn -DNDEBUG expected a number #1212
Comments
the problem here is the -O option. it needs a number. changing it to -O0 will fix it. |
Thank you for the response! I commented those lines out and that worked too.
The next problem I face is when linking the compiled mex files, “cannot find gdiplus.lib” or something to that extent. I am using Windows 10, MS Visual Studio 2017 for my c++ compiler and MATLAB 2019b.
Do you onow how to fix this?
Thanks,
Matthew
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Shi Yan <notifications@github.com>
Sent: Friday, May 17, 2019 5:46:05 PM
To: vlfeat/matconvnet
Cc: Kayrish, Matthew (UMKC-Student); Author
Subject: Re: [vlfeat/matconvnet] vl_compilenn -DNDEBUG expected a number (#1212)
the problem here is the -O option.
it needs a number. changing it to -O0 will fix it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#1212?email_source=notifications&email_token=AMBIYXR2HFDLWOTWSNEZFITPV4YS3A5CNFSM4HMFH6TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVWAV7Y#issuecomment-493619967>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMBIYXTFPYMU6UTUXTISJJ3PV4YS3ANCNFSM4HMFH6TA>.
|
@kayrish52 I have the same problem. Did you solve it? |
Hi. May I know which line of code have you changed -O option to number -O0? |
Hello, I have the same problem and I followed shi-yan's comments.
I still got an error. I tested 2 different environments.
Building is progressed for a while, but error happens.
The "nvcc fatal : '-DNDEBUG': expected a number " error message disappeared but I got the left error messages
I found out the cl.exe path is wrong. I modify cl_path like below:
Then the same error happens with Env1. |
Did you find any solution for this? |
Hi, I am trying to enable GPU on Windows 10 MATLAB r2019b. I have CUDA 10.1. I get an error shown below. How do I fix it?
Error using vl_compilenn>nvcc_compile (line 617)
Command "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc" -c -o
"C:\Users\user\Documents\MATLAB\matconvnet-1.0-beta25\matlab\mex.build\bits\data.obj"
"C:\Users\user\Documents\MATLAB\matconvnet-1.0-beta25\matlab\src\bits\data.cu" -DENABLE_GPU -DENABLE_DOUBLE -O -DNDEBUG -D_FORCE_INLINES --std=c++11
-I"C:\Program Files\MATLAB\R2019a\extern\include" -I"C:\Program Files\MATLAB\R2019a\toolbox\distcomp\gpu\extern\include"
-gencode=arch=compute_52,code="sm_52,compute_52" --compiler-options=/MD
--compiler-bindir="C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\mingw_w64.instrset\VC\bin" failed.
Error in vl_compilenn (line 487)
nvcc_compile(opts, srcs{i}, objfile, flags) ;
The text was updated successfully, but these errors were encountered: