tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
petsc: detect updated UCX warning message in patch
TomaSajt
2 years ago
6ca8f319
faada32c
+13
-13
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
science
math
petsc
filter_mpi_warnings.patch
+13
-13
pkgs/development/libraries/science/math/petsc/filter_mpi_warnings.patch
···
1
1
diff --git a/src/snes/tutorials/makefile b/src/snes/tutorials/makefile
2
2
-
index 168febb34b6..71068469066 100644
2
2
+
index 672a62a..a5fd1c4 100644
3
3
--- a/src/snes/tutorials/makefile
4
4
+++ b/src/snes/tutorials/makefile
5
5
@@ -13,6 +13,7 @@ include ${PETSC_DIR}/lib/petsc/conf/rules
6
6
# these tests are used by the makefile in PETSC_DIR for basic tests of the install and should not be removed
7
7
testex5f: ex5f.PETSc
8
8
-@${MPIEXEC} -n 1 ${MPIEXEC_TAIL} ./ex5f -snes_rtol 1e-4 > ex5f_1.tmp 2>&1; \
9
9
-
+ sed -i '/hwloc\/linux/d ; /ERROR opendir(\/sys\/class\/net) failed/d' ex5f_1.tmp; \
9
9
+
+ sed -i '/hwloc\/linux/d ; /ERROR scandir(\/sys\/class\/net) failed/d' ex5f_1.tmp; \
10
10
if (${DIFF} output/ex5f_1.testout ex5f_1.tmp > /dev/null 2>&1) then \
11
11
echo "Fortran example src/snes/tutorials/ex5f run successfully with 1 MPI process"; \
12
12
else \
···
14
14
${MAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} ex5f.rm;
15
15
testex19: ex19.PETSc
16
16
-@${MPIEXEC} -n 1 ${MPIEXEC_TAIL} ./ex19 -da_refine 3 -pc_type mg -ksp_type fgmres > ex19_1.tmp 2>&1; \
17
17
-
+ sed -i '/hwloc\/linux/d ; /ERROR opendir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
17
17
+
+ sed -i '/hwloc\/linux/d ; /ERROR scandir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
18
18
if (${DIFF} output/ex19_1.testout ex19_1.tmp > /dev/null 2>&1) then \
19
19
echo "C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process"; \
20
20
else \
···
22
22
${RM} -f ex19_1.tmp;
23
23
testex19_mpi:
24
24
-@${MPIEXEC} -n 2 ${MPIEXEC_TAIL} ./ex19 -da_refine 3 -pc_type mg -ksp_type fgmres > ex19_1.tmp 2>&1; \
25
25
-
+ sed -i '/hwloc\/linux/d ; /ERROR opendir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
25
25
+
+ sed -i '/hwloc\/linux/d ; /ERROR scandir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
26
26
if (${DIFF} output/ex19_1.testout ex19_1.tmp > /dev/null 2>&1) then \
27
27
echo "C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes"; \
28
28
else \
···
30
30
#use unpreconditioned norm because HYPRE device installations use different AMG parameters
31
31
runex19_hypre:
32
32
-@${MPIEXEC} -n 2 ${MPIEXEC_TAIL} ./ex19 -da_refine 3 -snes_monitor_short -ksp_norm_type unpreconditioned -pc_type hypre > ex19_1.tmp 2>&1; \
33
33
-
+ sed -i '/hwloc\/linux/d ; /ERROR opendir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
33
33
+
+ sed -i '/hwloc\/linux/d ; /ERROR scandir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
34
34
if (${DIFF} output/ex19_hypre.out ex19_1.tmp) then \
35
35
echo "C/C++ example src/snes/tutorials/ex19 run successfully with hypre"; \
36
36
else \
···
38
38
${RM} -f ex19_1.tmp
39
39
runex19_hypre_cuda:
40
40
-@${MPIEXEC} -n 2 ${MPIEXEC_TAIL} ./ex19 -dm_vec_type cuda -dm_mat_type aijcusparse -da_refine 3 -snes_monitor_short -ksp_norm_type unpreconditioned -pc_type hypre > ex19_1.tmp 2>&1; \
41
41
-
+ sed -i '/hwloc\/linux/d ; /ERROR opendir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
41
41
+
+ sed -i '/hwloc\/linux/d ; /ERROR scandir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
42
42
if (${DIFF} output/ex19_hypre.out ex19_1.tmp) then \
43
43
echo "C/C++ example src/snes/tutorials/ex19 run successfully with hypre/cuda"; \
44
44
else \
···
46
46
${RM} -f ex19_1.tmp
47
47
runex19_hypre_hip:
48
48
-@${MPIEXEC} -n 2 ${MPIEXEC_TAIL} ./ex19 -dm_vec_type hip -da_refine 3 -snes_monitor_short -ksp_norm_type unpreconditioned -pc_type hypre > ex19_1.tmp 2>&1; \
49
49
-
+ sed -i '/hwloc\/linux/d ; /ERROR opendir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
49
49
+
+ sed -i '/hwloc\/linux/d ; /ERROR scandir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
50
50
if (${DIFF} output/ex19_hypre.out ex19_1.tmp) then \
51
51
echo "C/C++ example src/snes/tutorials/ex19 run successfully with hypre/hip"; \
52
52
else \
···
54
54
${RM} -f ex19_1.tmp
55
55
runex19_cuda:
56
56
-@${MPIEXEC} -n 1 ${MPIEXEC_TAIL} ./ex19 -snes_monitor -dm_mat_type seqaijcusparse -dm_vec_type seqcuda -pc_type gamg -pc_gamg_esteig_ksp_max_it 10 -ksp_monitor -mg_levels_ksp_max_it 3 > ex19_1.tmp 2>&1; \
57
57
-
+ sed -i '/hwloc\/linux/d ; /ERROR opendir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
57
57
+
+ sed -i '/hwloc\/linux/d ; /ERROR scandir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
58
58
if (${DIFF} output/ex19_cuda_1.out ex19_1.tmp) then \
59
59
echo "C/C++ example src/snes/tutorials/ex19 run successfully with cuda"; \
60
60
else \
···
62
62
${RM} -f ex19_1.tmp
63
63
runex19_ml:
64
64
-@${MPIEXEC} -n 2 ${MPIEXEC_TAIL} ./ex19 -da_refine 3 -snes_monitor_short -pc_type ml > ex19_1.tmp 2>&1; \
65
65
-
+ sed -i '/hwloc\/linux/d ; /ERROR opendir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
65
65
+
+ sed -i '/hwloc\/linux/d ; /ERROR scandir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
66
66
if (${DIFF} output/ex19_ml.out ex19_1.tmp) then \
67
67
echo "C/C++ example src/snes/tutorials/ex19 run successfully with ml"; \
68
68
else \
···
70
70
${RM} -f ex19_1.tmp
71
71
runex19_fieldsplit_mumps:
72
72
-@${MPIEXEC} -n 2 ${MPIEXEC_TAIL} ./ex19 -pc_type fieldsplit -pc_fieldsplit_block_size 4 -pc_fieldsplit_type SCHUR -pc_fieldsplit_0_fields 0,1,2 -pc_fieldsplit_1_fields 3 -fieldsplit_0_pc_type lu -fieldsplit_1_pc_type lu -snes_monitor_short -ksp_monitor_short -fieldsplit_0_pc_factor_mat_solver_type mumps -fieldsplit_1_pc_factor_mat_solver_type mumps > ex19_6.tmp 2>&1; \
73
73
-
+ sed -i '/hwloc\/linux/d ; /ERROR opendir(\/sys\/class\/net) failed/d' ex19_6.tmp; \
73
73
+
+ sed -i '/hwloc\/linux/d ; /ERROR scandir(\/sys\/class\/net) failed/d' ex19_6.tmp; \
74
74
if (${DIFF} output/ex19_fieldsplit_5.out ex19_6.tmp) then \
75
75
echo "C/C++ example src/snes/tutorials/ex19 run successfully with mumps"; \
76
76
else \
···
78
78
${RM} -f ex19_6.tmp
79
79
runex19_superlu_dist:
80
80
-@${MPIEXEC} -n 1 ${MPIEXEC_TAIL} ./ex19 -da_grid_x 20 -da_grid_y 20 -pc_type lu -pc_factor_mat_solver_type superlu_dist > ex19.tmp 2>&1; \
81
81
-
+ sed -i '/hwloc\/linux/d ; /ERROR opendir(\/sys\/class\/net) failed/d' ex19.tmp; \
81
81
+
+ sed -i '/hwloc\/linux/d ; /ERROR scandir(\/sys\/class\/net) failed/d' ex19.tmp; \
82
82
if (${DIFF} output/ex19_superlu.out ex19.tmp) then \
83
83
echo "C/C++ example src/snes/tutorials/ex19 run successfully with superlu_dist"; \
84
84
else \
···
86
86
${RM} -f ex19.tmp
87
87
runex19_suitesparse:
88
88
-@${MPIEXEC} -n 1 ${MPIEXEC_TAIL} ./ex19 -da_refine 3 -snes_monitor_short -pc_type lu -pc_factor_mat_solver_type umfpack > ex19_1.tmp 2>&1; \
89
89
-
+ sed -i '/hwloc\/linux/d ; /ERROR opendir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
89
89
+
+ sed -i '/hwloc\/linux/d ; /ERROR scandir(\/sys\/class\/net) failed/d' ex19_1.tmp; \
90
90
if (${DIFF} output/ex19_suitesparse.out ex19_1.tmp) then \
91
91
echo "C/C++ example src/snes/tutorials/ex19 run successfully with suitesparse"; \
92
92
else \
···
94
94
${RM} -f ex19_1.tmp
95
95
runex3k_kokkos: ex3k.PETSc
96
96
-@OMP_PROC_BIND=false ${MPIEXEC} -n 2 ${MPIEXEC_TAIL} ./ex3k -view_initial -dm_vec_type kokkos -dm_mat_type aijkokkos -use_gpu_aware_mpi 0 -snes_monitor > ex3k_1.tmp 2>&1 ;\
97
97
-
+ sed -i '/hwloc\/linux/d ; /ERROR opendir(\/sys\/class\/net) failed/d' ex3k_1.tmp; \
97
97
+
+ sed -i '/hwloc\/linux/d ; /ERROR scandir(\/sys\/class\/net) failed/d' ex3k_1.tmp; \
98
98
if (${DIFF} output/ex3k_1.out ex3k_1.tmp) then \
99
99
echo "C/C++ example src/snes/tutorials/ex3k run successfully with kokkos-kernels"; \
100
100
else \