Skip to content

Commit 4a8aef4

Browse files
authored
update cmake for FT openbals version (#29383)
1 parent 818de88 commit 4a8aef4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

cmake/external/openblas.cmake

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ SET(CBLAS_SOURCE_DIR ${THIRD_PARTY_PATH}/openblas/src/extern_openblas)
1919
SET(CBLAS_INSTALL_DIR ${THIRD_PARTY_PATH}/install/openblas)
2020
SET(CBLAS_REPOSITORY ${GIT_URL}/xianyi/OpenBLAS.git)
2121
SET(CBLAS_TAG v0.3.7)
22-
IF(WITH_ARM)
23-
# Under the FT2000 architecture, the calculation result of blas.sgemm in openblas 0.3+ is wrong,
24-
# so version 0.2 is used by default.
25-
SET(CBLAS_TAG v0.2.18)
26-
ENDIF()
22+
2723
cache_third_party(extern_openblas
2824
REPOSITORY ${CBLAS_REPOSITORY}
2925
TAG ${CBLAS_TAG}

cmake/inference_lib.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ function(version version_file)
321321
file(APPEND ${version_file}
322322
"WITH_TENSORRT: ${TENSORRT_FOUND}\n" "TensorRT version: v${TENSORRT_MAJOR_VERSION}\n")
323323
endif()
324+
if(WITH_LITE)
325+
file(APPEND ${version_file} "WITH_LITE: ${WITH_LITE}\n" "LITE_GIT_TAG: ${LITE_GIT_TAG}\n"})
326+
endif()
324327

325328
endfunction()
326329
version(${PADDLE_INSTALL_DIR}/version.txt)

0 commit comments

Comments
 (0)