Skip to content

OpenCL CPU Runtime Corrupted Options #844

@pvelesko

Description

@pvelesko

g++ -Wall -g -o reproducerUnrecognizedOptions reproducerUnrecognizedOptions.cpp -lOpenCL
./reproducerUnrecognizedOptions

Intel OpenCL CPU Link Flags Corruption Reproducer
=================================================

Available platforms:
  0: Intel(R) OpenCL Graphics (Intel(R) Corporation)
  1: Intel(R) OpenCL Graphics (Intel(R) Corporation)
  2: Intel(R) OpenCL (Intel(R) Corporation)

Selected for testing:
Platform: Intel(R) OpenCL
Device: 13th Gen Intel(R) Core(TM) i9-13900K
Vendor: Intel(R) Corporation
Intel CPU: YES

Testing different link flag scenarios:
======================================

1. Testing with '-cl-kernel-arg-info' flag:
   FAILED: clLinkProgram returned error -67
Build log:
Linking failed
Unrecognized link options: 


2. Testing with empty string flag:
   SUCCESS: Linking completed

3. Testing with NULL flags:
   SUCCESS: Linking completed

4. Testing with '-cl-std=CL3.0' flag:
   FAILED: clLinkProgram returned error -67
Build log:
Linking failed
Unrecognized link options: 0B*d�V


=== REPRODUCER COMPLETED ===
If you see 'Unrecognized link options' with corrupted characters,
this confirms the Intel CPU OpenCL driver bug.

EXPECTED BEHAVIOR:
- NULL flags should work
- Empty string flags should work
- Valid flags should work or give meaningful error

BUG BEHAVIOR:
- Valid flags show corrupted characters in error message
- Error: 'Unrecognized link options: [garbage characters]'
- ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions