- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why does one line fail while the other succeeds.
#pragma OPENCL EXTENSION cl_khr_fp64 : enableconstant unsigned const precision = 3;
constant unsigned const preciselyu = 1 << precision;
constant double const preciselyd = (double)(preciselyu);
constant double const ipreciselyd = 1.0 / preciselyd; // FAILS "error: initializer element is not a compile-time constant"
constant double const ipreciselyd = 1.0 / (double)(preciselyu); // WORKS
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Thanks for reporting this issue. We identified the root cause of this topic.
It will be fixed in future versions.
Thanks, Shiri
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Thanks for reporting this issue. We identified the root cause of this topic.
It will be fixed in future versions.
Thanks, Shiri

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