NVIDIA / tensorflow

An Open Source Machine Learning Framework for Everyone
https://developer.nvidia.com/deep-learning-frameworks
Apache License 2.0
962 stars 144 forks source link

How to Obtain libtensorflow_cc.lib in MSYS2 MinGW64 Environment with Bazel #104

Open TaiHaoMedAI opened 9 months ago

TaiHaoMedAI commented 9 months ago

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

Describe the problem

Provide the exact sequence of commands / steps that you executed before running into the problem I am working in an MSYS2 and MinGW64 environment and trying to build TensorFlow using Bazel to obtain libtensorflow_cc.lib. Here is the command I am using:

bazel build --config=v1 --config=cuda --define=no_tensorflow_py_deps=true --copt=-nvcc_options=disable-warnings //tensorflow:libtensorflow_cc.so //tensorflow:install_headers

I have successfully generated libtensorflow_cc.so, libtensorflow_cc.dll, and numerous .cc files using this command. Attached is a screenshot showing the current file structure produced by this command. However, I am still looking for how to adjust this command or my environment settings to generate the libtensorflow_cc.lib file for Windows and an include folder containing only .h header files. image

I am not finding the specific files I need in the bazel-out directory. Could you please guide me on how to obtain the libtensorflow_cc.lib file and the necessary header files?

Thank you for your help!

Any other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.