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

[UR][CTS] Add tests for urEnqueueDeviceGlobalRead/Write #690

Conversation

veselypeta
Copy link
Contributor

Closes #676
Closes #675

using urEnqueueDeviceGetGlobalVariableReadTest = uur::urGlobalVariableTest;
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urEnqueueDeviceGetGlobalVariableReadTest);

TEST_P(urEnqueueDeviceGetGlobalVariableReadTest, Success) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've only included 1 success case since to assert behaviour you have to use both entry-points.

struct urGlobalVariableTest : uur::urKernelExecutionTest {
void SetUp() override {
program_name = "device_global";
global_var = {"_Z7dev_var", 0};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The mangled name here I got from inspecting the SYCL_PI_TRACE with the call - perhaps we could do something similar to the kernel_names header here - but just kept it simple for now.

Copy link
Contributor

Choose a reason for hiding this comment

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

makes sense to me

@veselypeta veselypeta merged commit bdcdc49 into oneapi-src:main Jul 6, 2023
@veselypeta veselypeta deleted the petr/676/urEnqueueDeviceGlobalVariableReadWrite branch July 6, 2023 14:19
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

Successfully merging this pull request may close these issues.

Add CTS tests for urEnqueueDeviceGlobalVariableWrite Add CTS tests for urEnqueueDeviceGlobalVariableRead
3 participants