Skip to content

Commit 5218483

Browse files
committed
fix namespace in esimd_sycl_util.hpp and 2 tests
Signed-off-by: kbobrovs <[email protected]>
1 parent 08ce0f5 commit 5218483

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

sycl/include/CL/sycl/INTEL/esimd/detail/esimd_sycl_util.hpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515

1616
__SYCL_INLINE_NAMESPACE(cl) {
1717
namespace sycl {
18-
namespace INTEL {
19-
namespace gpu {
18+
namespace ext {
19+
namespace intel {
20+
namespace experimental {
21+
namespace esimd {
2022
namespace detail {
2123

2224
// Checks that given type is a SYCL accessor type. Sets its static field
@@ -80,7 +82,9 @@ using EnableIfAccessor = sycl::detail::enable_if_t<
8082
detail::is_sycl_accessor_with<T, Capability, AccessTarget>::value, RetT>;
8183

8284
} // namespace detail
83-
} // namespace gpu
84-
} // namespace INTEL
85+
} // namespace esimd
86+
} // namespace experimental
87+
} // namespace intel
88+
} // namespace ext
8589
} // namespace sycl
8690
} // __SYCL_INLINE_NAMESPACE(cl)

sycl/test/esimd/block_load_store.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ SYCL_EXTERNAL void kernel1(
1313
&buf) SYCL_ESIMD_FUNCTION {
1414
simd<int, 32> v1(0, 1);
1515
// expected-warning@+2 {{deprecated}}
16-
// expected-note@CL/sycl/INTEL/esimd/esimd_memory.hpp:188 {{}}
16+
// expected-note@CL/sycl/INTEL/esimd/esimd_memory.hpp:190 {{}}
1717
auto v0 = block_load<int, 32>(buf, 0);
1818
v0 = v0 + v1;
1919
// expected-warning@+2 {{deprecated}}
20-
// expected-note@CL/sycl/INTEL/esimd/esimd_memory.hpp:220 {{}}
20+
// expected-note@CL/sycl/INTEL/esimd/esimd_memory.hpp:222 {{}}
2121
block_store<int, 32>(buf, 0, v0);
2222
}
2323

2424
SYCL_EXTERNAL void kernel2(int *ptr) SYCL_ESIMD_FUNCTION {
2525
simd<int, 32> v1(0, 1);
2626
// expected-warning@+2 {{deprecated}}
27-
// expected-note@CL/sycl/INTEL/esimd/esimd_memory.hpp:169 {{}}
27+
// expected-note@CL/sycl/INTEL/esimd/esimd_memory.hpp:171 {{}}
2828
auto v0 = block_load<int, 32>(ptr);
2929
v0 = v0 + v1;
3030
// expected-warning@+2 {{deprecated}}
31-
// expected-note@CL/sycl/INTEL/esimd/esimd_memory.hpp:201 {{}}
31+
// expected-note@CL/sycl/INTEL/esimd/esimd_memory.hpp:203 {{}}
3232
block_store<int, 32>(ptr, v0);
3333
}

sycl/test/esimd/simd_copy_to_copy_from.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <limits>
1111
#include <utility>
1212

13-
using namespace sycl::INTEL::gpu;
13+
using namespace sycl::ext::intel::experimental::esimd;
1414
using namespace cl::sycl;
1515

1616
// --- Postive tests.
@@ -42,13 +42,13 @@ kernel3(accessor<int, 1, access::mode::read_write, access::target::local> &buf)
4242
simd<int, 32> v1(0, 1);
4343
simd<int, 32> v0;
4444
// expected-error@+3 {{no matching member function for call to 'copy_from'}}
45-
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:514 {{}}
46-
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:509 {{}}
45+
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:499 {{}}
46+
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:511 {{}}
4747
v0.copy_from(buf, 0);
4848
v0 = v0 + v1;
4949
// expected-error@+3 {{no matching member function for call to 'copy_to'}}
50-
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:497 {{}}
51-
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:525 {{}}
50+
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:516 {{}}
51+
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:527 {{}}
5252
v0.copy_to(buf, 0);
5353
}
5454

@@ -58,8 +58,8 @@ SYCL_EXTERNAL void kernel4(
5858
SYCL_ESIMD_FUNCTION {
5959
simd<int, 32> v;
6060
// expected-error@+3 {{no matching member function for call to 'copy_from'}}
61-
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:514 {{}}
62-
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:509 {{}}
61+
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:499 {{}}
62+
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:511 {{}}
6363
v.copy_from(buf, 0);
6464
}
6565

@@ -69,7 +69,7 @@ SYCL_EXTERNAL void kernel5(
6969
SYCL_ESIMD_FUNCTION {
7070
simd<int, 32> v(0, 1);
7171
// expected-error@+3 {{no matching member function for call to 'copy_to'}}
72-
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:497 {{}}
73-
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:525 {{}}
72+
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:516 {{}}
73+
// expected-note@CL/sycl/INTEL/esimd/esimd.hpp:527 {{}}
7474
v.copy_to(buf, 0);
7575
}

0 commit comments

Comments
 (0)