-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/adarmenov/#208-wmma
- Loading branch information
Showing
10 changed files
with
220 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,64 @@ | ||
version: 2.1 | ||
jobs: | ||
build: | ||
|
||
executors: | ||
gcc-build-env: | ||
docker: | ||
- image: gmao/ubuntu20-geos-env-mkl:6.0.16-openmpi_4.0.5-gcc_10.2.0 | ||
resource_class: xlarge | ||
- image: gmao/ubuntu20-geos-env-mkl:v6.0.22-openmpi_4.0.5-gcc_10.2.0 | ||
auth: | ||
username: $DOCKERHUB_USER | ||
password: $DOCKERHUB_AUTH_TOKEN | ||
environment: | ||
OMPI_ALLOW_RUN_AS_ROOT: 1 | ||
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 | ||
OMPI_MCA_btl_vader_single_copy_mechanism: none | ||
#XLARGE# resource_class: xlarge | ||
resource_class: medium | ||
|
||
workflows: | ||
version: 2.1 | ||
build-test: | ||
jobs: | ||
- build-GEOSgcm: | ||
context: | ||
- docker-hub-creds | ||
|
||
jobs: | ||
build-GEOSgcm: | ||
executor: gcc-build-env | ||
working_directory: /root/project | ||
steps: | ||
- checkout | ||
- checkout: | ||
path: GEOSgcm | ||
- run: | ||
name: "Versions etc" | ||
command: mpirun --version && gfortran --version && echo $BASEDIR && pwd && ls | ||
- run: | ||
name: "Mepo clone external repos" | ||
command: | | ||
mepo init | ||
cd ${CIRCLE_WORKING_DIRECTORY}/GEOSgcm | ||
mepo clone | ||
mepo develop GEOSgcm_App GEOSgcm_GridComp | ||
mepo status | ||
- run: | ||
name: "Mepo checkout-if-exists" | ||
command: | | ||
cd ${CIRCLE_WORKING_DIRECTORY}/GEOSgcm | ||
echo "${CIRCLE_BRANCH}" | ||
if [ "${CIRCLE_BRANCH}" != "develop" ] && [ "${CIRCLE_BRANCH}" != "master" ] && [ "${CIRCLE_BRANCH}" != "main" ] | ||
then | ||
mepo checkout-if-exists ${CIRCLE_BRANCH} | ||
fi | ||
mepo status | ||
- run: | ||
name: "CMake" | ||
command: | | ||
cd ${CIRCLE_WORKING_DIRECTORY}/GEOSgcm | ||
mkdir build | ||
cd build | ||
cmake .. -DBASEDIR=$BASEDIR/Linux -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_BUILD_TYPE=Debug | ||
- run: | ||
name: "Build" | ||
command: | | ||
cd build | ||
make -j"$(nproc)" install | ||
cd ${CIRCLE_WORKING_DIRECTORY}/GEOSgcm/build | ||
#XLARGE# make -j"$(nproc)" install | ||
make -j4 install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build Tests | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, labeled, unlabeled] | ||
|
||
jobs: | ||
build_gcm: | ||
name: Build GEOSgcm | ||
if: "!contains(github.event.pull_request.labels.*.name, '0 diff trivial')" | ||
runs-on: ubuntu-latest | ||
container: | ||
image: gmao/ubuntu20-geos-env-mkl:v6.0.22-openmpi_4.0.5-gcc_10.2.0 | ||
credentials: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
env: | ||
LANGUAGE: en_US.UTF-8 | ||
LC_ALL: en_US.UTF-8 | ||
LANG: en_US.UTF-8 | ||
LC_TYPE: en_US.UTF-8 | ||
OMPI_ALLOW_RUN_AS_ROOT: 1 | ||
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 | ||
OMPI_MCA_btl_vader_single_copy_mechanism: none | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Checkout GCM | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- name: Versions etc. | ||
run: | | ||
gfortran --version | ||
mpirun --version | ||
echo $BASEDIR | ||
- name: Mepo clone external repos | ||
run: | | ||
mepo clone | ||
mepo status | ||
mepo develop GEOSgcm_GridComp GEOSgcm_App | ||
mepo status | ||
- name: Update other branches | ||
if: | ||
"!contains('refs/heads/main,refs/heads/develop', github.ref)" | ||
run: | | ||
mepo checkout-if-exists ${GITHUB_HEAD_REF} | ||
mepo status | ||
- name: CMake | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. -DBASEDIR=$BASEDIR/Linux -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_BUILD_TYPE=Debug -DMPIEXEC_PREFLAGS='--oversubscribe' | ||
- name: Build | ||
run: | | ||
cd build | ||
make -j4 install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.