Skip to content

Commit 3cd6eae

Browse files
authored
Merge pull request #2088 from kbenzie/benie/cts-fix-windows-build
Fix Windows CTS with kernels build
2 parents cfecab0 + 291c0c1 commit 3cd6eae

File tree

9 files changed

+12
-4
lines changed

9 files changed

+12
-4
lines changed

source/adapters/opencl/device.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -450,15 +450,16 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
450450
URValue[i].type = static_cast<ur_device_partition_t>(CLValue[0]);
451451
switch (URValue[i].type) {
452452
case UR_DEVICE_PARTITION_EQUALLY: {
453-
URValue[i].value.equally = CLValue[i + 1];
453+
URValue[i].value.equally = static_cast<uint32_t>(CLValue[i + 1]);
454454
break;
455455
}
456456
case UR_DEVICE_PARTITION_BY_COUNTS: {
457-
URValue[i].value.count = CLValue[i + 1];
457+
URValue[i].value.count = static_cast<uint32_t>(CLValue[i + 1]);
458458
break;
459459
}
460460
case UR_DEVICE_PARTITION_BY_AFFINITY_DOMAIN: {
461-
URValue[i].value.affinity_domain = CLValue[i + 1];
461+
URValue[i].value.affinity_domain =
462+
static_cast<uint32_t>(CLValue[i + 1]);
462463
break;
463464
}
464465
default: {

source/adapters/opencl/kernel.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urKernelSetExecInfo(
302302

303303
switch (propName) {
304304
case UR_KERNEL_EXEC_INFO_USM_INDIRECT_ACCESS: {
305-
if (*(static_cast<const ur_bool_t *>(pPropValue)) == true) {
305+
if (*(static_cast<const ur_bool_t *>(pPropValue))) {
306306
UR_RETURN_ON_FAILURE(usmSetIndirectAccess(hKernel));
307307
}
308308
return UR_RESULT_SUCCESS;

test/conformance/enqueue/urEnqueueKernelLaunch.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See LICENSE.TXT
44
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

6+
#include <array>
67
#include <uur/fixtures.h>
78

89
struct urEnqueueKernelLaunchTest : uur::urKernelExecutionTest {

test/conformance/exp_command_buffer/buffer_saxpy_kernel_update.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

66
#include "fixtures.h"
7+
#include <array>
78

89
// Test that updating a command-buffer with a single kernel command
910
// taking buffer & scalar arguments works correctly.

test/conformance/exp_command_buffer/commands.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

66
#include "fixtures.h"
7+
#include <array>
78

89
struct urCommandBufferCommandsTest
910
: uur::command_buffer::urCommandBufferExpTest {

test/conformance/exp_command_buffer/ndrange_update.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

66
#include "fixtures.h"
7+
#include <array>
78
#include <cstring>
89

910
// Test that updating a command-buffer with a single kernel command

test/conformance/exp_command_buffer/usm_fill_kernel_update.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

66
#include "fixtures.h"
7+
#include <array>
78
#include <cstring>
89

910
// Test that updating a command-buffer with a single kernel command

test/conformance/exp_command_buffer/usm_saxpy_kernel_update.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

66
#include "fixtures.h"
7+
#include <array>
78
#include <cstring>
89

910
// Test that updating a command-buffer with a single kernel command

test/conformance/kernel/urKernelGetGroupInfo.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See LICENSE.TXT
44
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

6+
#include <array>
67
#include <uur/fixtures.h>
78

89
using urKernelGetGroupInfoTest =

0 commit comments

Comments
 (0)