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

More tests about capture of global or non global scalar variables in kernels #236

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

keryell
Copy link
Member

@keryell keryell commented Jan 11, 2019

Some examples following some discussions inside the SYCL committee about kernel
language restrictions.
https://gitlab.khronos.org/sycl/Specification/issues/168

@keryell keryell changed the title More tests about capture of global or non global scalar variable in kernels More tests about capture of global or non global scalar variables in kernels Jan 11, 2019

// Would be 1 with host device
// Would be 0 with OpenCL device
BOOST_CHECK(global == 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps I am wrong and misunderstanding something, but should this test have some way to optionally BOOST_CHECK global is the relevant value for what the test is compiled for? As if compiled for a device the global value would be set to 0 and this test would always fail in that case. Or do we aim to have the behavior that global would be 1 in both cases for device and host execution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
SYCL C++ library
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

2 participants