Repository navigation
cv-utils: build for rocm - #1320
Conversation
|
This PR changes source code for the following kernel(s): If you have the kernel-bot build permissions, then trigger |
|
waiting on #1328 to run build |
Signed-off-by: David Holtz <david.richard.holtz@gmail.com>
|
/kernel-bot build cv-utils |
|
Build request processed. Command: Dispatched (1):
|
this pr fixes the `test-kernel-rocm` job for kernels that run triton in their tests (first hit on #1320 https://github.com/huggingface/kernels-community/actions/runs/43476728896/job/132069439103) tldr; the job runs in a bare `ubuntu:24.04` container with no compiler, so triton fails to build its launcher with `RuntimeError: Failed to find C compiler`. the base packages step now also installs `gcc` and `libc6-dev` (`--no-install-recommends` skips the libc headers otherwise) same #1182 cv-utils tests as #1318, `44 failed, 92 passed, 4 skipped`, but a missing compiler instead of missing `Python.h` (the nix ci-test python has headers). the cuda runners have a host gcc so `test-kernel-gpu` passes note: #1320 and #1329 need a rebuild after this is merged since the workflow runs from main
|
/kernel-bot build cv-utils |
|
Build request processed. Command: Dispatched (1):
|
|
/kernel-bot build cv-utils |
|
Build request processed. Command: Dispatched (1):
|
|
/kernel-bot merge-and-upload cv-utils |
|
Build request processed. Command: Merge result: Pull Request successfully merged Dispatched (1):
Hub uploads: |
this pr adds a rocm build for
cv-utilssame change as causal-conv1d in #1319: the
rocmbackend,rocm = "2.10"stable abi and acpp-rocmkernel with the same sources andactivationarchs, andstable_utils.hpicks the hip runtime underUSE_ROCM. the kernels have no warp intrinsics and nms already uses 64 bit masks, so no kernel changes. the triton functions from #1182 run on rocm as isbuilt all rocm variants (
rocm70,rocm71,rocm714,rocm72,rocm100) and ran the tests on mi300x (gfx942) with torch2.10.0+rocm7.0,2.12.1+rocm7.1and2.14.1+rocm7.2, 136 pass on each (4 skipped, they need two gpus).generic_nmskeeps the same boxes astorchvision.ops.nmson rocm at 1k, 5k and 20k boxes and is within 4% of its speednote: this lands in v2, sam3 video still loads
version=1so transformers needs to bump that before it picks up the rocm build. no version bump here since this only adds a backend*keeping as draft until ci support rocm