con un clic
paracodex-serial-omp-analysis
ParaCodex prompt for serial omp analysis step.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
ParaCodex prompt for serial omp analysis step.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional 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}/.