https://github.com/Microsoft/CNTK
Revision e785a2b1ed9912443d7d6abacb52ae070147a41d authored by Alexander Pereyaslavets on 24 April 2018, 13:36:56 UTC, committed by GitHub on 24 April 2018, 13:36:56 UTC
Allow to add some extra cxxflags via system env. 

Use cases:
1) https://github.com/Microsoft/CNTK/issues/3155
export CXXFLAGS="-Wno-unused-variable -Wno-sign-compare" 
configure && make

2) Our libc/libstdc has been built with gcc-4.9. So we fail to build cntk in current state with gcc-5 in compatibility mode.
https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html

After patching cntk we have successful build:
COMMON_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 -Wno-unused-variable -Wno-sign-compare" configure && make
(nvcc don't recongnise -W flags)
1 parent 438f619
History
Tip revision: e785a2b1ed9912443d7d6abacb52ae070147a41d authored by Alexander Pereyaslavets on 24 April 2018, 13:36:56 UTC
Allow to add some extra cxxflags via env
Tip revision: e785a2b
File Mode Size
Documentation
Examples
Manual
PretrainedModels
Scripts
Source
Tests
Tools
Tutorials
bindings
.clang-format -rw-r--r-- 951 bytes
.gitattributes -rw-r--r-- 3.3 KB
.gitignore -rw-r--r-- 7.6 KB
.gitmodules -rw-r--r-- 105 bytes
CNTK.Common.props -rw-r--r-- 3.2 KB
CNTK.Cpp.props -rw-r--r-- 10.7 KB
CNTK.sln -rw-r--r-- 215.3 KB
CONTRIBUTING.md -rw-r--r-- 210 bytes
CppCntk.vssettings -rw-r--r-- 10.0 KB
LICENSE.md -rw-r--r-- 1.1 KB
Makefile -rw-r--r-- 63.9 KB
README.md -rw-r--r-- 17.0 KB
ThirdPartyNotices.md -rw-r--r-- 21.0 KB
configure -rwxr-xr-x 36.5 KB

README.md

back to top