8
8
9
9
#include < gtest/gtest.h>
10
10
11
- #include < CL /sycl.hpp>
11
+ #include < sycl /sycl.hpp>
12
12
#include < vecmem/memory/sycl/shared_memory_resource.hpp>
13
13
#include < vecmem/memory/unique_ptr.hpp>
14
14
17
17
18
18
TEST (SYCLUniqueLock, MassAdditionKernelTryLock) {
19
19
vecmem::sycl::shared_memory_resource mr;
20
- cl ::sycl::queue queue;
20
+ ::sycl::queue queue;
21
21
22
22
vecmem::unique_alloc_ptr<uint32_t > out =
23
23
vecmem::make_unique_alloc<uint32_t >(mr);
@@ -30,13 +30,13 @@ TEST(SYCLUniqueLock, MassAdditionKernelTryLock) {
30
30
uint32_t n_blocks = 262144 ;
31
31
uint32_t n_threads = 32 ;
32
32
33
- cl ::sycl::nd_range test_range (cl ::sycl::range<1 >(n_blocks * n_threads),
34
- cl ::sycl::range<1 >(n_threads));
33
+ ::sycl::nd_range test_range (::sycl::range<1 >(n_blocks * n_threads),
34
+ ::sycl::range<1 >(n_threads));
35
35
36
36
queue
37
- .submit ([&, out = out.get (), _lock = lock.get ()](cl ::sycl::handler &h) {
37
+ .submit ([&, out = out.get (), _lock = lock.get ()](::sycl::handler &h) {
38
38
h.parallel_for <class MassAdditionTryLockTest >(
39
- test_range, [=](cl ::sycl::nd_item<1 > item) {
39
+ test_range, [=](::sycl::nd_item<1 > item) {
40
40
traccc::device::mutex m (*_lock);
41
41
42
42
if (item.get_local_id () == 0 ) {
@@ -59,7 +59,7 @@ TEST(SYCLUniqueLock, MassAdditionKernelTryLock) {
59
59
60
60
TEST (SYCLUniqueLock, MassAdditionKernelDeferLock) {
61
61
vecmem::sycl::shared_memory_resource mr;
62
- cl ::sycl::queue queue;
62
+ ::sycl::queue queue;
63
63
64
64
vecmem::unique_alloc_ptr<uint32_t > out =
65
65
vecmem::make_unique_alloc<uint32_t >(mr);
@@ -72,13 +72,13 @@ TEST(SYCLUniqueLock, MassAdditionKernelDeferLock) {
72
72
uint32_t n_blocks = 262144 ;
73
73
uint32_t n_threads = 32 ;
74
74
75
- cl ::sycl::nd_range test_range (cl ::sycl::range<1 >(n_blocks * n_threads),
76
- cl ::sycl::range<1 >(n_threads));
75
+ ::sycl::nd_range test_range (::sycl::range<1 >(n_blocks * n_threads),
76
+ ::sycl::range<1 >(n_threads));
77
77
78
78
queue
79
- .submit ([&, out = out.get (), _lock = lock.get ()](cl ::sycl::handler &h) {
79
+ .submit ([&, out = out.get (), _lock = lock.get ()](::sycl::handler &h) {
80
80
h.parallel_for <class MassAdditionDeferLockTest >(
81
- test_range, [=](cl ::sycl::nd_item<1 > item) {
81
+ test_range, [=](::sycl::nd_item<1 > item) {
82
82
traccc::device::mutex m (*_lock);
83
83
traccc::device::unique_lock lock (m, std::defer_lock);
84
84
@@ -98,7 +98,7 @@ TEST(SYCLUniqueLock, MassAdditionKernelDeferLock) {
98
98
99
99
TEST (SYCLUniqueLock, MassAdditionKernelAdoptLock) {
100
100
vecmem::sycl::shared_memory_resource mr;
101
- cl ::sycl::queue queue;
101
+ ::sycl::queue queue;
102
102
103
103
vecmem::unique_alloc_ptr<uint32_t > out =
104
104
vecmem::make_unique_alloc<uint32_t >(mr);
@@ -111,13 +111,13 @@ TEST(SYCLUniqueLock, MassAdditionKernelAdoptLock) {
111
111
uint32_t n_blocks = 262144 ;
112
112
uint32_t n_threads = 32 ;
113
113
114
- cl ::sycl::nd_range test_range (cl ::sycl::range<1 >(n_blocks * n_threads),
115
- cl ::sycl::range<1 >(n_threads));
114
+ ::sycl::nd_range test_range (::sycl::range<1 >(n_blocks * n_threads),
115
+ ::sycl::range<1 >(n_threads));
116
116
117
117
queue
118
- .submit ([&, out = out.get (), _lock = lock.get ()](cl ::sycl::handler &h) {
118
+ .submit ([&, out = out.get (), _lock = lock.get ()](::sycl::handler &h) {
119
119
h.parallel_for <class MassAdditionAdoptLockTest >(
120
- test_range, [=](cl ::sycl::nd_item<1 > item) {
120
+ test_range, [=](::sycl::nd_item<1 > item) {
121
121
traccc::device::mutex m (*_lock);
122
122
123
123
if (item.get_local_id () == 0 ) {
0 commit comments