!11594 [MS][LITE]Fix illegal instruction error on devices like p8 and p20

From: @probiotics_53
Reviewed-by: @hangangqiang,@zhang_xue_tong
Signed-off-by: @hangangqiang
pull/11594/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 09acd1680f

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.14)
project(Lite)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.3.0)
message(FATAL_ERROR "GCC vesion ${CMAKE_CXX_COMPILER_VERSION} must not be less than 7.3.0")
message(FATAL_ERROR "GCC version ${CMAKE_CXX_COMPILER_VERSION} must not be less than 7.3.0")
endif()
option(MS_VERSION_MAJOR "major version" 0)
@ -189,7 +189,7 @@ endif()
if(PLATFORM_ARM32 OR PLATFORM_ARM64)
if(NOT DEFINED ENV{ANDROID_NDK})
message(FATAL_ERROR "env ANDROID_NDK should be setted for ARM compile")
message(FATAL_ERROR "env ANDROID_NDK should be set for ARM compile")
endif()
add_compile_definitions(ENABLE_ARM)
endif()
@ -199,9 +199,6 @@ if(PLATFORM_ARM32)
endif()
if(PLATFORM_ARM64)
add_compile_definitions(ENABLE_ARM64)
if(ENABLE_FP16)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv8.2-a+dotprod+fp16")
endif()
endif()
if(PLATFORM_ARM32 OR PLATFORM_ARM64)

Loading…
Cancel
Save