원클릭으로
paracodex-cuda-hip-step1
ParaCodex prompt for cuda to hip step1 (implementation) step.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
ParaCodex prompt for cuda to hip step1 (implementation) step.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
ParaCodex baseline skill: translate serial / parallel code to GPU-offloaded target API, optimize, compile, and run — all in a single session.
ParaCodex prompt for cuda to hip analysis step.
ParaCodex prompt for cuda to hip step2 (optimization) step.
ParaCodex prompt for cuda ocl analysis step.
ParaCodex prompt for cuda ocl step1 step.
ParaCodex prompt for cuda ocl step2 step.
| name | paracodex-cuda-hip-step1 |
| description | ParaCodex prompt for cuda to hip step1 (implementation) step. |
Directory: {kernel_dir}/
Files: {file_listing}
Reference: {kernel_dir}/analysis.md
Required:
# Baseline CUDA output is in baseline_output.txt in {kernel_dir}/
MANDATORY: Create hip_migration_plan.md in {kernel_dir} using template in references/output.md.
Reference: references/examples.md (Hipify tools & API mapping).
Use hipify-perl or hipify-clang to convert source files.
hipify-perl {source_file}.cu > {source_file}.hip.cpp
Reference: references/examples.md (Tool usage).
warpSize built-in at runtime (never hardcode 32 or 64). Note: __AMDGCN_WAVEFRONT_SIZE macro was removed in ROCm 7.x — do not use it. Default block sizes of 256 are safe (multiple of both 32 and 64).hipStream_t for async operations; use hipMallocAsync/hipFreeAsync (ROCm 5.2+) for dynamic per-kernel allocations:
hipStream_t stream;
hipStreamCreate(&stream);
hipMemcpyAsync(d_ptr, h_ptr, sz, hipMemcpyHostToDevice, stream);
kernel<<<grid, block, 0, stream>>>(...);
hipStreamSynchronize(stream);
hipStreamDestroy(stream);
<<<>>> syntax (keep or convert if needed).hipcc with -O3.{clean_cmd_str}
{build_cmd_str}
timeout 300 {run_cmd_str} > hip_output.txt 2>&1
diff baseline_output.txt hip_output.txt