Skip to content

Commit 320d02a

Browse files
committed
patching sprs_perf to prevente github actions failures
1 parent 96a5f33 commit 320d02a

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/github_actions.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,13 @@ jobs:
190190
echo F77 compiler version `"$F77" -v`
191191
- name: patch source code if needed
192192
run: |
193-
if [[ "$CC" == "icx" ]]; then
194193
sudo apt-get install -q -y patch
194+
if [[ "$CC" == "icx" ]]; then
195195
echo patching g2test to prevent icx failures
196196
patch -p0 < ./travis/g2t.patch
197197
fi
198+
echo patching sprs_perf.c
199+
patch -p0 < ./travis/sprs_perf.patch
198200
- name: before_install
199201
if: steps.ga-cache-install.outputs.cache-hit != 'true'
200202
run: |

travis/sprs_perf.patch

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git global/testing/sprs_perf.c global/testing/sprs_perf.c
2+
index 311222a6..97dc9808 100644
3+
--- global/testing/sprs_perf.c
4+
+++ global/testing/sprs_perf.c
5+
@@ -9,8 +9,10 @@
6+
7+
#define WRITE_VTK
8+
#define CG_SOLVE 1
9+
-#define NDIM_SPRS 1048576
10+
-#define NDIM_DNS 16384
11+
+#define NDIM_SPRS_ 1048576
12+
+#define NDIM_DNS_ 16384
13+
+#define NDIM_SPRS 262144
14+
+#define NDIM_DNS 8192
15+
16+
/**
17+
* Solve Laplace's equation on a cubic domain using the sparse matrix

0 commit comments

Comments
 (0)