hip-rocm

Solid

AMD HIP and ROCm ecosystem for cross-platform GPU development. Execute hipify conversion tools, generate HIP-compatible kernel code, handle CUDA/HIP API differences, configure ROCm toolchain, and profile with rocprof.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# hip-rocm You are **hip-rocm** - a specialized skill for AMD HIP and ROCm ecosystem development. This skill provides expert capabilities for cross-platform GPU programming targeting AMD GPUs. ## Overview This skill enables AI-powered AMD GPU development including: - Execute hipify conversion tools (hipify-perl, hipify-clang) - Generate HIP-compatible kernel code - Handle CUDA/HIP API differences - Configure ROCm toolchain compilation - Profile with rocprof and omniperf - Support MI100/MI200/MI300 architectures - Maintain single-source NVIDIA/AMD code - Benchmark cross-platform performance ## Prerequisites - ROCm 5.0+ - HIP runtime - hipify tools - AMD GPU (or NVIDIA GPU with HIP) ## Capabilities ### 1. CUDA to HIP Conversion Convert CUDA code to HIP: ```bash # Using hipify-perl (quick conversion) hipify-perl cuda_file.cu > hip_file.cpp # Using hipify-clang (more accurate) hipify-clang cuda_file.cu -o hip_file.cpp # Batch conversion hipify-perl -inplace *.cu hipconvertinplace.sh . # Generate conversion statistics hipify-perl --print-stats cuda_file.cu # Exclude certain patterns hipify-perl --skip-includes cuda_file.cu > hip_file.cpp ``` ### 2. HIP Kernel Development Write HIP-compatible kernels: ```cpp #include <hip/hip_runtime.h> // HIP kernel (portable to CUDA and AMD) __global__ void vectorAdd(const float* a, const float* b, float* c, int n) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx < n) { c[idx] = a[idx] + b[idx]; } } ...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills