未验证 提交 15728a79 编写于 作者: iSerendipity's avatar iSerendipity 提交者: GitHub

[3rd-party] update openBLAS to fix compile error on Raptor Lake (#56617)

* [3rd-party] update openBLAS to fix compile error on Raptor Lake

* modify comments and remove the gcc version limit

* switch third-party/openblas to v0.3.23

* fix
上级 aa28e446
......@@ -20,16 +20,12 @@ set(CBLAS_SOURCE_DIR ${PADDLE_SOURCE_DIR}/third_party/openblas)
set(CBLAS_TAG v0.3.7)
set(CMAKE_VERBOSE_MAKEFILE 1)
# Why use v0.3.18? The IDG business line encountered a random openblas error,
# which can be resolved after upgrading openblas.
# And why compile when gcc>8.2? Please refer to
# https://github.com/spack/spack/issues/19932#issuecomment-733452619
# v0.3.18 only support gcc>=8.3 or gcc>=7.4
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.2
# OpenBLAS support Raptor Lake from v0.3.22
if(UNIX
AND NOT APPLE
AND NOT WITH_ROCM
AND NOT WITH_XPU)
# We only compile with openblas 0.3.18 when gcc >= 8.3
set(CBLAS_TAG v0.3.18)
set(CBLAS_TAG v0.3.23)
endif()
if(APPLE AND WITH_ARM)
......
Subproject commit 5f36f18148603facb6c3540e673610d6b24cbfbb
Subproject commit 394a9fbafe9010b76a2615c562204277a956eb52
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册