Skip to content

Fixed coverity issues in src/acl_kernel.cpp #221

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

Merged
merged 2 commits into from
Dec 7, 2022
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
3 changes: 2 additions & 1 deletion src/acl_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1661,6 +1661,7 @@ static cl_int l_enqueue_kernel_with_type(
acl_dev_kernel_invocation_image_t *invocation = 0;
cl_context context;
acl_mem_migrate_t memory_migration;
memory_migration.num_mem_objects = 0;
cl_int status = CL_SUCCESS;
int serialization_needed = 0;
acl_assert_locked();
Expand Down Expand Up @@ -1843,7 +1844,7 @@ static cl_int l_enqueue_kernel_with_type(
for (idim = 0; idim < work_dim; idim++) {
unsigned int kernel_max_global_work_dim;
size_t kernel_compile_work_group_size_idim;
acl_print_debug_msg(" local work size[%d] = %d\n", idim,
acl_print_debug_msg(" local work size[%d] = %zu\n", idim,
local_work_size[idim]);
// If the work group size was specified in the kernel source, then
// it must match the passed-in size. If the kernel is workgroup invariant,
Expand Down