Skip to content

Interoperability programs should be built based on the queue #78

@diptorupd

Description

@diptorupd

We are currently only building interoperability programs using clCreateProgram and this always targeting an OpenCL device. The approach works only when the underlying queue is for an OpenCL device. If the device is not an OpenCL device, e.g. a Level-0 device, we get a crash late during kernel submit.

Two things needs to be done:

  • We should at the very least check to ensure that the queue is for an OpenCL device and give a meaningful error message right at the time of program creation.
  • We should create the program based on what queue is passed by the caller, i.e., use clCreateProgram or the corresponding Level-0 call.

Metadata

Metadata

Assignees

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