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 and tybalex committed Apr 17, 2024
1 parent 4885737 commit d9b0606
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 d9b0606

Please sign in to comment.