From db8a73597081f45c09aac17cf63ceece135d06f8 Mon Sep 17 00:00:00 2001 From: yefeng Date: Tue, 22 Mar 2022 19:11:33 +0800 Subject: [PATCH] fix java api --- mindspore/lite/java/native/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mindspore/lite/java/native/CMakeLists.txt b/mindspore/lite/java/native/CMakeLists.txt index 24ca2f2635c..a02d677aae2 100644 --- a/mindspore/lite/java/native/CMakeLists.txt +++ b/mindspore/lite/java/native/CMakeLists.txt @@ -37,7 +37,11 @@ set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH) set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE BOTH) if(DEFINED ENV{MSLITE_ENABLE_SERVER_INFERENCE}) - set(MSLITE_ENABLE_SERVER_INFERENCE $ENV{MSLITE_ENABLE_SERVER_INFERENCE}) + set(MSLITE_ENABLE_PARALLEL_INFERENCE on) +endif() + +if(DEFINED ENV{MSLITE_ENABLE_PARALLEL_INFERENCE}) + set(MSLITE_ENABLE_PARALLEL_INFERENCE $ENV{MSLITE_ENABLE_PARALLEL_INFERENCE}) endif() if(ENABLE_VERBOSE)