File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,14 @@ CFLAGS = -I. $(OPT) -std=c11 -fPIC
49
49
CXXFLAGS = -I. -I./examples $(OPT ) -std=c++11 -fPIC
50
50
LDFLAGS =
51
51
52
+ # clock_gettime came in POSIX.1b (1993)
53
+ # CLOCK_MONOTONIC came in POSIX.1-2001 / SUSv3 as optional
54
+ # posix_memalign came in POSIX.1-2001 / SUSv3
55
+ # M_PI is an XSI extension since POSIX.1-2001 / SUSv3, came in XPG1 (1985)
56
+ # ref: https://github.com/ggerganov/whisper.cpp/pull/1027
57
+ CFLAGS += -D_XOPEN_SOURCE=600
58
+ CXXFLAGS += -D_XOPEN_SOURCE=600
59
+
52
60
ifdef LLAMA_DEBUG
53
61
CFLAGS += -O0 -g
54
62
CXXFLAGS += -O0 -g
Original file line number Diff line number Diff line change 1
- #define _GNU_SOURCE // Defines CLOCK_MONOTONIC on Linux
2
1
#define _CRT_SECURE_NO_DEPRECATE // Disables ridiculous "unsafe" warnigns on Windows
3
2
4
3
#include "ggml.h"
@@ -13387,8 +13386,7 @@ static void ggml_compute_forward_conv_2d_sk_p0_f16_f32(
13387
13386
const int nk1 = ne01;
13388
13387
13389
13388
// size of the convolution row - the kernel size unrolled across all channels
13390
- // round-up so it is more suitable for SIMD
13391
- const int ew0 = ggml_up32(nk0*nk1*ne02);
13389
+ const int ew0 = nk0*nk1*ne02;
13392
13390
13393
13391
GGML_ASSERT(nb00 == sizeof(ggml_fp16_t));
13394
13392
GGML_ASSERT(nb10 == sizeof(float));
You can’t perform that action at this time.
0 commit comments