- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This code fails to compile when using Intel SDK for OpenCL Applications 2014 with an Intel HD 4000 GPU:
kernel void f1(global double* W) { const double t = 1.; min(W[0], t); }
It complains about the call to min being ambiguous. Changing it to fmin fixes the compilation. The same code compiles fine when targeting the CPU device (Core i7-3820QM), or an NVIDIA GPU.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
GPU device does not support cl_khr_fp64 currently, so switching to fmin will only help you so much. You should probably switch to floats instead of doubles on the GPU device.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page