Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aotriton max process count fix #182

Merged
merged 1 commit into from
Dec 19, 2024
Merged

Conversation

lamikr
Copy link
Owner

@lamikr lamikr commented Dec 19, 2024

patch aotriton to check MAX_JOBS environment variable in aotriton v2src/CMakeLists.txt and use that for limiting the amount of python processes allowed to build and compress hsaco files.

This fixes the out of memory problem on cases where computer has lot of CPUs compared to amount of memory.
Note that this fix only works when using Ninja.
(cmake's limitation for add_custom_jobs command)

MAX_JOBS environment variable and force to use ninja for building aotriton are set in binfo file.

fixes: #178

patch aotriton to check MAX_JOBS environment variable
in aotriton v2src/CMakeLists.txt and use that for limiting the
amount of python processes allowed to build and compress hsaco files.

This fixes the out of memory problem on cases where computer has lot of
CPUs compared to amount of memory.
Note that this fix only works when using Ninja.
(cmake's limitation for add_custom_jobs command)

MAX_JOBS environment variable and force to use ninja for building
aotriton are set in binfo file.

fixes: #178

Signed-off-by: Mika Laitio <[email protected]>
@lamikr lamikr force-pushed the wip/rocm_sdk_builder_612_bg_178 branch from 3585ad7 to fd60efa Compare December 19, 2024 08:36
@lamikr lamikr merged commit a6bf4f2 into master Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build failed: aortion
1 participant