8000 opencl: keep _param_name in the babeltrace model by TApplencourt · Pull Request #570 · argonne-lcf/THAPI · GitHub
[go: up one dir, main page]

Skip to content

opencl: keep _param_name in the babeltrace model - #570

Merged
TApplencourt merged 1 commit into
opencl-unifyfrom
opencl-param-name
Nov 9, 2026
Merged

TApplencourt merged 1 commit into
opencl-unifyfrom
opencl-param-name

Conversation

@TApplencourt
Copy link
Copy Markdown
Collaborator

Stacked on #564. Once #564 is merged, this PR's base goes back to devel.

Why

The clGet*Info exit tracepoints record the queried key as _param_name (ctf_integer_hex(cl_device_info, _param_name, param_name)), so that param_value_vals can be decoded. But gen_opencl_model.rb left it out of opencl_model.yaml, and therefore out of btx_cl_model.yaml.

Only the Ruby printer could use it, because it reads the raw payload. A metababel component, like the C++ pretty filter (#560), follows the model and couldn't see it. So 22 of the 23 param_value_vals events couldn't be decoded there.

Change

  • gen_opencl_model.rb keeps _param_name: it's now the last member of the 22 clGet*Info_exit events, in both opencl_model.yaml and btx_cl_model.yaml. Nothing else in either file changes.
  • babeltrace_opencl_lib.rb skips _param_name explicitly. It's a key the tracer adds, not an output of the call, so the Ruby text output doesn't change. The skip names exactly _param_name and not every _-prefixed field, because _retval is printed today.

Checked

  • The interval filter, regenerated from the new model, builds; its matching sets select members by name.
  • iprof -t replay of real OpenCL and SYCL-on-OpenCL traces gives byte-identical pretty-print and tally output compared with devel.
  • OpenCL make check passes 9/9.

🤖 Generated with Claude Code

The clGet*Info exit tracepoints record the queried key as _param_name, so
that param_value_vals can be decoded, but gen_opencl_model.rb left it out
of opencl_model.yaml, hence out of btx_cl_model.yaml. Only the Ruby printer
could use it, by reading the raw payload; a metababel component (the C++
pretty filter) follows the model and could not see it, so 22 of the 23
param_value_vals events could not be decoded there.

The field is now in the model of those 22 exit events. The Ruby printer
skips it explicitly: it is a key the tracer adds, not an output of the
call, and its text output stays as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TApplencourt
TApplencourt merged commit bc8c0cb into opencl-unify Nov 9, 2026
22 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0