Skip to content

Commit

Permalink
Add swap for pytorch github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HGuillemet committed May 5, 2024
1 parent db813d6 commit 8d13ded
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/actions/deploy-ubuntu/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,13 @@ runs:
$SUDO swapon /swapfile
fi
if [[ "$CI_DEPLOY_MODULE" == "pytorch" ]]; then
$SUDO fallocate -l 4GB /swapfile
$SUDO chmod 600 /swapfile
$SUDO mkswap /swapfile
$SUDO swapon /swapfile
fi
if [[ "$CI_DEPLOY_PLATFORM" == "linux-armhf" ]] && [[ "$CI_DEPLOY_MODULE" == "flycapture" ]]; then
echo Installing FlyCapture amdhf
python3 -m gdown.cli https://drive.google.com/uc?id=16NuUBs2MXQpVYqzDCEr9KdMng-6rHuDI
Expand Down

0 comments on commit 8d13ded

Please sign in to comment.