Skip to content

Commit

Permalink
Add githubCI
Browse files Browse the repository at this point in the history
  • Loading branch information
nikizadehgfdl committed Nov 27, 2023
1 parent e507da1 commit 1e974ae
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/basic_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: basic tests
run-name: ${{ github.actor }} is learning GitHub Actions
on: [push]
jobs:
check-bats-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '14'
- run: npm install -g bats
- run: bats -v
6 changes: 6 additions & 0 deletions builds/lscgpu50/gnu11.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module load gcc/11.3.0
module load cuda/11.7
module load openmpi/4.1.4
module load hdf5/1.12.2 netcdf/4.9.0
export MPICC=$(which mpicc)

14 changes: 7 additions & 7 deletions builds/lscgpu50/gnu7.mk → builds/lscgpu50/gnu11.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
############
# commands #
############
FC = gfortran
CC = gcc
FC = mpif90
CC = mpicc
CXX = g++
LD = gfortran $(MAIN_PROGRAM)
LD = mpif90 $(MAIN_PROGRAM)

#########
# flags #
Expand All @@ -23,7 +23,7 @@ MAKEFLAGS += --jobs=$(shell grep '^processor' /proc/cpuinfo | wc -l)
# Macro for Fortran preprocessor
FPPFLAGS = $(INCLUDES)
# Fortran Compiler flags for the NetCDF library
FPPFLAGS += -I/opt/pgi/18.10/linux86-64/18.10/mpi/openmpi/include
#FPPFLAGS += -I/opt/pgi/18.10/linux86-64/18.10/mpi/openmpi/include
#FPPFLAGS += -I/opt/netcdf/4.6.1/PGI/include

FFLAGS := -fcray-pointer -fdefault-double-8 -fdefault-real-8 -Waliasing -ffree-line-length-none -fno-range-check
Expand All @@ -38,8 +38,8 @@ FFLAGS_VERBOSE =

CFLAGS := -D__IFC
CFLAGS += $(FPPFLAGS)
#CFLAGS += $(shell pkg-config --cflags-only-I netcdf)
#CFLAGS += $(shell pkg-config --cflags-only-I mpich)
CFLAGS += $(shell pkg-config --cflags-only-I netcdf)
CFLAGS += $(shell pkg-config --cflags-only-I mpich)
CFLAGS_OPT = -O2
CFLAGS_OPENMP = -fopenmp
CFLAGS_DEBUG = -O0 -g
Expand Down Expand Up @@ -87,7 +87,7 @@ ifeq ($(NETCDF),3)
endif

LIBS := $(shell pkg-config --libs-only-L netcdf) $(shell pkg-config --libs-only-L mpich)
LIBS += -L/opt/pgi/18.10/linux86-64/2018/mpi/openmpi/lib/
#LIBS += -L/opt/pgi/18.10/linux86-64/2018/mpi/openmpi/lib/
LIBS += -lnetcdff -lnetcdf -lz -lmpi -lmpi_mpifh
#LIBS += -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lz -lmpich -lfmpich
LDFLAGS += $(LIBS)
Expand Down
2 changes: 0 additions & 2 deletions builds/lscgpu50/gnu7.env

This file was deleted.

0 comments on commit 1e974ae

Please sign in to comment.