Skip to content
Open
Changes from all commits
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
6 changes: 4 additions & 2 deletions dataprocess/extract_av2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"""

import os
os.environ["OMP_NUM_THREADS"] = "1"
# Limit thread count for NumPy/OpenBLAS/MKL - prevents single process from using all cores
for _k in ("OMP_NUM_THREADS", "OPENBLAS_NUM_THREADS", "MKL_NUM_THREADS", "NUMEXPR_MAX_THREADS"):
os.environ[_k] = "1"
import warnings
warnings.filterwarnings("ignore", category=UserWarning)

Expand Down Expand Up @@ -333,4 +335,4 @@ def main(
if __name__ == '__main__':
start_time = time.time()
fire.Fire(main)
print(f"\nTime used: {(time.time() - start_time)/60:.2f} mins")
print(f"\nTime used: {(time.time() - start_time)/60:.2f} mins")