Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

VS2015 Code Builder can't use Intel extensions because of SPIR-V?

$
0
0

Code Builder seems to have inconsistent behavior when compiling a kernel that uses intel_xxx() extensions or an intel_xxx kernel attribute and targets a GPU (HD 530 / Skylake).

The kernel will not compile unless I add the switch "-cl-fast-relaxed-math" or a couple other options.  Not every option results in a successful compile.

The issue appears to be that the SPIR-V backend doesn't support the Intel extensions/attributes (which makes sense).

So why is Code Builder even bothering to generate SPIR-V when there is no support for _loading_ SPIR-V IL in Skylake and Intel extensions were detected?

_____________________

Failed to generate SPIR-V output file: foo.cl:9:32: warning: expected 'enable' or 'disable' - ignoring

foo.cl:267:16: warning: unknown attribute 'intel_reqd_sub_group_size' ignored

foo.cl:465:71: error: implicit declaration of function 'intel_sub_group_shuffle' is invalid in OpenCL

 


Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>