Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error with Intel OpenCL 18.1.0.0920 #339

Open
fedesim opened this issue Dec 14, 2018 · 0 comments
Open

Runtime error with Intel OpenCL 18.1.0.0920 #339

fedesim opened this issue Dec 14, 2018 · 0 comments

Comments

@fedesim
Copy link

fedesim commented Dec 14, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant