Skip to content

Commit 96031fa

Browse files
authored
Merge branch 'main' into patch-3
2 parents 2a52dd9 + 0be6c7e commit 96031fa

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/scripts/unittest.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ set -euo pipefail
88
eval "$($(which conda) shell.bash hook)" && conda deactivate && conda activate ci
99

1010
echo '::group::Install testing utilities'
11-
pip install --progress-bar=off pytest pytest-mock pytest-cov expecttest!=0.2.0
11+
# TODO: remove the <8 constraint on pytest when https://github.com/pytorch/vision/issues/8238 is closed
12+
pip install --progress-bar=off "pytest<8" pytest-mock pytest-cov expecttest!=0.2.0
1213
echo '::endgroup::'
1314

1415
python test/smoke_test.py

.github/workflows/tests.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ jobs:
164164
echo '::endgroup::'
165165
166166
echo '::group::Install testing utilities'
167-
pip install --progress-bar=off pytest
167+
# TODO: remove the <8 constraint on pytest when https://github.com/pytorch/vision/issues/8238 is closed
168+
pip install --progress-bar=off "pytest<8"
168169
echo '::endgroup::'
169170
170171
echo '::group::Run extended unittests'

CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ ENDFOREACH()
9696
add_library(${PROJECT_NAME} SHARED ${ALL_SOURCES})
9797
target_link_libraries(${PROJECT_NAME} PRIVATE ${TORCH_LIBRARIES})
9898

99+
if(WITH_MPS)
100+
find_library(metal NAMES Metal)
101+
find_library(foundation NAMES Foundation)
102+
target_link_libraries(${PROJECT_NAME} PRIVATE ${metal} ${foundation})
103+
endif()
104+
99105
if (WITH_PNG)
100106
target_link_libraries(${PROJECT_NAME} PRIVATE ${PNG_LIBRARY})
101107
endif()

0 commit comments

Comments
 (0)