File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ set -euo pipefail
8
8
eval " $( $( which conda) shell.bash hook) " && conda deactivate && conda activate ci
9
9
10
10
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
12
13
echo ' ::endgroup::'
13
14
14
15
python test/smoke_test.py
Original file line number Diff line number Diff line change @@ -164,7 +164,8 @@ jobs:
164
164
echo '::endgroup::'
165
165
166
166
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"
168
169
echo '::endgroup::'
169
170
170
171
echo '::group::Run extended unittests'
Original file line number Diff line number Diff line change @@ -96,6 +96,12 @@ ENDFOREACH()
96
96
add_library (${PROJECT_NAME} SHARED ${ALL_SOURCES} )
97
97
target_link_libraries (${PROJECT_NAME} PRIVATE ${TORCH_LIBRARIES} )
98
98
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
+
99
105
if (WITH_PNG)
100
106
target_link_libraries (${PROJECT_NAME} PRIVATE ${PNG_LIBRARY} )
101
107
endif ()
You can’t perform that action at this time.
0 commit comments