sycl: Battlemage AOT build via spir64_gen + MMQ subgroup annotations (llama/22147)
* sycl: Battlemage AOT build via spir64_gen + MMQ subgroup annotations Signed-off-by: Chun Tao <chun.tao@intel.com> * Remove unneeded/unnecessary comments and annotations The MMQ subgroup annotations added are on functions gated behind ggml_sycl_supports_mmq(). Revisit the need for these annotations when that function changes. --------- Signed-off-by: Chun Tao <chun.tao@intel.com> Co-authored-by: Chun Tao <chun.tao@intel.com> Co-authored-by: Todd Malsbary <todd.malsbary@intel.com>
This commit is contained in:
parent
197c62c10b
commit
63f7883206
|
|
@ -135,7 +135,11 @@ endif()
|
||||||
|
|
||||||
if (GGML_SYCL_TARGET STREQUAL "INTEL")
|
if (GGML_SYCL_TARGET STREQUAL "INTEL")
|
||||||
add_compile_definitions(GGML_SYCL_WARP_SIZE=16)
|
add_compile_definitions(GGML_SYCL_WARP_SIZE=16)
|
||||||
target_link_options(ggml-sycl PRIVATE -Xs -ze-intel-greater-than-4GB-buffer-required)
|
if (NOT GGML_SYCL_DEVICE_ARCH)
|
||||||
|
target_link_options(ggml-sycl PRIVATE -Xs -ze-intel-greater-than-4GB-buffer-required)
|
||||||
|
else()
|
||||||
|
message(STATUS "Skipping -ze-intel-greater-than-4GB-buffer-required for spir64_gen AOT")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Link against Intel oneMKL
|
# Link against Intel oneMKL
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||||
|
|
@ -160,7 +164,15 @@ if (GGML_SYCL_HOST_MEM_FALLBACK)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (GGML_SYCL_DEVICE_ARCH)
|
if (GGML_SYCL_DEVICE_ARCH)
|
||||||
target_compile_options(ggml-sycl PRIVATE -Xsycl-target-backend --offload-arch=${GGML_SYCL_DEVICE_ARCH})
|
message(STATUS "GGML_SYCL_DEVICE_ARCH=${GGML_SYCL_DEVICE_ARCH} (AOT via spir64_gen)")
|
||||||
target_link_options(ggml-sycl PRIVATE -Xsycl-target-backend --offload-arch=${GGML_SYCL_DEVICE_ARCH})
|
target_compile_options(
|
||||||
|
ggml-sycl PRIVATE
|
||||||
|
-fsycl-targets=spir64_gen
|
||||||
|
"SHELL:-Xsycl-target-backend=spir64_gen \"-device ${GGML_SYCL_DEVICE_ARCH}\""
|
||||||
|
)
|
||||||
|
target_link_options(
|
||||||
|
ggml-sycl PRIVATE
|
||||||
|
-fsycl-targets=spir64_gen
|
||||||
|
"SHELL:-Xsycl-target-backend=spir64_gen \"-device ${GGML_SYCL_DEVICE_ARCH}\""
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue