Skip to content
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

Updated readme for issue# 324 and some miscellaneous changes #151

Merged
merged 5 commits into from
Oct 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion doc/README.open_ce_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,21 @@ while a similar build for pytorch may look like this:
```

Note that `bazel` is used to build `TensorFlow`. By default, `bazel` caches the files/source code it downloads during the build to ~/.cache/bazel. In case the home directory is low in memory, the packages using bazel as a build tool might fail.
One can change the cache directory location used by bazel by setting `$TEST_TMPDIR` in the `build.sh` of the respective feedstock like this:
One can change the cache directory location used by bazel in two ways as follows -

1. By setting `$TEST_TMPDIR` in the `build.sh` of the respective feedstock like this:

```shell
export TEST_TMPDIR=/dev/shm/.cache
bazel build ...
```

2. By making a global change in user specific `~/.bazelrc` for all packages that use bazel as a build tool. This way one doesn't need to modify every feedstock:

```shell
echo "startup --output_user_root=/dev/shm/.cache" >> ~/.bazelrc
```

Other environment files for other packages can also be found in the `envs`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this sentence should go before the bazel section

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

directory; simply specify the file for whichever package environment you want.

Expand Down