بنقرة واحدة
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