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
Copy file name to clipboardExpand all lines: genesis/engine/scene.py
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -871,15 +871,18 @@ def _parallelize(
871
871
- for non-batched env, we only parallelize certain loops that have big loop size
872
872
- for batched env, we parallelize all loops
873
873
- When using cpu, we serialize everything.
874
-
- This is emprically as fast as parallel loops even with big batchsize (tested up to B=10000), because invoking multiple cpu processes cannot utilize all cpu usage.
875
-
- In order to exploit full cpu power, users are encouraged to launch multiple processes manually, and each will use a single cpu thred.
874
+
- Parallelization only provides a boost for n_envs >= num_threads and ti_num_threads > 1.
875
+
It is always disabled by default but can be enforced by setting the env var `GS_PARA_LEVEL=2`.
876
+
- In order to exploit full cpu power, users are encouraged to launch multiple processes manually and set
877
+
env var `TI_NUM_THREADS=1`, so that each process uses a single cpu thread.
0 commit comments