[CI] Disable non-lazy string operation on logging (#4326)
Co-authored-by: Danny Guinther <dguinther@neuralmagic.com>
This commit is contained in:
7
setup.py
7
setup.py
@ -63,7 +63,7 @@ class cmake_build_ext(build_ext):
|
||||
num_jobs = os.environ.get("MAX_JOBS", None)
|
||||
if num_jobs is not None:
|
||||
num_jobs = int(num_jobs)
|
||||
logger.info(f"Using MAX_JOBS={num_jobs} as the number of jobs.")
|
||||
logger.info("Using MAX_JOBS=%d as the number of jobs.", num_jobs)
|
||||
else:
|
||||
try:
|
||||
# os.sched_getaffinity() isn't universally available, so fall
|
||||
@ -81,8 +81,9 @@ class cmake_build_ext(build_ext):
|
||||
nvcc_threads = os.getenv("NVCC_THREADS", None)
|
||||
if nvcc_threads is not None:
|
||||
nvcc_threads = int(nvcc_threads)
|
||||
logger.info(f"Using NVCC_THREADS={nvcc_threads} as the number"
|
||||
" of nvcc threads.")
|
||||
logger.info(
|
||||
"Using NVCC_THREADS=%d as the number of nvcc threads.",
|
||||
nvcc_threads)
|
||||
else:
|
||||
nvcc_threads = 1
|
||||
num_jobs = max(1, num_jobs // nvcc_threads)
|
||||
|
||||
Reference in New Issue
Block a user