mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Summary: Context: https://github.com/pytorch/pytorch/pull/53299#discussion_r587882857 These are the only hand-written parts of this diff: - the addition to `.github/workflows/lint.yml` - the file endings changed in these four files (to appease FB-internal land-blocking lints): - `GLOSSARY.md` - `aten/src/ATen/core/op_registration/README.md` - `scripts/README.md` - `torch/csrc/jit/codegen/fuser/README.md` The rest was generated by running this command (on macOS): ``` git grep -I -l ' $' -- . ':(exclude)**/contrib/**' ':(exclude)third_party' | xargs gsed -i 's/ *$//' ``` I looked over the auto-generated changes and didn't see anything that looked problematic. Pull Request resolved: https://github.com/pytorch/pytorch/pull/53406 Test Plan: This run (after adding the lint but before removing existing trailing spaces) failed: - https://github.com/pytorch/pytorch/runs/2043032377 This run (on the tip of this PR) succeeded: - https://github.com/pytorch/pytorch/runs/2043296348 Reviewed By: walterddr, seemethere Differential Revision: D26856620 Pulled By: samestep fbshipit-source-id: 3f0de7f7c2e4b0f1c089eac9b5085a58dd7e0d97
37 lines
1.4 KiB
CMake
37 lines
1.4 KiB
CMake
# Find the vecLib libraries as part of Accelerate.framework or as standalone framework
|
|
#
|
|
# The following are set after configuration is done:
|
|
# VECLIB_FOUND
|
|
# vecLib_INCLUDE_DIR
|
|
# vecLib_LINKER_LIBS
|
|
|
|
|
|
if(NOT APPLE)
|
|
return()
|
|
endif()
|
|
|
|
set(__veclib_include_suffix "Frameworks/vecLib.framework/Versions/Current/Headers")
|
|
|
|
find_path(vecLib_INCLUDE_DIR vecLib.h
|
|
DOC "vecLib include directory"
|
|
PATHS /System/Library/Frameworks/Accelerate.framework/Versions/Current/${__veclib_include_suffix}
|
|
/System/Library/${__veclib_include_suffix}
|
|
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Headers/
|
|
${CMAKE_OSX_SYSROOT}/System/Library/Frameworks/Accelerate.framework/Versions/Current/${__veclib_include_suffix}
|
|
NO_DEFAULT_PATH)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(vecLib DEFAULT_MSG vecLib_INCLUDE_DIR)
|
|
|
|
if(VECLIB_FOUND)
|
|
if(vecLib_INCLUDE_DIR MATCHES "^/System/Library/Frameworks/vecLib.framework.*")
|
|
set(vecLib_LINKER_LIBS -lcblas "-framework vecLib")
|
|
message(STATUS "Found standalone vecLib.framework")
|
|
else()
|
|
set(vecLib_LINKER_LIBS -lcblas "-framework Accelerate")
|
|
message(STATUS "Found vecLib as part of Accelerate.framework")
|
|
endif()
|
|
|
|
mark_as_advanced(vecLib_INCLUDE_DIR)
|
|
endif()
|