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

cl_khr_kernel_clock: use create_single_kernel_helper #1978

Merged
merged 2 commits into from
Jun 18, 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
11 changes: 2 additions & 9 deletions test_conformance/extensions/cl_khr_kernel_clock/kernel_clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,14 @@ class KernelClockTest {

ptr = kernel_src;

error = create_single_kernel_helper_create_program(
context, &program, 1, &ptr);
error = create_single_kernel_helper(context, &program, &kernel, 1,
&ptr, "SampleClock");
bashbaug marked this conversation as resolved.
Show resolved Hide resolved
test_error(error, "Failed to create program with source");

error =
clBuildProgram(program, 1, &device, nullptr, nullptr, nullptr);
test_error(error, "Failed to build program");

out_mem = clCreateBuffer(context, CL_MEM_WRITE_ONLY,
sizeof(cl_uint), nullptr, &error);
test_error(error, "clCreateBuffer failed");

kernel = clCreateKernel(program, "SampleClock", &error);
test_error(error, "Failed to create kernel");

error = clSetKernelArg(kernel, 0, sizeof(out_mem), &out_mem);
test_error(error, "clSetKernelArg failed");

Expand Down
Loading