ascendc-env-check

Check NPU and CANN environments via npu-smi and path validation.

11|51|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/hw-native-sys/pypto-lib --skill ascendc-env-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ascendc-env-check
Source: https://github.com/hw-native-sys/pypto-lib/tree/main/.claude/skills/cannbot-skills/ascendc-env-check
Command: npx skills add https://github.com/hw-native-sys/pypto-lib --skill ascendc-env-check

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Identify and report missing or misconfigured NPU and CANN environments to prevent development delays.

Core Features & Use Cases

  • NPU and CANN health checks: verify device visibility, toolkit paths, and environment readiness.
  • Environment validation: confirm ASCEND_HOME_PATH, ASCEND_OPP_PATH, and optional custom operator packages are properly configured.
  • Diagnostics reporting: provide clear pass/fail results and guidance for remediation in both local and containerized environments.

Quick Start

Run the environment check to verify NPU visibility and CANN toolchain readiness.

Frequently Asked Questions about ascendc-env-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my Ascend NPU and CANN environment configuration?

Ascend NPU and CANN environment checks validate device visibility, toolkit paths, and environment readiness by querying npu-smi and verifying ASCEND_HOME_PATH and ASCEND_OPP_PATH to provide actionable pass/fail results.

Why does my Ascend C development setup fail to detect NPU devices?

Your Ascend C development setup may fail to detect NPU devices due to missing or misconfigured CANN environments. Diagnostic scripts query npu-smi for device discovery and validate toolkit paths to provide actionable remediation guidance.

Can I validate CANN toolkit paths inside a containerized environment?

Yes, you can validate CANN toolkit paths inside a containerized environment. The environment validation scripts support both local machines and containerized setups to confirm ASCEND_HOME_PATH and ASCEND_OPP_PATH configurations properly.

What is the best way to verify NPU visibility before starting Ascend C development?

The best way to verify NPU visibility before starting Ascend C development is to run an environment check that queries npu-smi for device discovery and validates CANN toolchain readiness, preventing development delays caused by missing dependencies.

How do I fix misconfigured ASCEND_HOME_PATH and ASCEND_OPP_PATH variables?

To fix misconfigured ASCEND_HOME_PATH and ASCEND_OPP_PATH variables, run the environment validation diagnostic to receive clear pass/fail results and actionable remediation guidance for correcting your CANN toolchain setup.