OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1663 Discussions

OpenCL Kernel Builder : Texture access warning when from usage of sampler.

LLess
Beginner
126 Views

This is just an idea but it would be good to have a warning when :

- a sampler is defined in the kernel

- the read_image used is not valid with that sampler

Obviously there are cases where this depends on the texture format unfortunately so this cannot be checked at compile time.

But having that checked in the Analyze part and an error reported would be great.

Having kernel running but undefined behavior on the read_image is definitively something that no developer wants to see.

So any help to catch these is welcome.

Laurent.

0 Kudos
0 Replies
Reply