Skip to content

fix(rocblas): accept --offload-jobs in rmake's compiler-jobs parser - #15166

Merged
TorreZuk merged 1 commit into
ROCm:developfrom
0z5a:fix/rocblas-rmake-offload-jobs
Nov 9, 2026
Merged

TorreZuk merged 1 commit into
ROCm:developfrom
0z5a:fix/rocblas-rmake-offload-jobs

Conversation

@0z5a

@0z5a 0z5a commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Summary

rmake.get_compiler_jobs only looked for parallel-jobs=, so an environment using LLVM's renamed --offload-jobs=4 was parsed as one compiler job:

get_compiler_jobs("--offload-jobs=4")  # 1, expected 4

Try --offload-jobs= first and fall back to parallel-jobs= for older toolchains, stopping at the first match.

The helper currently sits behind a disabled path (get_env_compiler_parallelism() returns early), but it is the parser for the HIP_CLANG_NUM_PARALLEL_JOBS / CCC_OVERRIDE_OPTIONS path and the rename makes it wrong by construction once that path is re-enabled.

Testing

Python 3.12.3:

import rmake
[rmake.get_compiler_jobs(x) for x in ("--offload-jobs=4", "-parallel-jobs=3", "none")]
  • before: [1, 3, 1]
  • after: [4, 3, 1]

Fixes #15163

get_compiler_jobs only looked for parallel-jobs=, so an environment using
LLVM's renamed --offload-jobs= flag was parsed as one job.
@0z5a
0z5a requested a review from a team as a code owner November 5, 2026 19:20
@therock-pr-bot

therock-pr-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

⏳ Waiting on Required Checks

⏳ Required checks have not all concluded yet. This bot run is exiting without failing so those checks can report independently.

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ⚠️ Warning Error: Source/code files changed without an accompanying unit test.
Expected: add at least one test file named like test_<name>.py / test_<name>.cpp (or <name>_test.*).
Current: code file(s) changed: projects/rocblas/rmake.py; no test file found
🔎 pre-commit ⏳ Pending ⏳ Still running…
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —

⏳ Required checks are still running or have not started yet.
This PR is not ready for review until they complete.

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

@assistant-librarian assistant-librarian Bot added the external contribution Code contribution from users community.. label Nov 5, 2026

@evedovelli evedovelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@therock-pr-bot

therock-pr-bot Bot commented Nov 5, 2026

Copy link
Copy Markdown

⏳ Waiting for required checks to start or finish:

  • ⏳ pre-commit

@TorreZuk TorreZuk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but the TODO to re-enable the helper is low priority as rmake is only for developer custom builds now. Still fine to fix env query

@0z5a

0z5a commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @TorreZuk. Agreed — re-enabling get_env_compiler_parallelism() is a separate, low-priority change, so I left the disabled path and its commented-out logic untouched; this PR only keeps the parser correct for when that path comes back.

The PR has both approvals, but the required workflows (Component CI, Multi-Arch CI, pre-commit) are still waiting for approval on this fork PR, so the merge stays blocked. Could they be kicked off when you have a moment?

@TorreZuk TorreZuk added the TestLevel1Only Tests only Level 1 functions in this PR label Nov 6, 2026
@TorreZuk
TorreZuk enabled auto-merge (squash) November 6, 2026 21:13
@TorreZuk
TorreZuk merged commit c13aa16 into ROCm:develop Nov 9, 2026
359 of 367 checks passed
assistant-librarian Bot pushed a commit to ROCm/rocBLAS that referenced this pull request Nov 9, 2026
fix(rocblas): accept --offload-jobs in rmake's compiler-jobs
 parser (#15166)

## Summary

`rmake.get_compiler_jobs` only looked for `parallel-jobs=`, so an
environment using LLVM's renamed `--offload-jobs=4` was parsed as one
compiler job:

```python
get_compiler_jobs("--offload-jobs=4")  # 1, expected 4
```

Try `--offload-jobs=` first and fall back to `parallel-jobs=` for older
toolchains, stopping at the first match.

The helper currently sits behind a disabled path
(`get_env_compiler_parallelism()` returns early), but it is the parser
for the `HIP_CLANG_NUM_PARALLEL_JOBS` / `CCC_OVERRIDE_OPTIONS` path and
the rename makes it wrong by construction once that path is re-enabled.

## Testing

Python 3.12.3:

```python
import rmake
[rmake.get_compiler_jobs(x) for x in ("--offload-jobs=4", "-parallel-jobs=3", "none")]
```

- before: `[1, 3, 1]`
- after: `[4, 3, 1]`

Fixes #15163
@assistant-librarian

Copy link
Copy Markdown
Contributor

TheRock Submodule Bump Activity

Newest first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external contribution Code contribution from users community.. project: rocblas TestLevel1Only Tests only Level 1 functions in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[rocBLAS] rmake's compiler-jobs parser does not understand --offload-jobs

4 participants