diff --git a/experiments/rhode_island/hydra/launcher/ml_cloud_1gpu.yaml b/experiments/rhode_island/hydra/launcher/ml_cloud_1gpu.yaml new file mode 100644 index 00000000..eb6ff2de --- /dev/null +++ b/experiments/rhode_island/hydra/launcher/ml_cloud_1gpu.yaml @@ -0,0 +1,26 @@ +## +## Copyright (c) 2022 University of Tübingen. +## +## This file is part of hannah. +## See https://atreus.informatik.uni-tuebingen.de/ties/ai/hannah/hannah for further info. +## +## Licensed under the Apache License, Version 2.0 (the "License"); +## you may not use this file except in compliance with the License. +## You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## +defaults: + - submitit_slurm + - _self_ + +timeout_min: 3600 +gpus_per_task: 1 +cpus_per_gpu: 4 +partition: gpu-2080ti diff --git a/scripts/ml_cloud_ci.sh b/scripts/ml_cloud_ci.sh index 77613de0..3b5bb521 100755 --- a/scripts/ml_cloud_ci.sh +++ b/scripts/ml_cloud_ci.sh @@ -23,8 +23,11 @@ cd $WORK/hannah-ci git fetch if [[ -z "${CI_COMMIT_SHA}" ]]; then + git checkout main + git pull + export CI_COMMIT_SHA=`git rev-parse HEAD` - echo "CI_COMMIT_SHA is not defined, use current commit (${CI_COMMIT_SHA})" + echo "CI_COMMIT_SHA is not defined, use current head on main branch commit (${CI_COMMIT_SHA})" else git checkout $CI_COMMIT_SHA fi