File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 7
7
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
8
8
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
9
9
10
- // ==---- allocator_equal.cpp - Allocator Equality test ---- ---------------==//
10
+ // ==---------- allocator_equal.cpp - Allocator Equality test ---------------==//
11
11
//
12
12
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
13
13
// See https://llvm.org/LICENSE.txt for license information.
17
17
18
18
#include < CL/sycl.hpp>
19
19
20
+ #include < cassert>
21
+
20
22
using namespace cl ::sycl;
21
23
22
24
int main () {
Original file line number Diff line number Diff line change 8
8
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
9
9
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
10
10
11
- // ==---- allocator_shared.cpp - Allocate Shared test -------------------==//
11
+ // ==-------- allocator_shared.cpp - Allocate Shared test -------------------==//
12
12
//
13
13
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
14
14
// See https://llvm.org/LICENSE.txt for license information.
18
18
19
19
#include < CL/sycl.hpp>
20
20
21
+ #include < cassert>
21
22
#include < memory>
22
23
23
24
using namespace cl ::sycl;
@@ -46,14 +47,7 @@ int main() {
46
47
assert ((*ptr2 == 42 ) && " Shared construct passed." );
47
48
}
48
49
49
- if (dev.get_info <info::device::usm_device_allocations>()) {
50
- usm_allocator<int , usm::alloc::device> alloc (ctxt, dev);
51
- auto ptr1 = std::allocate_shared<int >(alloc);
52
-
53
- // Test construction
54
- auto ptr2 = std::allocate_shared<int >(alloc, 42 );
55
- // Cannot actually construct value for device pointers, but should not die.
56
- }
50
+ // Device allocations are not supported due to how allocated_shared is written.
57
51
58
52
return 0 ;
59
53
}
You can’t perform that action at this time.
0 commit comments