test_compiler: feature macros for cl_ext_float_atomics are not tested

Open Beginner friendly
#2,818 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@shajder is already working on this.

Since Nov 6, 2026.

  • #2874 by @shajder — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp
Domain
testing-qa

Research direction

Start in test_feature_macro.cpp, the compiler test named in the issue. Review how it checks feature macros and compare each cl_ext_float_atomics macro with the corresponding CL_DEVICE_HALF_FP_ATOMIC_CAPABILITIES_EXT, CL_DEVICE_SINGLE_FP_ATOMIC_CAPABILITIES_EXT, or CL_DEVICE_DOUBLE_FP_ATOMIC_CAPABILITIES_EXT bit. Done means every listed macro is checked as defined exactly when its capability bit is set.

Written by the indexing model from the issue text.

Description

cognizant-triage

Reported by @karolherbst in #2142 (https://github.com/KhronosGroup/OpenCL-CTS/issues/2142#issuecomment-5181820719).

test_feature_macro.cpp does not check the feature macros defined by cl_ext_float_atomics. Each macro should be defined exactly when the
corresponding bit is set in CL_DEVICE_{HALF,SINGLE,DOUBLE}_FP_ATOMIC_CAPABILITIES_EXT:

  • __opencl_c_ext_fp16_{global,local}_atomic_load_store
  • __opencl_c_ext_fp{16,32,64}_{global,local}_atomic_add
  • __opencl_c_ext_fp{16,32,64}_{global,local}_atomic_min_max
Dominant language
C++
Stars
234
Forks
240
Avg merge
6d 12h
Merged PRs (30d)
15

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from KhronosGroup/OpenCL-CTS

All issues in KhronosGroup/OpenCL-CTS

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.