From: Hyunsung Lee Date: Fri, 6 Oct 2023 14:01:42 +0000 (+0900) Subject: ggml : delete duplicate logging macros (#531) X-Git-Tag: upstream/0.0.1642~1231 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=4a771d5afedab53abdd3a9af0afd35c05b7ad205;p=pkg%2Fggml%2Fsources%2Fggml ggml : delete duplicate logging macros (#531) * remove duplicate macros * . --- diff --git a/src/ggml.c b/src/ggml.c index b7206908..9c7a71c1 100644 --- a/src/ggml.c +++ b/src/ggml.c @@ -162,40 +162,16 @@ typedef void * thread_ret_t; #define GGML_PRINT(...) printf(__VA_ARGS__) +// +// end of logging block +// + #ifdef GGML_USE_ACCELERATE // uncomment to use vDSP for soft max computation // note: not sure if it is actually faster //#define GGML_SOFT_MAX_ACCELERATE #endif -// -// logging -// - -#if (GGML_DEBUG >= 1) -#define GGML_PRINT_DEBUG(...) printf(__VA_ARGS__) -#else -#define GGML_PRINT_DEBUG(...) -#endif - -#if (GGML_DEBUG >= 5) -#define GGML_PRINT_DEBUG_5(...) printf(__VA_ARGS__) -#else -#define GGML_PRINT_DEBUG_5(...) -#endif - -#if (GGML_DEBUG >= 10) -#define GGML_PRINT_DEBUG_10(...) printf(__VA_ARGS__) -#else -#define GGML_PRINT_DEBUG_10(...) -#endif - -#define GGML_PRINT(...) printf(__VA_ARGS__) - -// -// end of logging block -// - #if defined(_MSC_VER) || defined(__MINGW32__) #define GGML_ALIGNED_MALLOC(size) _aligned_malloc(size, GGML_MEM_ALIGN) #define GGML_ALIGNED_FREE(ptr) _aligned_free(ptr)