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

Minor fixes in mutable dispatch tests. #1829

Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,8 @@ struct MutableDispatchSVMArguments : public BasicMutableCommandBufferTest

// Allocate and initialize SVM for modified execution

cl_int *newWrapper =
(cl_int *)clSVMAlloc(context, CL_MEM_READ_WRITE, sizeof(cl_int), 0);
cl_int *newWrapper = (cl_int *)clSVMAlloc(context, CL_MEM_READ_WRITE,
sizeof(cl_int *), 0);
cl_int *newBuffer = (cl_int *)clSVMAlloc(
context, CL_MEM_READ_WRITE, num_elements * sizeof(cl_int), 0);
test_assert_error(newWrapper != nullptr && newBuffer != nullptr,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ struct Dimensions : public InfoMutableCommandBufferTest
{
cl_int error = clCommandNDRangeKernelKHR(
command_buffer, nullptr, nullptr, kernel, dimensions, nullptr,
&global_work_size, nullptr, 0, nullptr, nullptr, &command);
global_work_size_3d, nullptr, 0, nullptr, nullptr, &command);
test_error(error, "clCommandNDRangeKernelKHR failed");

cl_uint test_dimensions = 0;
Expand All @@ -231,6 +231,7 @@ struct Dimensions : public InfoMutableCommandBufferTest

cl_mutable_command_khr command = nullptr;
const size_t dimensions = 3;
const size_t global_work_size_3d[3] = { 64, 1, 1 };
};

struct InfoType : public InfoMutableCommandBufferTest
Expand Down
Loading