@@ -16,7 +16,7 @@ using namespace cl::sycl;
16
16
17
17
int main () {
18
18
int i = 1 ;
19
- vector_class <platform> openclPlatforms;
19
+ std::vector <platform> openclPlatforms;
20
20
for (const auto &plt : platform::get_platforms ()) {
21
21
std::cout << " Platform " << i++
22
22
<< " is available: " << ((plt.is_host ()) ? " host: " : " OpenCL: " )
@@ -34,9 +34,9 @@ int main() {
34
34
{
35
35
std::cout << " move constructor" << std::endl;
36
36
platform Platform (platformA);
37
- size_t hash = hash_class <platform>()(Platform);
37
+ size_t hash = std::hash <platform>()(Platform);
38
38
platform MovedPlatform (std::move (Platform));
39
- assert (hash == hash_class <platform>()(MovedPlatform));
39
+ assert (hash == std::hash <platform>()(MovedPlatform));
40
40
assert (platformA.is_host () == MovedPlatform.is_host ());
41
41
if (!platformA.is_host () &&
42
42
platformA.get_backend () == cl::sycl::backend::opencl) {
@@ -46,10 +46,10 @@ int main() {
46
46
{
47
47
std::cout << " move assignment operator" << std::endl;
48
48
platform Platform (platformA);
49
- size_t hash = hash_class <platform>()(Platform);
49
+ size_t hash = std::hash <platform>()(Platform);
50
50
platform WillMovedPlatform (platformB);
51
51
WillMovedPlatform = std::move (Platform);
52
- assert (hash == hash_class <platform>()(WillMovedPlatform));
52
+ assert (hash == std::hash <platform>()(WillMovedPlatform));
53
53
assert (platformA.is_host () == WillMovedPlatform.is_host ());
54
54
if (!platformA.is_host () &&
55
55
platformA.get_backend () == cl::sycl::backend::opencl) {
@@ -59,21 +59,21 @@ int main() {
59
59
{
60
60
std::cout << " copy constructor" << std::endl;
61
61
platform Platform (platformA);
62
- size_t hash = hash_class <platform>()(Platform);
62
+ size_t hash = std::hash <platform>()(Platform);
63
63
platform PlatformCopy (Platform);
64
- assert (hash == hash_class <platform>()(Platform));
65
- assert (hash == hash_class <platform>()(PlatformCopy));
64
+ assert (hash == std::hash <platform>()(Platform));
65
+ assert (hash == std::hash <platform>()(PlatformCopy));
66
66
assert (Platform == PlatformCopy);
67
67
assert (Platform.is_host () == PlatformCopy.is_host ());
68
68
}
69
69
{
70
70
std::cout << " copy assignment operator" << std::endl;
71
71
platform Platform (platformA);
72
- size_t hash = hash_class <platform>()(Platform);
72
+ size_t hash = std::hash <platform>()(Platform);
73
73
platform WillPlatformCopy (platformB);
74
74
WillPlatformCopy = Platform;
75
- assert (hash == hash_class <platform>()(Platform));
76
- assert (hash == hash_class <platform>()(WillPlatformCopy));
75
+ assert (hash == std::hash <platform>()(Platform));
76
+ assert (hash == std::hash <platform>()(WillPlatformCopy));
77
77
assert (Platform == WillPlatformCopy);
78
78
assert (Platform.is_host () == WillPlatformCopy.is_host ());
79
79
}
0 commit comments