Skip to content

Commit 150ee47

Browse files
committed
Fix formatting and drop UR mentions
1 parent e0d7a78 commit 150ee47

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

sycl/unittests/helpers/MockDeviceImage.hpp

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
//==------------- MockDeviceImage.hpp --- UR mock image unit testing library
2-
//-------==//
1+
//==------------------------ MockDeviceImage.hpp ---------------------------==//
32
//
43
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
54
// See https://llvm.org/LICENSE.txt for license information.
65
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
76
//
87
//===----------------------------------------------------------------------===//
8+
//
9+
// Collection of helper classes which allow to mock device images in unit-tests
10+
// that are provided by the SYCL compiler in regular flow.
11+
//
12+
//===----------------------------------------------------------------------===//
913

1014
#pragma once
1115

1216
#include <detail/compiler.hpp>
1317
#include <detail/platform_impl.hpp>
1418
#include <detail/program_manager/program_manager.hpp>
1519
#include <sycl/detail/common.hpp>
16-
#include <sycl/detail/ur.hpp>
1720

1821
#include <sycl/detail/defines_elementary.hpp>
1922

@@ -22,16 +25,16 @@ inline namespace _V1 {
2225
namespace unittest {
2326
using namespace sycl::detail;
2427

25-
/// Convinience wrapper around _ur_device_binary_property_struct.
28+
/// Convinience wrapper around _sycl_device_binary_property_struct.
2629
class MockProperty {
2730
public:
2831
using NativeType = _sycl_device_binary_property_struct;
2932

30-
/// Constructs a UR property.
33+
/// Constructs a property.
3134
///
3235
/// \param Name is a property name.
3336
/// \param Data is a vector of raw property value bytes.
34-
/// \param Type is one of ur_property_type values.
37+
/// \param Type is one of sycl_property_type values.
3538
MockProperty(const std::string &Name, std::vector<char> Data, uint32_t Type)
3639
: MName(Name), MData(std::move(Data)), MType(Type) {
3740
updateNativeType();
@@ -71,7 +74,7 @@ class MockProperty {
7174
NativeType MNative;
7275
};
7376

74-
/// Convinience wrapper for _ur_offload_entry_struct.
77+
/// Convinience wrapper for _sycl_offload_entry_struct.
7578
class MockOffloadEntry {
7679
public:
7780
using NativeType = _sycl_offload_entry_struct;
@@ -111,7 +114,7 @@ class MockOffloadEntry {
111114
NativeType MNative;
112115
};
113116

114-
/// Generic array of UR entries.
117+
/// Generic array of Mock entries.
115118
template <typename T> class Array {
116119
public:
117120
explicit Array(std::vector<T> Entries) : MMockEntries(std::move(Entries)) {
@@ -194,7 +197,8 @@ class MockPropertySet {
194197

195198
/// Adds a new array of properties to the set.
196199
///
197-
/// \param Name is a property array name. See ur.hpp for list of known names.
200+
/// \param Name is a property array name. See compiler.hpp for list of known
201+
/// names.
198202
/// \param Props is an array of property values.
199203
void insert(const std::string &Name, Array<MockProperty> Props) {
200204
MNames.push_back(Name);
@@ -222,7 +226,7 @@ class MockPropertySet {
222226
std::vector<_sycl_device_binary_property_set_struct> MProperties;
223227
};
224228

225-
/// Convenience wrapper around UR internal structures, that manages UR binary
229+
/// Convenience wrapper around internal structures, that manages binary
226230
/// image data lifecycle.
227231
class MockDeviceImage {
228232
public:

0 commit comments

Comments
 (0)