You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use the following command to check all available rules in each folder:
87
+
You can use the following command to check all available rules in a specific top directory:
87
88
```bash
88
89
bazel query ...
89
90
```
90
91
91
92
Note:
92
93
93
94
1. Building TensorFlow uses a lot of memory, I prefer a small number of CPUs (`--jobs`)
94
-
2. The whole process can take several hours
95
-
3. Add `-D_GLIBCXX_USE_CXX11_ABI=0` if you use GCC 5 or higher
96
-
4. Flags for optimization: `--copt="-O3"`
97
-
5. Flasg for both AMD and Intel chips: `--copt=-mfma --copt=-msse4.1 --copt=-msse4.2 --copt=-mfpmath=both`
98
-
6. Flags for Intel: `--copt=-mavx --copt=-mavx2`
99
-
7. Rebuild with `--config=monolithic` if you want compile all TensorFlow C++ code into a single shared object
95
+
2. Limit RAM requested by bazel with `--local_ram_resources`. The value is either integer, .e.g., `4096` or % of total memory, e.g., 50% `"HOST_MEM*.50"`
96
+
3. The whole process can take several hours
97
+
4. Add `-D_GLIBCXX_USE_CXX11_ABI=0` if you use GCC 5 or higher
98
+
5. Flags for optimization: `--copt="-O3"`
99
+
6. Flasg for both AMD and Intel chips: `--copt=-mfma --copt=-msse4.1 --copt=-msse4.2 --copt=-mfpmath=both`
100
+
7. Flags for Intel: `--copt=-mavx --copt=-mavx2`
101
+
8. Rebuild with `--config=monolithic` if you want compile all TensorFlow C++ code into a single shared object
0 commit comments