Skip to content

Commit 38b2836

Browse files
authored
Merge pull request #1757 from hdelan/fix-context-test
Don't assume a multi dev ctx is being used
2 parents b8a1a3f + 4ff8ed4 commit 38b2836

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/conformance/context/urContextGetInfo.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
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 <map>
65
#include <uur/fixtures.h>
76

87
struct urContextGetInfoTestWithInfoParam
@@ -14,9 +13,7 @@ struct urContextGetInfoTestWithInfoParam
1413

1514
ctx_info_size_map = {
1615
{UR_CONTEXT_INFO_NUM_DEVICES, sizeof(uint32_t)},
17-
{UR_CONTEXT_INFO_DEVICES,
18-
sizeof(ur_device_handle_t) *
19-
uur::DevicesEnvironment::instance->devices.size()},
16+
{UR_CONTEXT_INFO_DEVICES, sizeof(ur_device_handle_t)},
2017
{UR_CONTEXT_INFO_REFERENCE_COUNT, sizeof(uint32_t)},
2118
{UR_CONTEXT_INFO_USM_MEMCPY2D_SUPPORT, sizeof(bool)},
2219
{UR_CONTEXT_INFO_USM_FILL2D_SUPPORT, sizeof(bool)},

0 commit comments

Comments
 (0)