update cmake for FT openbals version. (#29382)

revert-31562-mean
Wilber 5 years ago committed by GitHub
parent 7c508d8668
commit cff93b52a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,11 +19,7 @@ SET(CBLAS_SOURCE_DIR ${THIRD_PARTY_PATH}/openblas/src/extern_openblas)
SET(CBLAS_INSTALL_DIR ${THIRD_PARTY_PATH}/install/openblas) SET(CBLAS_INSTALL_DIR ${THIRD_PARTY_PATH}/install/openblas)
SET(CBLAS_REPOSITORY ${GIT_URL}/xianyi/OpenBLAS.git) SET(CBLAS_REPOSITORY ${GIT_URL}/xianyi/OpenBLAS.git)
SET(CBLAS_TAG v0.3.7) SET(CBLAS_TAG v0.3.7)
IF(WITH_ARM)
# Under the FT2000 architecture, the calculation result of blas.sgemm in openblas 0.3+ is wrong,
# so version 0.2 is used by default.
SET(CBLAS_TAG v0.2.18)
ENDIF()
cache_third_party(extern_openblas cache_third_party(extern_openblas
REPOSITORY ${CBLAS_REPOSITORY} REPOSITORY ${CBLAS_REPOSITORY}
TAG ${CBLAS_TAG} TAG ${CBLAS_TAG}

@ -321,6 +321,9 @@ function(version version_file)
file(APPEND ${version_file} file(APPEND ${version_file}
"WITH_TENSORRT: ${TENSORRT_FOUND}\n" "TensorRT version: v${TENSORRT_MAJOR_VERSION}\n") "WITH_TENSORRT: ${TENSORRT_FOUND}\n" "TensorRT version: v${TENSORRT_MAJOR_VERSION}\n")
endif() endif()
if(WITH_LITE)
file(APPEND ${version_file} "WITH_LITE: ${WITH_LITE}\n" "LITE_GIT_TAG: ${LITE_GIT_TAG}\n"})
endif()
endfunction() endfunction()
version(${PADDLE_INSTALL_DIR}/version.txt) version(${PADDLE_INSTALL_DIR}/version.txt)

Loading…
Cancel
Save