-
Notifications
You must be signed in to change notification settings - Fork 74k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in creating the final binary using AOT compilation for CPU backend #13482
Comments
Could you share the complete contents of the Also, please fill in all information asked for in the issue template. In this particular case, details about the exact version of the source code you're using to build would be helpful. FYI @tatatodd |
@asimshankar Sorry for the misleading. The error message should be: The complete
The exact source version: |
@asimshankar @aselle FYI, I tried the latest source (version: v1.3.0-rc1-3000-g840dcae) this morning, and the error still exists. I simply followed the tutorial (https://www.tensorflow.org/performance/xla/tfcompile) without changing anything. In addition, I found the same error was also mentioned in #11726, where @ankitachandak initially was getting the same error in build:
May I have your advice on this issue? Thanks. |
@MartinZZZ What happens when you try to build the existing
That corresponds to the following source file: |
@tatatodd Thanks for your suggestion.
and the error occurred as well:
Here is the
The current TensorFlow version is May I have your advice? |
@MartinZZZ Can you try again, starting with a clean copy of the sources (without any of your changes), and running:
If that still fails, there's either some issue with the way your bazel is set up, or something is going wrong elsewhere. |
@tatatodd Thanks for your suggestion. I tried a clean copy of the sources, and built the But error still occurs when building
Finally, it will print:
|
@MartinZZZ If I think the problem is your steps 2.1 and 2.2. These steps are conflicting with the files In particular your step 2.2 doesn't actually exist in the tutorial. Step 2 of the tutorial is trying to say that Start over from clean sources, skip your steps 2.1 and 2.2, and see if that helps. |
@MartinZZZ great, I'm glad we figured out the problem! :) I'll comment on #13500 separately on that issue. |
System information
bazel build //tensorflow/compiler/aot/tests:my_binary
Describe the problem
I simply followed the tutorial here: https://www.tensorflow.org/performance/xla/tfcompile
According to Step 1 and 2, I compiled the subgraph and generated the header (
test_graph_tfmatmul.h
) and object (test_graph_tfmatmul.o
) files usingtfcompile
;According to Step 3, I used the example code (named as
my_code.cc
) to invoke the subgraph;According to Step 4, I added the code snippet
cc_binary
to the existingBUILD
file (//tensorflow/compiler/aot/tests/BUILD
), and tried to create the final binary with the command:bazel build //tensorflow/compiler/aot/tests:my_binary
but I got the following error:
undeclared inclusion(s) in rule '//tensorflow/compiler/aot/tests:my_binary': this rule is missing dependency declarations for the following files included by 'tensorflow/compiler/aot/tests/my_code.cc': '/home/tensorFlow_src/tensorflow/tensorflow/compiler/aot/tests/test_graph_tfmatmul.h'
Source code / logs
my_code.cc
(exactly the same as in the tutorial):cc_binary
inBUILD
file:The text was updated successfully, but these errors were encountered: