Skip to content

Commit

Permalink
Add mmcv specific patch
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroPsota committed Dec 4, 2024
1 parent eab4377 commit 3036ef3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package_specific.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,9 @@ if [[ $REPO == "facebookresearch/fairseq" ]]; then
pip install cython
patch -p0 < "$SCRIPT_DIR"/package_specific/fairseq_cub.patch
fi

if [[ $REPO == "open-mmlab/mmcv" ]] \
&& [[ $TORCH_VERSION == "1.12.1" ]] \
&& [[ $COMPUTE_PLATFORM == "cu102" ]]; then
patch -p0 < "$SCRIPT_DIR"/package_specific/mmcv_cpp14.patch
fi
8 changes: 8 additions & 0 deletions package_specific/mmcv_cpp14.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--- setup.py
+++ setup.py
@@ -204 +204 @@
- if parse_version(torch.__version__) <= parse_version('1.12.1'):
+ if parse_version(torch.__version__) <= parse_version('1.12.2'):
@@ -441 +441 @@
- if parse_version(torch.__version__) <= parse_version('1.12.1'):
+ if parse_version(torch.__version__) <= parse_version('1.12.2'):

0 comments on commit 3036ef3

Please sign in to comment.