Skip to content

Commit 035be36

Browse files
authored
Upgrade openblas version (#69791)
1 parent c44e040 commit 035be36

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

cmake/external/openblas.cmake

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,11 @@ set(CBLAS_INSTALL_DIR ${THIRD_PARTY_PATH}/install/openblas)
1919
set(CBLAS_SOURCE_DIR ${PADDLE_SOURCE_DIR}/third_party/openblas)
2020
set(CBLAS_TAG v0.3.7)
2121

22-
# Why use v0.3.18? The IDG business line encountered a random openblas error,
23-
# which can be resolved after upgrading openblas.
24-
# And why compile when gcc>8.2? Please refer to
25-
# https://github.com/spack/spack/issues/19932#issuecomment-733452619
26-
# v0.3.18 only support gcc>=8.3 or gcc>=7.4
27-
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
28-
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.2
22+
if(UNIX
23+
AND NOT APPLE
24+
AND NOT WITH_ROCM
2925
AND NOT WITH_XPU)
30-
# We only compile with openblas 0.3.18 when gcc >= 8.3
31-
set(CBLAS_TAG v0.3.18)
26+
set(CBLAS_TAG v0.3.28)
3227
endif()
3328

3429
if(APPLE AND WITH_ARM)

0 commit comments

Comments
 (0)