optimization-advisor

Analyze nsys profiles to map GPU hotspots to source functions.

1.0k|109|Updated Jun 19, 2024
One-click install
npx skills add https://github.com/sirius-db/sirius --skill optimization-advisor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimization-advisor
Source: https://github.com/sirius-db/sirius/tree/main/.claude/skills/optimization-advisor
Command: npx skills add https://github.com/sirius-db/sirius --skill optimization-advisor

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps developers identify specific areas in their code that are causing performance bottlenecks, particularly in GPU-accelerated applications, by analyzing profiling data and mapping performance hotspots directly to source code functions.

Core Features & Use Cases

  • GPU Hotspot Analysis: Maps GPU performance issues (kernels, operators, memory) back to their originating source code functions.
  • Bottleneck Detection: Identifies efficiency bottlenecks, synchronization overhead, memory issues, and parallelism opportunities.
  • Use Case: After running a performance benchmark on a GPU-intensive application, use this Skill to analyze the nsys profile and pinpoint the exact C++ functions that are consuming the most GPU time or causing excessive synchronization, guiding optimization efforts.

Quick Start

Analyze the provided nsys profile report to identify the top 3 optimization targets in the code.

Frequently Asked Questions about optimization-advisor

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

FAQPage Schema
How do I map GPU hotspots to source code functions from nsys profile data?

To map GPU hotspots to source code functions from nsys profile data, you analyze the profiling report to correlate GPU kernel execution times with their originating C++ functions. This identifies specific areas consuming the most GPU time.

What types of performance bottlenecks can GPU profiling identify in my application?

GPU profiling can identify efficiency bottlenecks, synchronization overhead, memory issues, and parallelism opportunities within GPU-accelerated applications. It detects these performance bottlenecks by analyzing execution models and operator-to-source mappings.

How do I analyze nsys profile reports to pinpoint code optimization targets?

You analyze nsys profile reports to pinpoint code optimization targets by parsing the profiling data to find GPU hotspots. This guides optimization efforts by revealing exactly which source functions cause excessive synchronization or memory consumption.

Do I need to understand the Sirius execution model to analyze GPU performance issues?

Yes, understanding the Sirius execution model and operator-to-source mapping is required to analyze GPU performance issues effectively. This knowledge is necessary to accurately map detected GPU hotspots back to their originating source code functions.

Can I use bash scripts for GPU profiling and bottleneck detection?

Yes, you can use bash scripts for GPU profiling and bottleneck detection. The analysis requires running bash scripts to process the nsys profile data and identify specific code optimization targets within your application.