Skip to content

Commit aad7c1c

Browse files
[SYCL][ESIMD] Explicit SIMD memory-access APIs (#1856)
This commit adds implementation of Explicit SIMD memory-access APIs along with memory intrinsics used to implement operations with SIMD classes. Co-authored-by: Chen, Gang Y <[email protected]> Co-authored-by: Chen, Kai Yu <[email protected]> Co-authored-by: Bobrovsky, Konstantin S <[email protected]> Co-authored-by: Ashar, Pratik J <[email protected]> Signed-off-by: Denis Bakhvalov <[email protected]>
1 parent 24af4d8 commit aad7c1c

13 files changed

+1536
-5
lines changed

sycl/include/CL/sycl/intel/esimd.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include <CL/sycl/intel/esimd/esimd.hpp>
1414
#include <CL/sycl/intel/esimd/esimd_math.hpp>
15+
#include <CL/sycl/intel/esimd/esimd_memory.hpp>
1516
#include <CL/sycl/intel/esimd/esimd_view.hpp>
1617

1718
#ifdef __SYCL_DEVICE_ONLY__

sycl/include/CL/sycl/intel/esimd/detail/esimd_intrin.hpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#pragma once
1313

1414
#include <CL/sycl/intel/esimd/detail/esimd_types.hpp>
15+
#include <CL/sycl/intel/esimd/detail/esimd_util.hpp>
1516
#include <CL/sycl/intel/esimd/esimd_enum.hpp>
1617
#include <cstdint>
1718

@@ -140,11 +141,6 @@ class AccessorPrivateProxy {
140141
#endif
141142
};
142143

143-
constexpr unsigned int ElemsPerAddrDecoding(unsigned int ElemsPerAddrEncoded) {
144-
// encoding requires 2^ElemsPerAddrEncoded
145-
return (1 << ElemsPerAddrEncoded);
146-
}
147-
148144
/// read from a basic region of a vector, return a vector
149145
template <typename BT, int BN, typename RTy>
150146
vector_type_t<typename RTy::element_type, RTy::length>

0 commit comments

Comments
 (0)