Skip to content

Commit 1b07edf

Browse files
committed
ggml : trying stuff (wip)
ggml-ci
1 parent 819b7d7 commit 1b07edf

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

ggml/src/ggml-cpu/ggml-cpu-impl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,10 @@ struct ggml_compute_params {
8686

8787
#ifdef _MSC_VER
8888

89-
typedef uint16_t ggml_fp16_internal_t;
90-
9189
#define ggml_vld1q_u32(w,x,y,z) { ((w) + ((uint64_t)(x) << 32)), ((y) + ((uint64_t)(z) << 32)) }
9290

9391
#else
9492

95-
typedef __fp16 ggml_fp16_internal_t;
96-
9793
#define ggml_vld1q_u32(w,x,y,z) { (w), (x), (y), (z) }
9894

9995
#endif // _MSC_VER

ggml/src/ggml-impl.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -312,14 +312,8 @@ GGML_API void ggml_aligned_free(void * ptr, size_t size);
312312
// FP16 to FP32 conversion
313313

314314
#if defined(__ARM_NEON)
315-
#if defined(_MSC_VER) || (defined(__CUDACC__) && __CUDACC_VER_MAJOR__ <= 11)
316-
typedef uint16_t ggml_fp16_internal_t;
317-
#else
318-
typedef __fp16 ggml_fp16_internal_t;
319-
#endif
320-
#endif
315+
typedef __fp16 ggml_fp16_internal_t;
321316

322-
#if defined(__ARM_NEON) && !defined(_MSC_VER) && !(defined(__CUDACC__) && __CUDACC_VER_MAJOR__ <= 11)
323317
#define GGML_COMPUTE_FP16_TO_FP32(x) ggml_compute_fp16_to_fp32(x)
324318
#define GGML_COMPUTE_FP32_TO_FP16(x) ggml_compute_fp32_to_fp16(x)
325319

@@ -485,7 +479,7 @@ GGML_API void ggml_aligned_free(void * ptr, size_t size);
485479
#define GGML_COMPUTE_FP16_TO_FP32(x) ggml_compute_fp16_to_fp32(x)
486480
#define GGML_COMPUTE_FP32_TO_FP16(x) ggml_compute_fp32_to_fp16(x)
487481

488-
#endif // defined(__ARM_NEON) && (!defined(__MSC_VER)
482+
#endif // defined(__ARM_NEON)
489483

490484
// precomputed f32 table for f16 (256 KB)
491485
// defined in ggml.c, initialized in ggml_init()

0 commit comments

Comments
 (0)