Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Iteratively profiles, rewrites, and benchmarks MATLAB design files for GPU Coder to speed up generated CUDA code.
Use this skill ↓41% 73%+32 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 9 of 22 without it.
When analyzing `ray_tracer.m`, the report showed `gpucoder:diagnostic:NoKernelFunPragma` for the main tracing calculation function. What code modification fixes this issue?
Adds coder.gpu.kernelfun to the named function.
3 of 3 safety checks passed
Iteratively optimize a MATLAB design file for GPU Coder: compile, benchmark, apply structural optimizations, profile with gpuPerformanceAnalyzer, fix diagnostics, and verify numerical equivalence at every step.
.m design file and representative inputscoder.gpuConfig("exe") — standalone executables cannot be benchmarked or
equivalence-checked from MATLAB. Suggest the user switch to mex or lib/dll and regenerate exe from the final optimized source.All codegen artifacts, profiling outputs, and optimized versions go in a
single temp directory for the entire session. pwd must be sessionDir for
every codegen/benchmark/PA call — otherwise compiled MEX and SIL binaries
land in the user's working directory.
Two helpers this skill calls — benchmarkMex and extractDiagnostics — live
in the scripts/ subfolder of this skill (the folder containing this
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.