mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
update sleef for disable libm on Windows [submodule Sleef] (#142245)
This PR is implement of RFC: https://github.com/pytorch/pytorch/issues/141946 Changes: 1. Update `Sleef` to contains it's PRS: https://github.com/shibatch/sleef/pull/603 2. Set `SLEEF_BUILD_WITH_LIBM` to `OFF`, it is turn off CMake find_library(libm) of `Sleef`. Pull Request resolved: https://github.com/pytorch/pytorch/pull/142245 Approved by: https://github.com/EikanWang, https://github.com/atalman Co-authored-by: Eikan Wang <eikan.wang@intel.com>
This commit is contained in:
parent
6cfc081675
commit
c9afa00a85
|
|
@ -481,6 +481,9 @@ if(NOT EMSCRIPTEN AND NOT INTERN_BUILD_MOBILE AND NOT (MSVC AND CMAKE_SYSTEM_PRO
|
|||
set(SLEEF_BUILD_GNUABI_LIBS OFF CACHE BOOL "Don't build sleef gnuabi libs" FORCE)
|
||||
set(SLEEF_BUILD_TESTS OFF CACHE BOOL "Don't build sleef tests" FORCE)
|
||||
set(SLEEF_BUILD_SCALAR_LIB OFF CACHE BOOL "libsleefscalar will be built." FORCE)
|
||||
if(WIN32)
|
||||
set(SLEEF_BUILD_WITH_LIBM OFF CACHE BOOL "Don't build sleef with libm for Windows." FORCE)
|
||||
endif()
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64" OR CMAKE_OSX_ARCHITECTURES MATCHES "arm64")
|
||||
set(DISABLE_SVE ON CACHE BOOL "Xcode's clang-12.5 crashes while trying to compile SVE code" FORCE)
|
||||
|
|
|
|||
2
third_party/sleef
vendored
2
third_party/sleef
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit 60e76d2bce17d278b439d9da17177c8f957a9e9b
|
||||
Subproject commit 56e1f79cb140fb9326d612d0be06b5250565cade
|
||||
Loading…
Reference in New Issue
Block a user