diff --git a/source/adapters/opencl/device.cpp b/source/adapters/opencl/device.cpp index 36d08548c3..6cdfb3a97d 100644 --- a/source/adapters/opencl/device.cpp +++ b/source/adapters/opencl/device.cpp @@ -450,15 +450,16 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice, URValue[i].type = static_cast(CLValue[0]); switch (URValue[i].type) { case UR_DEVICE_PARTITION_EQUALLY: { - URValue[i].value.equally = CLValue[i + 1]; + URValue[i].value.equally = static_cast(CLValue[i + 1]); break; } case UR_DEVICE_PARTITION_BY_COUNTS: { - URValue[i].value.count = CLValue[i + 1]; + URValue[i].value.count = static_cast(CLValue[i + 1]); break; } case UR_DEVICE_PARTITION_BY_AFFINITY_DOMAIN: { - URValue[i].value.affinity_domain = CLValue[i + 1]; + URValue[i].value.affinity_domain = + static_cast(CLValue[i + 1]); break; } default: { diff --git a/source/adapters/opencl/kernel.cpp b/source/adapters/opencl/kernel.cpp index 9735abefbf..ec1fe43423 100644 --- a/source/adapters/opencl/kernel.cpp +++ b/source/adapters/opencl/kernel.cpp @@ -302,7 +302,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urKernelSetExecInfo( switch (propName) { case UR_KERNEL_EXEC_INFO_USM_INDIRECT_ACCESS: { - if (*(static_cast(pPropValue)) == true) { + if (*(static_cast(pPropValue))) { UR_RETURN_ON_FAILURE(usmSetIndirectAccess(hKernel)); } return UR_RESULT_SUCCESS; diff --git a/test/conformance/enqueue/urEnqueueKernelLaunch.cpp b/test/conformance/enqueue/urEnqueueKernelLaunch.cpp index dded6a67e4..c34240c057 100644 --- a/test/conformance/enqueue/urEnqueueKernelLaunch.cpp +++ b/test/conformance/enqueue/urEnqueueKernelLaunch.cpp @@ -3,6 +3,7 @@ // See LICENSE.TXT // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +#include #include struct urEnqueueKernelLaunchTest : uur::urKernelExecutionTest { diff --git a/test/conformance/exp_command_buffer/buffer_saxpy_kernel_update.cpp b/test/conformance/exp_command_buffer/buffer_saxpy_kernel_update.cpp index 55e6773cb7..5a80be188f 100644 --- a/test/conformance/exp_command_buffer/buffer_saxpy_kernel_update.cpp +++ b/test/conformance/exp_command_buffer/buffer_saxpy_kernel_update.cpp @@ -4,6 +4,7 @@ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "fixtures.h" +#include // Test that updating a command-buffer with a single kernel command // taking buffer & scalar arguments works correctly. diff --git a/test/conformance/exp_command_buffer/commands.cpp b/test/conformance/exp_command_buffer/commands.cpp index 412e4ab6de..53898ce60a 100644 --- a/test/conformance/exp_command_buffer/commands.cpp +++ b/test/conformance/exp_command_buffer/commands.cpp @@ -4,6 +4,7 @@ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "fixtures.h" +#include struct urCommandBufferCommandsTest : uur::command_buffer::urCommandBufferExpTest { diff --git a/test/conformance/exp_command_buffer/ndrange_update.cpp b/test/conformance/exp_command_buffer/ndrange_update.cpp index 3c053fe4b9..5cbfffa9cd 100644 --- a/test/conformance/exp_command_buffer/ndrange_update.cpp +++ b/test/conformance/exp_command_buffer/ndrange_update.cpp @@ -4,6 +4,7 @@ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "fixtures.h" +#include #include // Test that updating a command-buffer with a single kernel command diff --git a/test/conformance/exp_command_buffer/usm_fill_kernel_update.cpp b/test/conformance/exp_command_buffer/usm_fill_kernel_update.cpp index 606744cd86..2bf9755c21 100644 --- a/test/conformance/exp_command_buffer/usm_fill_kernel_update.cpp +++ b/test/conformance/exp_command_buffer/usm_fill_kernel_update.cpp @@ -4,6 +4,7 @@ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "fixtures.h" +#include #include // Test that updating a command-buffer with a single kernel command diff --git a/test/conformance/exp_command_buffer/usm_saxpy_kernel_update.cpp b/test/conformance/exp_command_buffer/usm_saxpy_kernel_update.cpp index 0cb50cb3f1..7f9b5d7f69 100644 --- a/test/conformance/exp_command_buffer/usm_saxpy_kernel_update.cpp +++ b/test/conformance/exp_command_buffer/usm_saxpy_kernel_update.cpp @@ -4,6 +4,7 @@ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "fixtures.h" +#include #include // Test that updating a command-buffer with a single kernel command diff --git a/test/conformance/kernel/urKernelGetGroupInfo.cpp b/test/conformance/kernel/urKernelGetGroupInfo.cpp index b91001a07f..cd48cdc0c2 100644 --- a/test/conformance/kernel/urKernelGetGroupInfo.cpp +++ b/test/conformance/kernel/urKernelGetGroupInfo.cpp @@ -3,6 +3,7 @@ // See LICENSE.TXT // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +#include #include using urKernelGetGroupInfoTest =