|
|
|
@@ -34,7 +34,7 @@ option(MSLITE_ENABLE_V0 "support v0 schema" on) |
|
|
|
option(MSLITE_ENABLE_FP16 "Whether to compile Fp16 operator" off) |
|
|
|
option(MSLITE_ENABLE_INT8 "Whether to compile Int8 operator" on) |
|
|
|
option(MSLITE_ENABLE_ACL "enable ACL" off) |
|
|
|
option(MSLITE_ENABLE_MODEL_ENCRYPTION "enable model encryption, only converter support" off) |
|
|
|
option(MSLITE_ENABLE_MODEL_ENCRYPTION "enable model encryption" off) |
|
|
|
option(MSLITE_ENABLE_SPARSE_COMPUTE "enable sparse kernel" off) |
|
|
|
option(MSLITE_ENABLE_RUNTIME_CONVERT "enable runtime convert" off) |
|
|
|
option(MSLITE_ENABLE_RUNTIME_GLOG "enable runtime glog" off) |
|
|
|
@@ -127,7 +127,8 @@ if(DEFINED ENV{MSLITE_MINDDATA_IMPLEMENT}) |
|
|
|
set(MSLITE_MINDDATA_IMPLEMENT $ENV{MSLITE_MINDDATA_IMPLEMENT}) |
|
|
|
endif() |
|
|
|
if(DEFINED ENV{MSLITE_ENABLE_MODEL_ENCRYPTION}) |
|
|
|
if((${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND PLATFORM_X86_64) OR (PLATFORM_ARM AND ANDROID_NDK_TOOLCHAIN_INCLUDED)) |
|
|
|
if((${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND PLATFORM_X86_64) |
|
|
|
OR((PLATFORM_ARM64 OR PLATFORM_ARM32) AND ANDROID_NDK_TOOLCHAIN_INCLUDED)) |
|
|
|
set(MSLITE_ENABLE_MODEL_ENCRYPTION $ENV{MSLITE_ENABLE_MODEL_ENCRYPTION}) |
|
|
|
else() |
|
|
|
set(MSLITE_ENABLE_MODEL_ENCRYPTION OFF) |
|
|
|
|