-
Notifications
You must be signed in to change notification settings - Fork 74k
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
Occur fatal error 1002 when compiling tensorflow 1.3 with vs2015 DEBUG in windows10 #11771
Comments
Can you post the entire error output that occurs? |
I believe debug build is not supported, especially for gpu build. You may try to replace /DEBUG:Full with /DEBUG:Fastlink in your compiler flags. And you may also need to split tf_core_kernerls into multiple static libraries. And you need a debug build of python,cuda,... If I were you, I'll give up |
@reedwm the error output have just 2 sentences, which I have written above. I would post a part of build log for you |
@snnn I agree with you, there are some problem during compiling in Debug mode now. So I post the error for later development of tensorflow. |
Did you use the 32 bits cl.exe or 64 bits cl.exe?
Run this command before open tensorflow.sln Or, add "-T host=x64" to cmake command line args. |
@snnn Thank you for your suggestion! Because compile is time-consuming, I would tell you the result later. |
/CC @mrry |
@snnn OK, your suggestion works, thank you! |
I found it is easy to build tensorflow project dynamically in vs 2015 for tf-r1.3. Close the issue. |
@HannH I have the same problem , which solution is useful to you ? Is the "set PreferredToolArchitecture=x64"? I try to add "-T host=x64" to cmake command line args. but another error happened . Can I have your qq or wechat number? |
System information
no custom code(original code cloned from github )
Windows 10
source(cmake from tensorflow/contribe/cmake)
r1.3
vs2015
no GPU/CUDA 8.0+cuDNN5.1
NVIDIA Titan X(12GB)
tf_cc.vcxproj -> A:\C++\tensorflow-1.3.0\Source_GPU\tf_cc.dir\Debug\tf_cc.lib
65>a:\c++\tensorflow-1.3.0\source_gpu\external\eigen_archive\eigen\src\core\products\generalblockpanelkernel.h(1977): fatal error C1002:
Describe the problem
Hello, I get error 1002 when compiling tensorflow r1.3 with vs2015 in tf_core_kernels , use DEBUG mode without GPU, which occured during compilation of GPU version too. I belive I have enough memory for compilation. However, I compiled successfully through RELEASE mode without error.
Same issue in tensorflow-r1.2.
The text was updated successfully, but these errors were encountered: