Skip to content

fix: remove unused device type placeholders#24

Merged
voltjia merged 1 commit into
masterfrom
fix/remove-unused-device-types
Jul 10, 2026
Merged

fix: remove unused device type placeholders#24
voltjia merged 1 commit into
masterfrom
fix/remove-unused-device-types

Conversation

@voltjia

@voltjia voltjia commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Remove unsupported kKunlun and kQy device type placeholders from Device::Type.
  • Remove their string mappings and AllDeviceTypes entries so the active device list only covers implemented backends.

Motivation

Kunlun and Qy do not have CMake options, generated public-header mappings, or native runtime/device implementations yet. Keeping them in the public device enum makes them look supported before the backend support exists.

Smoke Build / Test Evidence

  • rg -n "kKunlun|kQy|kunlun|qy" . returned no matches after the change.
  • git diff --check passed.
  • python -m py_compile scripts/generate_public_headers.py passed using the bundled Python runtime.
  • python scripts/generate_public_headers.py --output-dir build/generated-check/include --source-output build/generated-check/runtime_dispatch.cc --devices cpu nvidia iluvatar hygon metax moore cambricon ascend passed.

Not Run

  • cmake -S . -B build -DWITH_CPU=ON -DINFINI_RT_BUILD_TESTING=ON because cmake is not installed in this local environment.

Risk

Low. This only removes public enum/string/list entries for backends that are not otherwise wired into the build or generated-header path.

@voltjia
voltjia merged commit 0f0d61f into master Jul 10, 2026
6 checks passed
@voltjia
voltjia deleted the fix/remove-unused-device-types branch July 10, 2026 03:33
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.

1 participant