Skip to content

Instantly share code, notes, and snippets.

@jbd
Created March 16, 2017 16:20
Show Gist options
  • Select an option

  • Save jbd/6a9bf2bc717725e90cbe84408c94c321 to your computer and use it in GitHub Desktop.

Select an option

Save jbd/6a9bf2bc717725e90cbe84408c94c321 to your computer and use it in GitHub Desktop.
tensorflow crosstool wrapper patch
--- ./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