Created
March 16, 2017 16:20
-
-
Save jbd/6a9bf2bc717725e90cbe84408c94c321 to your computer and use it in GitHub Desktop.
tensorflow crosstool wrapper patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- ./third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.tpl.orig 2017-02-21 16:26:19.055392559 +0100 | |
| +++ ./third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.tpl 2017-02-21 16:51:34.390286976 +0100 | |
| @@ -50,8 +50,8 @@ | |
| GCC_HOST_COMPILER_PATH = ('%{gcc_host_compiler_path}') | |
| CURRENT_DIR = os.path.dirname(sys.argv[0]) | |
| -NVCC_PATH = CURRENT_DIR + '/../../../cuda/bin/nvcc' | |
| -LLVM_HOST_COMPILER_PATH = ('/usr/bin/gcc') | |
| +NVCC_PATH = '/local/gensoft2/exe/cuda/8.0.0/bin/nvcc' | |
| +LLVM_HOST_COMPILER_PATH = ('/local/gensoft2/exe/gcc/4.9.0/scripts/gcc') | |
| PREFIX_DIR = os.path.dirname(GCC_HOST_COMPILER_PATH) | |
| NVCC_VERSION = '%{cuda_version}' | |
| @@ -229,7 +229,7 @@ | |
| # TODO(zhengxq): for some reason, 'gcc' needs this help to find 'as'. | |
| # Need to investigate and fix. | |
| - cmd = 'PATH=' + PREFIX_DIR + ' ' + cmd | |
| + #cmd = 'PATH=' + PREFIX_DIR + ' ' + cmd | |
| if log: Log(cmd) | |
| return os.system(cmd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment