Skip to content

Commit 729e553

Browse files
committed
spirv APIs
1 parent c587b63 commit 729e553

File tree

7 files changed

+1432
-730
lines changed

7 files changed

+1432
-730
lines changed

cmake/FindDPCPP.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ endif()
6565
if("${DPCPP_SYCL_TARGET}" STREQUAL "intel_gpu_pvc" OR
6666
"${DPCPP_SYCL_TARGET}" STREQUAL "spir64" OR
6767
"${DPCPP_SYCL_TARGET}" STREQUAL "intel_gpu_bmg_g21")
68-
list(APPEND DPCPP_FLAGS "-Xspirv-translator;-spirv-ext=+SPV_INTEL_split_barrier")
68+
list(APPEND DPCPP_FLAGS "-Xspirv-translator;-spirv-ext=+SPV_INTEL_split_barrier,+SPV_INTEL_2d_block_io,+SPV_INTEL_subgroup_matrix_multiply_accumulate")
6969
endif()
7070

7171
if(UNIX)

include/cute/arch/copy_xe.hpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
#include <cute/arch/xe_copy_2B.hpp>
3434
#include <cute/arch/xe_copy_4B.hpp>
3535
#include <cute/arch/xe_copy_8B.hpp>
36-
#ifdef __SYCL_DEVICE_ONLY__
37-
#define SYCL_DEVICE_BUILTIN(x) SYCL_EXTERNAL extern "C" x
38-
#else
39-
#define SYCL_DEVICE_BUILTIN(x) inline x { assert(false); }
40-
#endif
4136

4237
// prefetch
4338
SYCL_DEVICE_BUILTIN(void __builtin_IB_lsc_prefetch_global_uchar(
@@ -70,6 +65,8 @@ SYCL_DEVICE_BUILTIN(void __builtin_IB_lsc_prefetch_global_ulong4(
7065
SYCL_DEVICE_BUILTIN(void __builtin_IB_lsc_prefetch_global_ulong8(
7166
const __attribute__((opencl_global)) uint64_t *base, int immElemOff,
7267
enum CacheControl cacheOpt));
68+
69+
#undef SYCL_DEVICE_OCL
7370
#undef SYCL_DEVICE_BUILTIN
7471

7572
#ifdef __SYCL_DEVICE_ONLY__

0 commit comments

Comments
 (0)