Skip to content

Commit

Permalink
Removed remaining libomp dep code
Browse files Browse the repository at this point in the history
  • Loading branch information
faressc committed Sep 23, 2024
1 parent 349e33a commit 4a134a1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ jobs:
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)"
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 4a134a1

Please sign in to comment.