dtk-env-usage

Set up the Hygon DTK HIP environment to compile, debug, and optimize HIP applications.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dongg622/china-ai-chip-skill --skill dtk-env-usage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dtk-env-usage
Source: https://github.com/dongg622/china-ai-chip-skill/tree/main/Hygon/dtk-env-usage
Command: npx skills add https://github.com/dongg622/china-ai-chip-skill --skill dtk-env-usage

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a detailed usage manual for the海光DTK development environment, helping developers understand and configure HIP programming tools, compile code, and troubleshoot issues effectively.

Core Features & Use Cases

  • Environment Setup: Guides users on configuring DTK toolchain including compilers and environment variables.
  • HIP Programming: Explains HIP models, kernel execution, and common errors, facilitating optimized code development.
  • Tools & Debugging: Shows how to utilize hipprof and hipgdb for performance analysis and debugging.

Quick Start

Read this document to understand how to set up the HIP environment and perform first compilation and debugging tasks on海光平台.

Frequently Asked Questions about dtk-env-usage

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

FAQPage Schema
How do I set up the DTK HIP environment for compilation on Hygon hardware?

To set up the DTK HIP environment, configure the DTK toolchain by setting the required compilers and environment variables. This prepares your system to compile HIP applications directly on Hygon hardware platforms.

What is the best way to debug HIP applications using DTK tools?

The best way to debug HIP applications is by using hipgdb. This tool allows you to troubleshoot common errors and inspect kernel execution to resolve issues within your HIP code effectively.

Can I use hipprof for performance analysis of HIP programs on Hygon platforms?

Yes, you can use hipprof for performance analysis. It is integrated into the DTK environment to help developers analyze and optimize the execution performance of their HIP applications on Hygon hardware.

Why does my HIP compilation fail in the DTK environment?

HIP compilation failures often stem from incorrect environment variable configurations or toolchain setup issues. Verify your DTK installation and ensure all compilers are correctly initialized before rebuilding your project.

How does HIP kernel execution work within the Hygon DTK framework?

HIP kernel execution within the DTK framework operates using the HIP programming model to run parallel workloads on Hygon hardware. The environment provides specific configurations to manage and execute these kernels efficiently.