Skip to content

Commit

Permalink
Merge pull request #17 from jschueller/ci
Browse files Browse the repository at this point in the history
Add CI script
  • Loading branch information
xiaoyeli authored May 16, 2024
2 parents e0467de + 1950311 commit 1300aec
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
pull_request:

permissions:
contents: read

jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install
run: sudo apt-get -y install cmake liblapack-dev
- name: Build
run: |
cmake -DCMAKE_C_FLAGS="-Wall -Wextra -Wpedantic" -DCMAKE_INSTALL_PREFIX=$PWD/install .
make -j2
- name: Test
run: ctest -R LA --output-on-failure -j2 --schedule-random --timeout 500

1 change: 0 additions & 1 deletion SRC/cpivotgrowth.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ cPivotGrowth(int_t ncols, SuperMatrix *A, int_t *perm_c,
extern double slamch_(char *);
float smlnum;
complex *luval;
complex temp_comp;

/* Get machine constants. */
smlnum = slamch_("S");
Expand Down
2 changes: 1 addition & 1 deletion SRC/pcmemory.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ typedef struct {
int_t top2; /* grow downward */
void *array;
#if ( MACH==PTHREAD )
pthread_mutex_t lock;;
pthread_mutex_t lock;
#endif
} LU_stack_t;

Expand Down
1 change: 0 additions & 1 deletion SRC/zpivotgrowth.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ zPivotGrowth(int_t ncols, SuperMatrix *A, int_t *perm_c,
extern double dlamch_(char *);
double smlnum;
doublecomplex *luval;
doublecomplex temp_comp;

/* Get machine constants. */
smlnum = dlamch_("S");
Expand Down
2 changes: 1 addition & 1 deletion TESTING/pddrive.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ at the top-level directory.
#endif


main(int argc, char *argv[])
int main(int argc, char *argv[])
{
/*
* -- SuperLU MT routine (version 2.0) --
Expand Down
2 changes: 1 addition & 1 deletion TESTING/psgst01.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ int_t psgst01(int_t m, int_t n, SuperMatrix *A, SuperMatrix *L,
/* Local variables */
float zero = 0.0;
int_t i, j, k, arow, lptr,isub, urow, superno, fsupc, u_part;
float utemp, comp_temp;
float utemp;
float anorm, tnorm, cnorm;
float eps;
float *work;
Expand Down

0 comments on commit 1300aec

Please sign in to comment.