Skip to content

Commit 4a771d5

Browse files
authored
ggml : delete duplicate logging macros (#531)
* remove duplicate macros * .
1 parent ef33685 commit 4a771d5

File tree

1 file changed

+4
-28
lines changed

1 file changed

+4
-28
lines changed

src/ggml.c

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -162,40 +162,16 @@ typedef void * thread_ret_t;
162162

163163
#define GGML_PRINT(...) printf(__VA_ARGS__)
164164

165+
//
166+
// end of logging block
167+
//
168+
165169
#ifdef GGML_USE_ACCELERATE
166170
// uncomment to use vDSP for soft max computation
167171
// note: not sure if it is actually faster
168172
//#define GGML_SOFT_MAX_ACCELERATE
169173
#endif
170174

171-
//
172-
// logging
173-
//
174-
175-
#if (GGML_DEBUG >= 1)
176-
#define GGML_PRINT_DEBUG(...) printf(__VA_ARGS__)
177-
#else
178-
#define GGML_PRINT_DEBUG(...)
179-
#endif
180-
181-
#if (GGML_DEBUG >= 5)
182-
#define GGML_PRINT_DEBUG_5(...) printf(__VA_ARGS__)
183-
#else
184-
#define GGML_PRINT_DEBUG_5(...)
185-
#endif
186-
187-
#if (GGML_DEBUG >= 10)
188-
#define GGML_PRINT_DEBUG_10(...) printf(__VA_ARGS__)
189-
#else
190-
#define GGML_PRINT_DEBUG_10(...)
191-
#endif
192-
193-
#define GGML_PRINT(...) printf(__VA_ARGS__)
194-
195-
//
196-
// end of logging block
197-
//
198-
199175
#if defined(_MSC_VER) || defined(__MINGW32__)
200176
#define GGML_ALIGNED_MALLOC(size) _aligned_malloc(size, GGML_MEM_ALIGN)
201177
#define GGML_ALIGNED_FREE(ptr) _aligned_free(ptr)

0 commit comments

Comments
 (0)