Skip to content

Commit

Permalink
[SYCL] Disable iqx on windows as WA (ggerganov#6435)
Browse files Browse the repository at this point in the history
* disable iqx on windows as WA

* array instead of global_memory
  • Loading branch information
airMeng authored Apr 3, 2024
1 parent f87f7b8 commit 5260486
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 116 deletions.
5 changes: 3 additions & 2 deletions ggml-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,11 @@ static_assert(sizeof(block_iq4_xs) == sizeof(ggml_half) + sizeof(uint16_t) + QK_

#define GGML_COMMON_IMPL
#elif defined(GGML_COMMON_IMPL_SYCL)

#include <cstdint>

#define GGML_TABLE_BEGIN(type, name, size) static dpct::global_memory<const type, 1> name(sycl::range<1>(size), {
#define GGML_TABLE_END() });
#define GGML_TABLE_BEGIN(type, name, size) static const type name[size] = {
#define GGML_TABLE_END() };

#define GGML_COMMON_IMPL
#endif
Expand Down
Loading

0 comments on commit 5260486

Please sign in to comment.