소스 검색

fix profiling crash (#15072)

rmatif 5 달 전
부모
커밋
756cfea826
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      ggml/src/ggml-opencl/ggml-opencl.cpp

+ 1 - 0
ggml/src/ggml-opencl/ggml-opencl.cpp

@@ -602,6 +602,7 @@ struct ggml_backend_opencl_context {
         if (ref_count == 0) {
 #ifdef GGML_OPENCL_PROFILING
             write_profiling_info();
+            profiling_info.clear();
 #endif
         }
     }