SIGN IN SIGN UP

[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.
J
jefyang1 committed
f655674e6020e1a1852f6de37c0b910be1eb96d7
Parent: 3fd8ad3
Committed by assistant-librarian[bot] <assistant-librarian[bot]@users.noreply.github.com> on 7/22/2026, 5:57:19 PM