clMathLibraries / clBLAS

a software library containing BLAS functions written in OpenCL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Runtime error with Intel OpenCL 18.1.0.0920

fedesim opened this issue · comments

The attached example program, taken from the NRM2 documentation, aborts at runtime when using the latest Intel OpenCL platform driver (18.1.0.0920). It did not happen with previous versions.

As far as I can tell, the problem is that %REDUCE_BY_SUM inserts a local variable declaration within the body of an 'if' sentence, which is illegal according to the OpenCL 1.2 and upwards documentation.

The attached code reproduces the error (as long as the first available platform is Intel's latest version). It is the literal example from the documentation, just changing CL_DEVICE_TYPE_GPU for CL_DEVICE_TYPE_CPU. Also attached is the output from Intel's OpenCL compiler.

snrm2.zip