Skip to content

Commit f655674

Browse files
jefyang1assistant-librarian[bot]
authored andcommitted
[rocm-libraries] ROCm/rocm-libraries#9667 (commit 8b95262)
fix: [CK] Fix the multiple targets build OOM failure JIRA ID : AICK-1716 ## Motivation Fix the multiple targets build OOM failure caused by hardcoded ninja -j64 parallelism on a weaker agent (i.e. 25 cores) in CK CI builds 1793 and 1830. ## Technical Details Use nthreads() to query the actual agent core count at runtime and caps at 64, so it will never over-subscribe the machine. ## Test Plan Run the multiple targets build and make sure the core count as expected without over-subscribing the machine. And pass the test. ## Test Result Passed. ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
1 parent 3fd8ad3 commit f655674

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

groovy/vars/ck.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,6 @@ def runBuildInstancesOnly(String compiler) {
15461546
-DCMAKE_CXX_COMPILER="${compiler}" \
15471547
-DCMAKE_HIP_COMPILER="${compiler}" \
15481548
-DGPU_ARCHS="gfx908;gfx90a;gfx942;gfx950;gfx10-3-generic;gfx11-generic;gfx12-generic" \
1549-
-D CMAKE_BUILD_TYPE=Release .. && ninja -j64"""
1549+
-D CMAKE_BUILD_TYPE=Release .. && ninja -j${nthreads()}"""
15501550
)
15511551
}

0 commit comments

Comments
 (0)