-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add parameterization to USM alloc tests for testing pools.
Also fix a couple of minor issues in tests: * check correct code for invalid size in GetMemAllocInfo test * fix shadowing in urUSMPoolTestWithParam fixture * ensure we allocate with a pool for UR_USM_ALLOC_INFO_POOL GetMemAllocInfo test
- Loading branch information
1 parent
4834f8b
commit 40a7789
Showing
7 changed files
with
160 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (C) 2023 Intel Corporation | ||
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See LICENSE.TXT | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
#include "uur/fixtures.h" | ||
|
||
namespace uur { | ||
template <> | ||
std::string deviceTestWithParamPrinter<BoolTestParam>( | ||
const ::testing::TestParamInfo< | ||
std::tuple<ur_device_handle_t, BoolTestParam>> &info) { | ||
auto device = std::get<0>(info.param); | ||
auto param = std::get<1>(info.param); | ||
|
||
std::stringstream ss; | ||
ss << param.name << (param.value ? "Enabled" : "Disabled"); | ||
return uur::GetPlatformAndDeviceName(device) + "__" + ss.str(); | ||
} | ||
} // namespace uur |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.