review: put qnn's internal log inside preprocessor diretive
This commit is contained in:
parent
94ee775058
commit
5d691c6cd0
|
|
@ -1277,6 +1277,7 @@ static void ggml_qnn_logcallback(const char * fmt,
|
||||||
uint64_t timestamp,
|
uint64_t timestamp,
|
||||||
va_list argp) {
|
va_list argp) {
|
||||||
|
|
||||||
|
#if GGML_QNN_DEBUG
|
||||||
static std::mutex log_mutex;
|
static std::mutex log_mutex;
|
||||||
static unsigned char s_ggml_qnn_logbuf[GGML_QNN_LOGBUF_LEN];
|
static unsigned char s_ggml_qnn_logbuf[GGML_QNN_LOGBUF_LEN];
|
||||||
|
|
||||||
|
|
@ -1303,7 +1304,6 @@ static void ggml_qnn_logcallback(const char * fmt,
|
||||||
}
|
}
|
||||||
|
|
||||||
double ms = (double) timestamp / 1000000.0;
|
double ms = (double) timestamp / 1000000.0;
|
||||||
#if GGML_QNN_DEBUG
|
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock(log_mutex);
|
std::lock_guard<std::mutex> lock(log_mutex);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue