CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

CRT init error on win7/64

Open jariahlstedt opened this issue 9 years ago • 12 comments

I compiled CNTK 2.2 with win7 pro 64 (VS2015). CPU-only compilations run fine, but GPU-ones do not. Running cntk.exe raises CRT init error R6030. Does anyone have a solution to this? I would much appreciate it.

jariahlstedt avatar Oct 26 '17 09:10 jariahlstedt

https://msdn.microsoft.com/en-us/library/9ecfyw6c.aspx This seems to be related to your security software?

cha-zhang avatar Oct 29 '17 17:10 cha-zhang

I only have MS Security Essentials. It hasn't affected before, i.e. cntk 2.0 beta 11 worked fine with GPU.

jariahlstedt avatar Oct 29 '17 18:10 jariahlstedt

That's strange. For v2.2, we have added requirement for OpenCV. Is that something you were already using, or you added because of v2.2?

cha-zhang avatar Oct 29 '17 18:10 cha-zhang

I wasn't using OpenCV until with v2.2 install. Earlier I installed the suggested components - if OpenCV wasn't on the install list in January, then I didn't install it then. So that could be the culprit?

jariahlstedt avatar Oct 29 '17 18:10 jariahlstedt

I don't know. We will investigate.

cha-zhang avatar Oct 30 '17 15:10 cha-zhang

When installing cntk v2.2 three weeks ago, I installed latest versions of other prerequisites, also. That included inadvertent install of Win10 version of cuDNN (and CUDA 9.0, which was removed). Now that has been fixed, I installed Win7 version of cuDNN from Nvidia site manually. I also installed latest CUDA 8.0 with the cuDNN patch. Still the same error. I wonder if CUDA 9.0 mishap affects this somehow. Build warnings and errors (Debug): Severity Code Description Project File Line Suppression State Warning The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). MathCUDA C:\repos\cntk\Source\Math\CUDACOMPILE 1 Warning The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). MathCUDA C:\repos\cntk\Source\Math\CUDACOMPILE 1 Warning The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). MathCUDA C:\repos\cntk\Source\Math\CUDACOMPILE 1 Warning The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). MathCUDA C:\repos\cntk\Source\Math\CUDACOMPILE 1 Warning The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). MathCUDA C:\repos\cntk\Source\Math\CUDACOMPILE 1 Warning The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). MathCUDA C:\repos\cntk\Source\Math\CUDACOMPILE 1 Warning The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). MathCUDA C:\repos\cntk\Source\Math\CUDACOMPILE 1 Warning The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). MathCUDA C:\repos\cntk\Source\Math\CUDACOMPILE 1 Warning The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). MathCUDA C:\repos\cntk\Source\Math\CUDACOMPILE 1 Warning LNK4075 ignoring '/INCREMENTAL' due to '/PROFILE' specification Math C:\repos\cntk\Source\Math\LINK 1 Warning LNK4075 ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification Math C:\repos\cntk\Source\Math\BatchNormalizationEngine.obj 1 Warning LNK4075 ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification BrainScriptTests C:\repos\cntk\Tests\UnitTests\BrainScriptTests\BrainScriptEvaluator.obj 1 Warning LNK4075 ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification ReaderTests C:\repos\cntk\Tests\UnitTests\ReaderTests\CNTKBinaryReaderTests.obj 1 Warning LNK4075 ignoring '/INCREMENTAL' due to '/PROFILE' specification CNTKLibraryCSBinding C:\repos\cntk\bindings\csharp\Swig\LINK 1 Warning LNK4075 ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification CNTKLibraryCSBinding C:\repos\cntk\bindings\csharp\Swig\cntk_cs_wrap.obj 1 Warning LNK4075 ignoring '/INCREMENTAL' due to '/PROFILE' specification CNTKLibraryJavaBinding C:\repos\cntk\bindings\java\Swig\LINK 1 Warning LNK4075 ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification CNTKLibraryJavaBinding C:\repos\cntk\bindings\java\Swig\cntk_java_wrap.obj 1 Warning LNK4075 ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification EvalWrapper C:\repos\cntk\Source\Extensibility\EvalWrapper\Cntk.Common-2.2d.lib(MPIWrapper.obj) 1 Warning LNK4199 /DELAYLOAD:nvml.dll ignored; no imports found from nvml.dll EvalTests C:\repos\cntk\Tests\UnitTests\EvalTests\LINK 1 Warning LNK4199 /DELAYLOAD:cudart64_80.dll ignored; no imports found from cudart64_80.dll EvalTests C:\repos\cntk\Tests\UnitTests\EvalTests\LINK 1 Warning LNK4075 ignoring '/INCREMENTAL' due to '/PROFILE' specification CPPEvalClientTest C:\repos\cntk\Tests\EndToEndTests\EvalClientTests\CPPEvalClientTest\LINK 1 Warning LNK4075 ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification CPPEvalClientTest C:\repos\cntk\Tests\EndToEndTests\EvalClientTests\CPPEvalClientTest\CPPEvalClient.obj 1 Warning LNK4075 ignoring '/INCREMENTAL' due to '/PROFILE' specification CPPEvalExtendedClientTest C:\repos\cntk\Tests\EndToEndTests\EvalClientTests\CPPEvalExtendedClientTest\LINK 1 Warning LNK4075 ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification CPPEvalExtendedClientTest C:\repos\cntk\Tests\EndToEndTests\EvalClientTests\CPPEvalExtendedClientTest\CPPEvalExtendedClient.obj 1 Warning LNK4075 ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification NetworkTests C:\repos\cntk\Tests\UnitTests\NetworkTests\BrainScriptEvaluator.obj 1 Warning LNK4075 ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification V2LibraryTests (Tests\UnitTests\V2LibraryTests) C:\repos\cntk\Tests\UnitTests\V2LibraryTests\BlockTests.obj 1

jariahlstedt avatar Oct 30 '17 15:10 jariahlstedt

I ran cntk.exe (Debug build) in Safe Mode to exclude DLL-call trapping by any startup program, such as some security programs. Did not help.

The following was printed out before crash on command line, nothing else (except CRT init error dialog): ***** VIDEOINPUT LIBRARY - 0.1995 - TFW07 *****

jariahlstedt avatar Oct 30 '17 16:10 jariahlstedt

We are working to remove dependency on OpenCV. Please stay tuned.

cha-zhang avatar Nov 07 '17 23:11 cha-zhang

CNTK v2.3 didn't solve the issue, I built it without opencv, but same error persists. However, I solved the problem by installing Win10, which was overdue anyway.

Thank you cha-zhang for the help!

jariahlstedt avatar Nov 28 '17 13:11 jariahlstedt

@jariahlstedt That's great to know. I thought in v2.3 we have removed the OpenCV hard dependency. Anyhow, glad it works now.

cha-zhang avatar Nov 28 '17 15:11 cha-zhang

Can you run Release_NoOpt instead of debug build?

ebarsoumMS avatar Nov 28 '17 16:11 ebarsoumMS

Today I built Release and Release_NoOpt, which both failed to run. However Release_CpuOnly runs fine (Win7). I will retain Win7 configuration of CNTK to try any furher suggestions - It would be nice to have a working Win7 CNTK, also.

jariahlstedt avatar Nov 28 '17 20:11 jariahlstedt