Skip to content

Commit 60c0b81

Browse files
committed
[UR] Windows doesn't like std::array without template arguments
1 parent d1d4f10 commit 60c0b81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/conformance/memory/memory_adapter_level_zero.match

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ urMemGetInfoTest.InvalidNullPointerParamValue/Intel_R__oneAPI_Unified_Runtime_ov
77
urMemGetInfoTest.InvalidNullPointerPropSizeRet/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_MEM_INFO_SIZE
88
urMemGetInfoTest.InvalidNullPointerPropSizeRet/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_MEM_INFO_CONTEXT
99
urMemGetInfoImageTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_MEM_INFO_SIZE
10-
urMemGetInfoImageTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_MEM_INFO_CONTEXT
1110
{{Segmentation fault|Aborted}}

test/conformance/memory/urMemGetInfo.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions.
33
// See LICENSE.TXT
44
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
#include <array>
56
#include <map>
67
#include <uur/fixtures.h>
78

89
using urMemGetInfoTest = uur::urMemBufferTestWithParam<ur_mem_info_t>;
910

10-
static constexpr std::array mem_info_values = {UR_MEM_INFO_SIZE,
11-
UR_MEM_INFO_CONTEXT};
11+
static constexpr std::array<ur_mem_info_t, 2> mem_info_values{
12+
UR_MEM_INFO_SIZE, UR_MEM_INFO_CONTEXT};
1213
static std::unordered_map<ur_mem_info_t, size_t> mem_info_size_map = {
1314
{UR_MEM_INFO_SIZE, sizeof(size_t)},
1415
{UR_MEM_INFO_CONTEXT, sizeof(ur_context_handle_t)},

0 commit comments

Comments
 (0)