tensorflow: MSVC 2017 NVIDIA CUDA 9.2.1.148 CUDNN 7.5.0.56 target //tensorflow:tensorflow_cc.dll fails to link

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10.0.18362
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
  • TensorFlow installed from (source or binary):source
  • TensorFlow version:r2.2
  • Python version:3.6
  • Installed using virtualenv? pip? conda?:NA
  • Bazel version (if compiling from source): 2.0.0 via bazelisk
  • GCC/Compiler version (if compiling from source):MSVC 2017 Microsoft ® C/C++ Optimizing Compiler Version 19.16.27027.1 for x64
  • CUDA/cuDNN version: 9.2.1.148/7.5.0.56
  • GPU model and memory:GTX 1060 6Gb

Describe the problem

r2.2 wont compile tensorflow_cc.dll

open powershell

cd D:\github
mkdir attempt6
cd attempt6
git clone https://github.com/tensorflow/tensorflow.git
cd tensorflow
git checkout r2.2
cp .\..\..\*.ps1
. .\buildenv.ps1
. .\build-tf.ps1

where the contents of buildenv.ps1 are

pushd 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\'    
cmd /c "vcvarsall.bat x64 & set" |
foreach {
  if ($_ -match "=") {
    $v = $_.split("="); set-item -force -path "ENV:\$($v[0])"  -value "$($v[1])"
  }
}
popd
write-host "`nVisual Studio 2017 Command Prompt variables set." -ForegroundColor Yellow

and build-tf.ps1 are

$ENV:USE_BAZEL_VERSION="2.0.0"
$ENV:PYTHON_BIN_PATH="C:/Users/user/AppData/Local/Programs/Python/Python36/python.exe"
$ENV:PYTHON_LIB_PATH="C:/Users/user/AppData/Local/Programs/Python/Python36/"
$ENV:Path += ";C:/msys64/usr/bin"
$ENV:Path += ";C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.2/bin"
$ENV:Path += ";C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.2/extras/CUPTI/libx64"
$ENV:Path += ";C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/cudnn-9.2-windows10-x64-v7.5.0.56/cuda/bin"
$ENV:BAZEL_SH = "C:/msys64/usr/bin/bash.exe"
$ENV:CUDA_TOOLKIT_PATH="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.2/"
$ENV:TF_CUDA_VERSION="9.2"
$ENV:CUDNN_INSTALL_PATH="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/cudnn-9.2-windows10-x64-v7.5.0.56/cuda"
$ENV:TF_CUDA_COMPUTE_CAPABILITIES="6.0"
$ENV:TF_CUDNN_VERSION="7"
$ENV:TF_NCCL_VERSION="1"
$ENV:TF_CUDA_CLANG="0"
$ENV:TF_NEED_CUDA="1"
$ENV:TF_NEED_ROCM="0"
$ENV:TF_NEED_OPENCL_SYCL="0"


$params = "configure.py",""
cmd /c "ECHO Y" | & python.exe @params 
bazel.exe build --copt=-nvcc_options=disable-warnings --test_tag_filters=-no_oss,-gpu,-benchmark-test,-nomac,-no_mac --announce_rc --test_timeout 300,450,1200,3600 --test_size_filters=small,medium --define=override_eigen_strong_inline=true  --repository_cache=D:/bazel-cache --jobs=12 //tensorflow:tensorflow_cc.dll

Any other info / logs

Would have expected a good result, only difference from recent build on AWS box with T4 hardware is CUDA 10.2 on AWS box and CUDA 9.2 on local box with GTX 1060 card

Error is

ERROR: D:/github/attempt6/tensorflow/tensorflow/BUILD:710:1: Linking of rule '//tensorflow:tensorflow_cc.dll' failed (Exit 1120)
LINK : warning LNK4044: unrecognized option '/Wl,-rpath,../local_config_cuda/cuda/lib64'; ignored
LINK : warning LNK4044: unrecognized option '/Wl,-rpath,../local_config_cuda/cuda/extras/CUPTI/lib64'; ignored
   Creating library bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_cc.dll.if.lib and object bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_cc.dll.if.exp
bfc_allocator.lib(bfc_allocator.obj) : warning LNK4049: locally defined symbol ?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level) imported
graph_mgr.lib(graph_mgr.obj) : warning LNK4049: locally defined symbol ?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level) imported
batch_kernels.lo.lib(batch_kernels.obj) : warning LNK4049: locally defined symbol ?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level) imported
snapshot_util.lib(snapshot_util.obj) : warning LNK4049: locally defined symbol ?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level) imported
captured_function.lib(captured_function.obj) : warning LNK4049: locally defined symbol ?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level) imported
grpc_master_service.lo.lib(grpc_master_service.obj) : warning LNK4217: locally defined symbol ?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level) imported in function "public: __cdecl tensorflow::profiler::TraceMe::TraceMe<class <lambda_ff01698cf6bea26b6df62d500bf7591b> >(class <lambda_ff01698cf6bea26b6df62d500bf7591b>,int)" (??$?0V<lambda_ff01698cf6bea26b6df62d500bf7591b>@@@TraceMe@profiler@tensorflow@@QEAA@V<lambda_ff01698cf6bea26b6df62d500bf7591b>@@H@Z)
eager_service_impl.lib(eager_service_impl.obj) : warning LNK4049: locally defined symbol ?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level) imported
execute.lib(execute.obj) : warning LNK4049: locally defined symbol ?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level) imported
remote_tensor_handle_data.lib(remote_tensor_handle_data.obj) : warning LNK4049: locally defined symbol ?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level) imported
memory_optimizer.lib(memory_optimizer.obj) : warning LNK4049: locally defined symbol ?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU) imported
pin_to_host_optimizer.lib(pin_to_host_optimizer.obj) : warning LNK4049: locally defined symbol ?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU) imported
utils.lib(utils.obj) : warning LNK4049: locally defined symbol ?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU) imported
collective_param_resolver_distributed.lib(collective_param_resolver_distributed.obj) : warning LNK4217: locally defined symbol ?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU) imported in function "public: __cdecl tensorflow::CollGroupParams::CollGroupParams(void)" (??0CollGroupParams@tensorflow@@QEAA@XZ)
batch_kernels.lo.lib(batch_kernels.obj) : warning LNK4049: locally defined symbol ?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU) imported
captured_function.lib(captured_function.obj) : warning LNK4049: locally defined symbol ?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU) imported
arithmetic_optimizer.lib(arithmetic_optimizer.obj) : warning LNK4049: locally defined symbol ?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU) imported
tfprof_show.lib(tfprof_show.obj) : warning LNK4217: locally defined symbol TF_NewStatus imported in function "protected: bool __cdecl tensorflow::tfprof::TFShow::LookUpCheckPoint(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::unique_ptr<class tensorflow::tfprof::TFProfTensor,struct std::default_delete<class tensorflow::tfprof::TFProfTensor> > *)" (?LookUpCheckPoint@TFShow@tfprof@tensorflow@@IEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAV?$unique_ptr@VTFProfTensor@tfprof@tensorflow@@U?$default_delete@VTFProfTensor@tfprof@tensorflow@@@std@@@5@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4049: locally defined symbol TF_NewStatus imported
tfprof_show.lib(tfprof_show.obj) : warning LNK4217: locally defined symbol TF_DeleteStatus imported in function "protected: bool __cdecl tensorflow::tfprof::TFShow::LookUpCheckPoint(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::unique_ptr<class tensorflow::tfprof::TFProfTensor,struct std::default_delete<class tensorflow::tfprof::TFProfTensor> > *)" (?LookUpCheckPoint@TFShow@tfprof@tensorflow@@IEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAV?$unique_ptr@VTFProfTensor@tfprof@tensorflow@@U?$default_delete@VTFProfTensor@tfprof@tensorflow@@@std@@@5@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4049: locally defined symbol TF_DeleteStatus imported
tfprof_show.lib(tfprof_show.obj) : warning LNK4217: locally defined symbol TF_GetCode imported in function "protected: bool __cdecl tensorflow::tfprof::TFShow::LookUpCheckPoint(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::unique_ptr<class tensorflow::tfprof::TFProfTensor,struct std::default_delete<class tensorflow::tfprof::TFProfTensor> > *)" (?LookUpCheckPoint@TFShow@tfprof@tensorflow@@IEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAV?$unique_ptr@VTFProfTensor@tfprof@tensorflow@@U?$default_delete@VTFProfTensor@tfprof@tensorflow@@@std@@@5@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4049: locally defined symbol TF_GetCode imported
tf_tensor.lib(tf_tensor.obj) : warning LNK4049: locally defined symbol TF_GetCode imported
tfprof_show.lib(tfprof_show.obj) : warning LNK4217: locally defined symbol TF_Message imported in function "protected: bool __cdecl tensorflow::tfprof::TFShow::LookUpCheckPoint(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::unique_ptr<class tensorflow::tfprof::TFProfTensor,struct std::default_delete<class tensorflow::tfprof::TFProfTensor> > *)" (?LookUpCheckPoint@TFShow@tfprof@tensorflow@@IEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAV?$unique_ptr@VTFProfTensor@tfprof@tensorflow@@U?$default_delete@VTFProfTensor@tfprof@tensorflow@@@std@@@5@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4049: locally defined symbol TF_Message imported
utils.lib(utils.obj) : warning LNK4049: locally defined symbol ?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU) imported
arithmetic_optimizer.lib(arithmetic_optimizer.obj) : warning LNK4217: locally defined symbol ?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU) imported in function "private: bool __cdecl tensorflow::grappler::`anonymous namespace'::ReorderCastLikeAndValuePreserving::NodeIsOnCpuOrGpu(class tensorflow::NodeDef const *)const " (?NodeIsOnCpuOrGpu@ReorderCastLikeAndValuePreserving@?A0x41d86e96@grappler@tensorflow@@AEBA_NPEBVNodeDef@4@@Z)
auto_mixed_precision.lib(auto_mixed_precision.obj) : warning LNK4049: locally defined symbol ?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU) imported
memory_optimizer.lib(memory_optimizer.obj) : warning LNK4049: locally defined symbol ?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU) imported
pin_to_host_optimizer.lib(pin_to_host_optimizer.obj) : warning LNK4049: locally defined symbol ?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU) imported
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_DataTypeSize imported in function "void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)
tf_tensor.lib(tf_tensor.obj) : warning LNK4049: locally defined symbol TF_DataTypeSize imported
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_SetStatus imported in function "void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,unsigned __int64,unsigned __int64,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@_K2PEAUTF_Status@@@Z)
tf_tensor.lib(tf_tensor.obj) : warning LNK4049: locally defined symbol TF_SetStatus imported
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_NewOpDefinitionBuilder imported in function "public: bool __cdecl <lambda_e001034d847de908815119ad3d529795>::operator()(void)const " (??R<lambda_e001034d847de908815119ad3d529795>@@QEBA_NXZ)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_RegisterOpDefinition imported in function "public: bool __cdecl <lambda_e001034d847de908815119ad3d529795>::operator()(void)const " (??R<lambda_e001034d847de908815119ad3d529795>@@QEBA_NXZ)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_OpDefinitionBuilderAddAttr imported in function "public: bool __cdecl <lambda_e001034d847de908815119ad3d529795>::operator()(void)const " (??R<lambda_e001034d847de908815119ad3d529795>@@QEBA_NXZ)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_OpDefinitionBuilderAddInput imported in function "public: bool __cdecl <lambda_e001034d847de908815119ad3d529795>::operator()(void)const " (??R<lambda_e001034d847de908815119ad3d529795>@@QEBA_NXZ)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_OpDefinitionBuilderAddOutput imported in function "public: bool __cdecl <lambda_e001034d847de908815119ad3d529795>::operator()(void)const " (??R<lambda_e001034d847de908815119ad3d529795>@@QEBA_NXZ)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_OpDefinitionBuilderSetShapeInferenceFunction imported in function "public: bool __cdecl <lambda_e001034d847de908815119ad3d529795>::operator()(void)const " (??R<lambda_e001034d847de908815119ad3d529795>@@QEBA_NXZ)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_NewShapeHandle imported in function "void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_ShapeInferenceContextGetInput imported in function "void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_ShapeInferenceContextSetOutput imported in function "void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_ShapeInferenceContextVectorFromSize imported in function "void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,unsigned __int64,unsigned __int64,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@_K2PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_NewDimensionHandle imported in function "void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,unsigned __int64,unsigned __int64,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@_K2PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_ShapeInferenceContext_GetAttrType imported in function "void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_ShapeInferenceContextRankKnown imported in function "void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_ShapeInferenceContextWithRankAtLeast imported in function "void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,unsigned __int64,unsigned __int64,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@_K2PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_ShapeInferenceContextDim imported in function "void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,unsigned __int64,unsigned __int64,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@_K2PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_ShapeInferenceContextSubshape imported in function "void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,unsigned __int64,unsigned __int64,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@_K2PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_ShapeInferenceContextSetUnknownShape imported in function "void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_DimensionHandleValueKnown imported in function "void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,unsigned __int64,unsigned __int64,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@_K2PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_DimensionHandleValue imported in function "void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,unsigned __int64,unsigned __int64,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@_K2PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_ShapeInferenceContextConcatenateShapes imported in function "void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,unsigned __int64,unsigned __int64,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@_K2PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_DeleteShapeHandle imported in function "void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,unsigned __int64,unsigned __int64,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@_K2PEAUTF_Status@@@Z)
bitcast_op_lib.lo.lib(bitcast.obj) : warning LNK4217: locally defined symbol TF_DeleteDimensionHandle imported in function "void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,unsigned __int64,unsigned __int64,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@_K2PEAUTF_Status@@@Z)
gpu_activation.lib(gpu_activation.obj) : error LNK2019: unresolved external symbol "class stream_executor::gpu::GpuContext * __cdecl stream_executor::gpu::ExtractGpuContext(class stream_executor::gpu::GpuExecutor *)" (?ExtractGpuContext@gpu@stream_executor@@YAPEAVGpuContext@12@PEAVGpuExecutor@12@@Z) referenced in function "public: __cdecl stream_executor::gpu::ScopedActivateExecutorContext::ScopedActivateExecutorContext(class stream_executor::gpu::GpuExecutor *)" (??0ScopedActivateExecutorContext@gpu@stream_executor@@QEAA@PEAVGpuExecutor@12@@Z)
gpu_activation.lib(gpu_activation.obj) : error LNK2019: unresolved external symbol "class stream_executor::gpu::GpuExecutor * __cdecl stream_executor::gpu::ExtractGpuExecutor(class stream_executor::StreamExecutor *)" (?ExtractGpuExecutor@gpu@stream_executor@@YAPEAVGpuExecutor@12@PEAVStreamExecutor@2@@Z) referenced in function "public: __cdecl stream_executor::gpu::ScopedActivateExecutorContext::ScopedActivateExecutorContext(class stream_executor::StreamExecutor *)" (??0ScopedActivateExecutorContext@gpu@stream_executor@@QEAA@PEAVStreamExecutor@2@@Z)
bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_cc.dll : fatal error LNK1120: 2 unresolved externals
Target //tensorflow:tensorflow_cc.dll failed to build
INFO: Elapsed time: 2607.289s, Critical Path: 349.09s
INFO: 4393 processes: 4393 local.

note

gpu_activation.lib(gpu_activation.obj) : error LNK2019: unresolved external symbol "class stream_executor::gpu::GpuContext * __cdecl stream_executor::gpu::ExtractGpuContext(class stream_executor::gpu::GpuExecutor *)" (?ExtractGpuContext@gpu@stream_executor@@YAPEAVGpuContext@12@PEAVGpuExecutor@12@@Z) referenced in function "public: __cdecl stream_executor::gpu::ScopedActivateExecutorContext::ScopedActivateExecutorContext(class stream_executor::gpu::GpuExecutor *)" (??0ScopedActivateExecutorContext@gpu@stream_executor@@QEAA@PEAVGpuExecutor@12@@Z)
gpu_activation.lib(gpu_activation.obj) : error LNK2019: unresolved external symbol "class stream_executor::gpu::GpuExecutor * __cdecl stream_executor::gpu::ExtractGpuExecutor(class stream_executor::StreamExecutor *)" (?ExtractGpuExecutor@gpu@stream_executor@@YAPEAVGpuExecutor@12@PEAVStreamExecutor@2@@Z) referenced in function "public: __cdecl stream_executor::gpu::ScopedActivateExecutorContext::ScopedActivateExecutorContext(class stream_executor::StreamExecutor *)" (??0ScopedActivateExecutorContext@gpu@stream_executor@@QEAA@PEAVStreamExecutor@2@@Z)
bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_cc.dll : fatal error LNK1120: 2 unresolved externals

Adding *stream_executor* to the appropriate .lds files might fix the problem

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 26 (5 by maintainers)

Most upvoted comments

They were not backported. The newly cut 2.3 branch should have them though

@mihaimaruseac

Thanks for the update, I will either select r1.12 which I know where it is at

or v1.15.3/r1.15 with bazel 0.26.1 I know that you gave me the heads up the bazel version is in the config.py script.

But the info is lacking here:

https://www.tensorflow.org/install/source_windows

and r1.14 is listed but r1.15 is not so thanks for the hot tip that r1.14 is in a mess