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

fix: reduce the number of thread groups in event independence tests #99

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions conformance_tests/core/test_event/src/test_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,14 +829,21 @@ TEST_P(
auto module = lzt::create_module(context, device, "profile_add.spv",
ZE_MODULE_FORMAT_IL_SPIRV, nullptr, nullptr);
auto kernel = lzt::create_function(module, "profile_add_constant");
lzt::set_group_size(kernel, 1, 1, 1);
const ze_group_count_t args = {sz, 1, 1};
uint32_t groupSizeX = 0u;
uint32_t groupSizeY = 0u;
uint32_t groupSizeZ = 0u;
lzt::suggest_group_size(kernel, sz, 1u, 1u, groupSizeX, groupSizeY,
groupSizeZ);
EXPECT_EQ(1u, groupSizeY);
EXPECT_EQ(1u, groupSizeZ);
lzt::set_group_size(kernel, groupSizeX, 1u, 1u);
const ze_group_count_t args = {sz / groupSizeX, 1u, 1u};
const int seven = 7;
lzt::set_argument_value(kernel, 0, sizeof(buf_dev), &buf_dev);
lzt::set_argument_value(kernel, 1, sizeof(buf_dev), &buf_dev);
lzt::set_argument_value(kernel, 2, sizeof(seven), &seven);

for (int i = 0; i < 5; i++) {
for (int i = 0; i < 4; i++) {
auto cmd_bundle = lzt::create_command_bundle(
context, device, 0, ZE_COMMAND_QUEUE_MODE_ASYNCHRONOUS,
ZE_COMMAND_QUEUE_PRIORITY_NORMAL, 0, 0, 0, is_immediate);
Expand Down
Loading