Skip to content

Commit

Permalink
fix memfree
Browse files Browse the repository at this point in the history
  • Loading branch information
icfaust committed Jan 3, 2025
1 parent 2df497f commit 38985d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def custom_build_cmake_clib(
cmake_args += ["-DADD_ONEDAL_RPATH=ON"]

cpu_count = multiprocessing.cpu_count()
memfree = sys.maxsize
# convert to max supported pointer to a memory size in kB
memfree = sys.maxsize // (128 if sys.maxisze > 2**32 else 256)
# limit parallel cmake jobs if memory size is insufficient
if IS_LIN:
with open("/proc/meminfo", "r") as meminfo_file_obj:
Expand Down

0 comments on commit 38985d3

Please sign in to comment.