From c76c6da543fe414f0eabacabaa093469e81831ad Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期四, 14 三月 2024 15:37:47 +0800
Subject: [PATCH] update offline-stream
---
runtime/onnxruntime/src/offline-stream.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/runtime/onnxruntime/src/offline-stream.cpp b/runtime/onnxruntime/src/offline-stream.cpp
index abe13ae..9a3b07a 100644
--- a/runtime/onnxruntime/src/offline-stream.cpp
+++ b/runtime/onnxruntime/src/offline-stream.cpp
@@ -38,6 +38,10 @@
if(use_gpu){
#ifdef USE_GPU
asr_handle = make_unique<ParaformerTorch>();
+ #else
+ LOG(ERROR) <<"GPU is not supported! CPU will be used! If you want to use GPU, please add -DGPU=ON when cmake";
+ asr_handle = make_unique<Paraformer>();
+ use_gpu = false;
#endif
}else{
asr_handle = make_unique<Paraformer>();
--
Gitblit v1.9.1