KhronosGroup / KhronosGroup/OpenCL-CLHPP

compiler note about ABI being changed in GCC 4.6

Open
#310 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
425
Forks
133
Avg merge
3h 30m
Merged PRs (30d)
1

Description

when using a cl_ulong4, the following compiler note shows up:
```
/home/rabijl/Projects/pocl-2/pocld/../include/hpp/CL/opencl.hpp: In member function ‘cl_int cl::CommandQueue::enqueueFillBuffer(const cl::Buffer&, PatternType, cl::size_type, cl::size_type, cl::vector*, cl::Event*) const [with PatternType = cl_ulong4]’:
/home/rabijl/Projects/pocl-2/pocld/../include/hpp/CL/opencl.hpp:7679:12: note: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
7679 | cl_int enqueueFillBuffer(
| ^~~~~~~~~~~~~~~~~
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect include/hpp/CL/opencl.hpp around line 7679 and reproduce the cl_ulong4 enqueueFillBuffer build with GCC 4.6. Determine whether the ABI note indicates a real compatibility problem or an expected compiler diagnostic, and document the confirmed resolution or required change.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.