Skip to content

Commit

Permalink
disable arm neon when using musa
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaishun Hu committed Dec 11, 2024
1 parent ead1612 commit 0eb719d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ggml/include/ggml-cuda.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#ifdef GGML_USE_MUSA
#undef __ARM_NEON
#endif

#include "ggml.h"
#include "ggml-backend.h"

Expand Down
4 changes: 4 additions & 0 deletions ggml/src/ggml-cuda/common.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#ifdef GGML_USE_MUSA
#undef __ARM_NEON
#endif

#include "ggml.h"
#include "ggml-cuda.h"

Expand Down
4 changes: 4 additions & 0 deletions ggml/src/ggml-cuda/opt-step-adamw.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#ifdef GGML_USE_MUSA
#undef __ARM_NEON
#endif

#include "ggml-impl.h"
#include "opt-step-adamw.cuh"

Expand Down

0 comments on commit 0eb719d

Please sign in to comment.