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
build fail with cuda: sparse_xent_op.h #942
Comments
Our GPU build is broken -- probably sync back to Thursday and you should be alright until we fix it. |
Fix is incoming. |
Just pushed the fix |
Thank you very much! |
The bug still seems to remain as of ed6f783:
Build process is as follows:
Environnement is:
I also tried without the extra flags. |
Most likely the flags for you are passing for STRICT_ANSI etc aren't making it to nvcc. You might need to edit the crosstool file in third_party/gpus/ to pass the flags there. |
Indeed... diff --git a/third_party/gpus/crosstool/CROSSTOOL b/third_party/gpus/crosstool/CROSSTOOL
index dfde7cd..547441f 100644
--- a/third_party/gpus/crosstool/CROSSTOOL
+++ b/third_party/gpus/crosstool/CROSSTOOL
@@ -46,6 +46,8 @@ toolchain {
# Use "-std=c++11" for nvcc. For consistency, force both the host compiler
# and the device compiler to use "-std=c++11".
cxx_flag: "-std=c++11"
+ cxx_flag: "-D_MWAITXINTRIN_H_INCLUDED"
+ cxx_flag: "-D__STRICT_ANSI__"
linker_flag: "-lstdc++"
linker_flag: "-B/usr/bin/" Could anyone kindly reopen this bug until this patch gets reviewed, and integrated (or not) please? |
I would argue this belongs in a new issue, the existing bug was for a separate problem. |
OS: Debian Stretch 64
Cuda: 7.5
Cudnn: 6.5
Compiler: gcc-4.9 (default gcc-5)
Bazel: 0.1.4
Since I had a problem using gcc-5 building (see at the bottom), I tried forcing it to use gcc-4.9 by editing third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.
Now the error is about sparse_xent_op.h.
Please help, thank you.
##
(For the details how I changed to gcc-4.9, in case I did something wrong)
At first I used gcc-5(by default), nvcc compiling core/kernels/bias_op_gpu.cu.cc:
Then I followed #8 to modify crosstool_wrapper_driver_is_not_gcc into
The text was updated successfully, but these errors were encountered: