Skip to content

Commit

Permalink
Removed now unneeded code for downloading libomp dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
faressc committed Sep 23, 2024
1 parent 349e33a commit 5cd0212
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ jobs:
brew install osxutils ninja
echo "brew prefix: $(brew --prefix)"
elif [ "${{ matrix.name }}" == "macOS-arm64" ]; then
if [ "$(uname -m)" == "arm64" ]; then
brew install libomp
fi;
brew install osxutils ninja
echo "brew prefix: $(brew --prefix)"
elif [ "${{ matrix.name }}" == "Windows-x86_64" ]; then
Expand Down
1 change: 0 additions & 1 deletion cmake/SetupLibTorch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ find_package(Torch REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}")

# Suppress warnings by setting -w flag as a linker option
# target_link_directories(torch INTERFACE "/opt/homebrew/opt/libomp/lib")
target_link_options(torch INTERFACE "-w")
target_link_options(torch_library INTERFACE "-w")

Expand Down
2 changes: 0 additions & 2 deletions cmake/install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,10 @@ elseif(APPLE)
if (CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64")
list(APPEND OSX_RPATHS "/opt/intel/oneapi/mkl/latest/lib")
elseif (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64")
list(APPEND OSX_RPATHS "/opt/homebrew/opt/libomp/lib")
else()
if (CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64")
list(APPEND OSX_RPATHS "/opt/intel/oneapi/mkl/latest/lib")
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")
list(APPEND OSX_RPATHS "/opt/homebrew/opt/libomp/lib")
else()
message(FATAL_ERROR "CMAKE_OSX_ARCHITECTURES and CMAKE_HOST_SYSTEM_PROCESSOR not defined.")
endif()
Expand Down

0 comments on commit 5cd0212

Please sign in to comment.