一键导入
paracodex-baseline
ParaCodex baseline skill: translate serial / parallel code to GPU-offloaded target API, optimize, compile, and run — all in a single session.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
ParaCodex baseline skill: translate serial / parallel code to GPU-offloaded target API, optimize, compile, and run — all in a single session.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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.
ParaCodex prompt for cuda ocl step2 step.
| name | paracodex-baseline |
| description | ParaCodex baseline skill: translate serial / parallel code to GPU-offloaded target API, optimize, compile, and run — all in a single session. |
Source: {source_dir}/
Target API: {target_api}
Deliverable directory: {kernel_dir}/
Files to create: {file_listing}
Executable: ./{executable}
{source_dir}/ to a GPU-offloaded {target_api} version.{target_api}.{clean_cmd_str} then {build_cmd_str}, and fix any errors until it succeeds.{run_cmd} and confirm the output looks correct.{kernel_dir}/.Read all relevant files in {source_dir}/ to understand the data structures, compute kernels, and build requirements.
Write the translated file(s) to {kernel_dir}/:
{file_listing}
Offload compute-intensive work to the GPU using {target_api} constructs. Keep I/O and initialization on the CPU. Manage data movement explicitly.
Check {kernel_dir}/Makefile.nvc and update if required — missing source files, include paths, or linker flags.
{clean_cmd_str}
{build_cmd_str}
Fix any compiler errors and repeat until the build succeeds.
{run_cmd}
Confirm the output is correct.
The complete, modified source code for: {file_listing}
in {kernel_dir}/, that compiles with {build_cmd_str} and produces correct output when run with {run_cmd}.
{clean_cmd_str} before every {build_cmd_str}).{run_cmd} — do not substitute or simplify this command.{run_cmd} aborts with an offload error, the GPU pragmas are wrong or missing. Fix the source code. Do NOT remove or relax the run command.