Skip to content

Conversation

@shajder
Copy link
Contributor

@shajder shajder commented Jul 30, 2025

Related to #2282, according to work plan from here

@shajder
Copy link
Contributor Author

shajder commented Dec 11, 2025

close/open to retrigger CI/CD

@shajder shajder closed this Dec 11, 2025
@shajder shajder reopened this Dec 11, 2025
Comment on lines 787 to 794
// Setup the test
error = create_single_kernel_helper(context, &program, nullptr, 1,
&sample_queue_test_kernel, "queue_test",
build_opts.c_str());
test_error(error, "Unable to build test program");

queue_arg_kernel = clCreateKernel(program, "queue_test", &error);
test_error(error, "Unable to get queue_test kernel for built program");
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't work - we either need the kernel name to be nullptr, or the kernel handle must not be nullptr.

Since I can't think of a reason not to do so, I'd recommend just using the harness to create the kernel also, and pass a non-nullptr kernel handle.

Suggested change
// Setup the test
error = create_single_kernel_helper(context, &program, nullptr, 1,
&sample_queue_test_kernel, "queue_test",
build_opts.c_str());
test_error(error, "Unable to build test program");
queue_arg_kernel = clCreateKernel(program, "queue_test", &error);
test_error(error, "Unable to get queue_test kernel for built program");
// Setup the test
error = create_single_kernel_helper(context, &program, &queue_arg_kernel, 1,
&sample_queue_test_kernel, "queue_test",
build_opts.c_str());
test_error(error, "Unable to create test kernel");

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Corrected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants