一键导入
paracodex-serial-omp-analysis
ParaCodex prompt for serial omp analysis step.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
ParaCodex prompt for serial omp analysis 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 step1 (implementation) step.
ParaCodex prompt for cuda to hip step2 (optimization) step.
ParaCodex prompt for cuda ocl analysis step.
ParaCodex prompt for cuda ocl step1 step.
| name | paracodex-serial-omp-analysis |
| description | ParaCodex prompt for serial omp analysis step. |
Directory: {kernel_dir}/
Files: {file_listing}
Reference: Check Makefile in {kernel_dir}/ (do not modify)
Analyze loops in {source_dir}/ and produce {kernel_dir}/analysis.md.
Copy source files unmodified to {kernel_dir}/.
The analysis must identify the natural GPU offload unit, helper-fragmentation risk, and whether the default input is too small to guide optimization reliably.
Copy {file_listing} to {kernel_dir} unmodified.
grep -n "for.*iter\|for.*it\|while\|main(" *.c *.cpp 2>/dev/null | head -50
grep -n "for\s*(" *.c *.cpp 2>/dev/null | head -100
Prioritize functions called in main compute loop:
For each loop: iterations × ops/iter = total work
Reference: references/examples.md (See Decision Tree and Type Reference).
Check for Type H first: If an outer loop iterates over independent work items and contains an inner loop whose body is guarded by if (inner_var == 0), classify the inner loop as Type H (CUDA-serial port) and flag it as RESTRUCTURE NEEDED in analysis.md.
Analyze each array:
Structural questions to answer during analysis:
analysis.md instead of helper-by-helper offload.Scalability questions to answer during analysis:
system_info_summary.txt and choose that size against the actual device memory and compute capability; prefer the largest short-run, memory-safe input that should load the GPU meaningfully.Reference: references/output.md (Use this template).
{kernel_dir}/.