Skip to content

Commit 1300aec

Browse files
authored
Merge pull request #17 from jschueller/ci
Add CI script
2 parents e0467de + 1950311 commit 1300aec

File tree

6 files changed

+24
-5
lines changed

6 files changed

+24
-5
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
pull_request:
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
linux:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Install
14+
run: sudo apt-get -y install cmake liblapack-dev
15+
- name: Build
16+
run: |
17+
cmake -DCMAKE_C_FLAGS="-Wall -Wextra -Wpedantic" -DCMAKE_INSTALL_PREFIX=$PWD/install .
18+
make -j2
19+
- name: Test
20+
run: ctest -R LA --output-on-failure -j2 --schedule-random --timeout 500
21+

SRC/cpivotgrowth.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ cPivotGrowth(int_t ncols, SuperMatrix *A, int_t *perm_c,
6464
extern double slamch_(char *);
6565
float smlnum;
6666
complex *luval;
67-
complex temp_comp;
6867

6968
/* Get machine constants. */
7069
smlnum = slamch_("S");

SRC/pcmemory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ typedef struct {
5454
int_t top2; /* grow downward */
5555
void *array;
5656
#if ( MACH==PTHREAD )
57-
pthread_mutex_t lock;;
57+
pthread_mutex_t lock;
5858
#endif
5959
} LU_stack_t;
6060

SRC/zpivotgrowth.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ zPivotGrowth(int_t ncols, SuperMatrix *A, int_t *perm_c,
6464
extern double dlamch_(char *);
6565
double smlnum;
6666
doublecomplex *luval;
67-
doublecomplex temp_comp;
6867

6968
/* Get machine constants. */
7069
smlnum = dlamch_("S");

TESTING/pddrive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ at the top-level directory.
2828
#endif
2929

3030

31-
main(int argc, char *argv[])
31+
int main(int argc, char *argv[])
3232
{
3333
/*
3434
* -- SuperLU MT routine (version 2.0) --

TESTING/psgst01.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int_t psgst01(int_t m, int_t n, SuperMatrix *A, SuperMatrix *L,
6060
/* Local variables */
6161
float zero = 0.0;
6262
int_t i, j, k, arow, lptr,isub, urow, superno, fsupc, u_part;
63-
float utemp, comp_temp;
63+
float utemp;
6464
float anorm, tnorm, cnorm;
6565
float eps;
6666
float *work;

0 commit comments

Comments
 (0)