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
--action_env not passed to all spawn strategies #11163
Comments
/cc @chsigg |
Thanks for the detailed repro, I see that the I don't have ROCM installed, so I'm just trying with the default
This suggests that the following is true, and that some (spawn) actions do not run with the set of 5 custom action_env variables.
|
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 2+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out to the triage team ( |
Description of the problem / feature request:
When I build TF with
--config=rocm
, the settings from the.tf_configure.bazelrc
(which is included via.bazelrc
, do not get passed through to some of the subcommands issued.Feature requests: what underlying problem are you trying to solve with this feature?
In TF build, the
.tf_configure.bazelrc
is used to set (amongst other things)action_env
s needed to execute the sub commands correctly (i.e. in my builds, the need to set ROCM_PATH correrctly). When these envs are not set, it can lead to build errors. Mind you this issue is not limited toaction_env
s. Other settings in the.tf_configure.bazelrc
like compiler flags also do not get passed through, leading to incorrectly built.o
sBugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
This is the tricky part. Easiest way to reproduce this is to do Tensorflow build with
--configure=rocm
and the bazel-s
option specified, and then scan through the output to look for this issueWhat operating system are you running Bazel on?
Ubuntu 16.04
What's the output of
bazel info release
?release 3.0.0
If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?Have you found anything relevant by searching the web?
No
Any other information, logs, or outputs that you want to share?
I will attach a tarball that contains an example of this issue. It will have the files
The
build_rocm_python3
is the script used to do the TF buildThe
build_rocm.log
is the resulting log fileThe
.tf_configure.bazelrc
is the file that contains theaction_env
settingsThe
find_bug.py
is a simple python script to scan the log file and dump the first instance of the bug/issuebazel_bug.tar.gz
The text was updated successfully, but these errors were encountered: