Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ginkgo: fix tests, add build dep on gtest #17403

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

barracuda156
Copy link
Contributor

Signed-off-by: barracuda156 [email protected]

Description

Fixes for tests. 94% pass now on PPC compared to 71%.
This also should fix build on few old systems which do not have functional git of their own.

Type(s)
  • bugfix
  • enhancement
  • security fix
Tested on

macOS 10.6
Xcode 3.2

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • referenced existing tickets on Trac with full URL?
  • checked your Portfile with port lint --nitpick?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?
  • checked that the Portfile's most important variants haven't been broken?

@barracuda156
Copy link
Contributor Author

--->  Testing ginkgo
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_ginkgo/ginkgo/work/ginkgo-1.5.0" && DYLD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_ginkgo/ginkgo/work/build/lib ctest test 
Test project /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_ginkgo/ginkgo/work/ginkgo-1.5.0
        Start   1: reference/test/base/array
  1/229 Test   #1: reference/test/base/array ................................   Passed    0.34 sec
        Start   2: reference/test/base/combination
  2/229 Test   #2: reference/test/base/combination ..........................   Passed    0.43 sec
        Start   3: reference/test/base/composition
  3/229 Test   #3: reference/test/base/composition ..........................   Passed    0.39 sec
        Start   4: reference/test/base/index_set
  4/229 Test   #4: reference/test/base/index_set ............................   Passed    0.34 sec
        Start   5: reference/test/base/perturbation
  5/229 Test   #5: reference/test/base/perturbation .........................   Passed    0.38 sec
        Start   6: reference/test/base/utils
  6/229 Test   #6: reference/test/base/utils ................................   Passed    0.36 sec
        Start   7: reference/test/components/absolute_array_kernels
  7/229 Test   #7: reference/test/components/absolute_array_kernels .........   Passed    0.36 sec
        Start   8: reference/test/components/fill_array_kernels
  8/229 Test   #8: reference/test/components/fill_array_kernels .............   Passed    0.38 sec
        Start   9: reference/test/components/format_conversion_kernels
  9/229 Test   #9: reference/test/components/format_conversion_kernels ......   Passed    0.34 sec
        Start  10: reference/test/components/precision_conversion_kernels
 10/229 Test  #10: reference/test/components/precision_conversion_kernels ...   Passed    0.50 sec
        Start  11: reference/test/components/prefix_sum_kernels
 11/229 Test  #11: reference/test/components/prefix_sum_kernels .............   Passed    0.43 sec
        Start  12: reference/test/components/reduce_array_kernels
 12/229 Test  #12: reference/test/components/reduce_array_kernels ...........   Passed    0.38 sec
        Start  13: reference/test/distributed/matrix_kernels
 13/229 Test  #13: reference/test/distributed/matrix_kernels ................   Passed    0.48 sec
        Start  14: reference/test/distributed/partition_kernels
 14/229 Test  #14: reference/test/distributed/partition_kernels .............   Passed    0.40 sec
        Start  15: reference/test/distributed/vector_kernels
 15/229 Test  #15: reference/test/distributed/vector_kernels ................   Passed    0.41 sec
        Start  16: reference/test/factorization/cholesky_kernels
 16/229 Test  #16: reference/test/factorization/cholesky_kernels ............   Passed    0.69 sec
        Start  17: reference/test/factorization/factorization
 17/229 Test  #17: reference/test/factorization/factorization ...............   Passed    0.67 sec
        Start  18: reference/test/factorization/ic_kernels
 18/229 Test  #18: reference/test/factorization/ic_kernels ..................   Passed    0.61 sec
        Start  19: reference/test/factorization/ilu_kernels
 19/229 Test  #19: reference/test/factorization/ilu_kernels .................   Passed    0.66 sec
        Start  20: reference/test/factorization/lu_kernels
 20/229 Test  #20: reference/test/factorization/lu_kernels ..................   Passed    0.88 sec
        Start  21: reference/test/factorization/par_ic_kernels
 21/229 Test  #21: reference/test/factorization/par_ic_kernels ..............   Passed    0.66 sec
        Start  22: reference/test/factorization/par_ict_kernels
 22/229 Test  #22: reference/test/factorization/par_ict_kernels .............   Passed    0.79 sec
        Start  23: reference/test/factorization/par_ilu_kernels
 23/229 Test  #23: reference/test/factorization/par_ilu_kernels .............   Passed    0.72 sec
        Start  24: reference/test/factorization/par_ilut_kernels
 24/229 Test  #24: reference/test/factorization/par_ilut_kernels ............   Passed    1.08 sec
        Start  25: reference/test/log/convergence
 25/229 Test  #25: reference/test/log/convergence ...........................   Passed    0.44 sec
        Start  26: reference/test/matrix/coo_kernels
 26/229 Test  #26: reference/test/matrix/coo_kernels ........................   Passed    0.65 sec
        Start  27: reference/test/matrix/csr_kernels
 27/229 Test  #27: reference/test/matrix/csr_kernels ........................   Passed    0.83 sec
        Start  28: reference/test/matrix/dense_kernels
 28/229 Test  #28: reference/test/matrix/dense_kernels ......................   Passed    0.89 sec
        Start  29: reference/test/matrix/diagonal_kernels
 29/229 Test  #29: reference/test/matrix/diagonal_kernels ...................   Passed    0.60 sec
        Start  30: reference/test/matrix/ell_kernels
 30/229 Test  #30: reference/test/matrix/ell_kernels ........................   Passed    0.73 sec
        Start  31: reference/test/matrix/fbcsr_kernels
 31/229 Test  #31: reference/test/matrix/fbcsr_kernels ......................   Passed    0.64 sec
        Start  32: reference/test/matrix/fft_kernels
 32/229 Test  #32: reference/test/matrix/fft_kernels ........................   Passed   84.22 sec
        Start  33: reference/test/matrix/hybrid_kernels
 33/229 Test  #33: reference/test/matrix/hybrid_kernels .....................   Passed    0.85 sec
        Start  34: reference/test/matrix/identity
 34/229 Test  #34: reference/test/matrix/identity ...........................   Passed    0.42 sec
        Start  35: reference/test/matrix/permutation
 35/229 Test  #35: reference/test/matrix/permutation ........................   Passed    0.51 sec
        Start  36: reference/test/matrix/sellp_kernels
 36/229 Test  #36: reference/test/matrix/sellp_kernels ......................   Passed    0.65 sec
        Start  37: reference/test/matrix/sparsity_csr
 37/229 Test  #37: reference/test/matrix/sparsity_csr .......................   Passed    0.44 sec
        Start  38: reference/test/matrix/sparsity_csr_kernels
 38/229 Test  #38: reference/test/matrix/sparsity_csr_kernels ...............   Passed    0.60 sec
        Start  39: reference/test/multigrid/pgm_kernels
 39/229 Test  #39: reference/test/multigrid/pgm_kernels .....................   Passed    0.52 sec
        Start  40: reference/test/multigrid/fixed_coarsening_kernels
 40/229 Test  #40: reference/test/multigrid/fixed_coarsening_kernels ........   Passed    0.46 sec
        Start  41: reference/test/preconditioner/ilu
 41/229 Test  #41: reference/test/preconditioner/ilu ........................   Passed    0.60 sec
        Start  42: reference/test/preconditioner/ic
 42/229 Test  #42: reference/test/preconditioner/ic .........................   Passed    0.66 sec
        Start  43: reference/test/preconditioner/isai_kernels
 43/229 Test  #43: reference/test/preconditioner/isai_kernels ...............   Passed   24.01 sec
        Start  44: reference/test/preconditioner/jacobi
 44/229 Test  #44: reference/test/preconditioner/jacobi .....................   Passed    0.58 sec
        Start  45: reference/test/preconditioner/jacobi_kernels
 45/229 Test  #45: reference/test/preconditioner/jacobi_kernels .............   Passed    0.67 sec
        Start  46: reference/test/reorder/rcm
 46/229 Test  #46: reference/test/reorder/rcm ...............................   Passed    0.48 sec
        Start  47: reference/test/reorder/rcm_kernels
 47/229 Test  #47: reference/test/reorder/rcm_kernels .......................   Passed    0.43 sec
        Start  48: reference/test/reorder/scaled_reordered
 48/229 Test  #48: reference/test/reorder/scaled_reordered ..................   Passed    0.80 sec
        Start  49: reference/test/solver/bicg_kernels
 49/229 Test  #49: reference/test/solver/bicg_kernels .......................   Passed    0.48 sec
        Start  50: reference/test/solver/bicgstab_kernels
 50/229 Test  #50: reference/test/solver/bicgstab_kernels ...................   Passed    0.47 sec
        Start  51: reference/test/solver/cg_kernels
 51/229 Test  #51: reference/test/solver/cg_kernels .........................   Passed    0.45 sec
        Start  52: reference/test/solver/cgs_kernels
 52/229 Test  #52: reference/test/solver/cgs_kernels ........................   Passed    0.49 sec
        Start  53: reference/test/solver/direct
 53/229 Test  #53: reference/test/solver/direct .............................   Passed    0.46 sec
        Start  54: reference/test/solver/fcg_kernels
 54/229 Test  #54: reference/test/solver/fcg_kernels ........................   Passed    0.45 sec
        Start  55: reference/test/solver/gmres_kernels
 55/229 Test  #55: reference/test/solver/gmres_kernels ......................   Passed    0.70 sec
        Start  56: reference/test/solver/cb_gmres_kernels
 56/229 Test  #56: reference/test/solver/cb_gmres_kernels ...................   Passed    1.01 sec
        Start  57: reference/test/solver/idr_kernels
 57/229 Test  #57: reference/test/solver/idr_kernels ........................   Passed    0.54 sec
        Start  58: reference/test/solver/ir_kernels
 58/229 Test  #58: reference/test/solver/ir_kernels .........................   Passed    0.58 sec
        Start  59: reference/test/solver/lower_trs
 59/229 Test  #59: reference/test/solver/lower_trs ..........................   Passed    0.46 sec
        Start  60: reference/test/solver/lower_trs_kernels
 60/229 Test  #60: reference/test/solver/lower_trs_kernels ..................   Passed    0.44 sec
        Start  61: reference/test/solver/multigrid_kernels
 61/229 Test  #61: reference/test/solver/multigrid_kernels ..................   Passed    0.54 sec
        Start  62: reference/test/solver/upper_trs
 62/229 Test  #62: reference/test/solver/upper_trs ..........................   Passed    0.41 sec
        Start  63: reference/test/solver/upper_trs_kernels
 63/229 Test  #63: reference/test/solver/upper_trs_kernels ..................   Passed    0.45 sec
        Start  64: reference/test/stop/combined
 64/229 Test  #64: reference/test/stop/combined .............................   Passed    0.36 sec
        Start  65: reference/test/stop/criterion_kernels
 65/229 Test  #65: reference/test/stop/criterion_kernels ....................   Passed    0.36 sec
        Start  66: reference/test/stop/iteration
 66/229 Test  #66: reference/test/stop/iteration ............................   Passed    0.35 sec
        Start  67: reference/test/stop/residual_norm_kernels
 67/229 Test  #67: reference/test/stop/residual_norm_kernels ................   Passed    0.63 sec
        Start  68: reference/test/stop/time
 68/229 Test  #68: reference/test/stop/time .................................   Passed    0.95 sec
        Start  69: reference/test/utils/assertions_test
 69/229 Test  #69: reference/test/utils/assertions_test .....................   Passed    0.35 sec
        Start  70: omp/test/base/kernel_launch
 70/229 Test  #70: omp/test/base/kernel_launch ..............................   Passed    0.36 sec
        Start  71: omp/test/base/index_set
 71/229 Test  #71: omp/test/base/index_set ..................................   Passed    0.36 sec
        Start  72: omp/test/matrix/fbcsr_kernels
 72/229 Test  #72: omp/test/matrix/fbcsr_kernels ............................   Passed    0.98 sec
        Start  73: omp/test/reorder/rcm_kernels
 73/229 Test  #73: omp/test/reorder/rcm_kernels .............................   Passed    0.58 sec
        Start  74: core/test/accessor/index_span
 74/229 Test  #74: core/test/accessor/index_span ............................   Passed    0.08 sec
        Start  75: core/test/accessor/range
 75/229 Test  #75: core/test/accessor/range .................................   Passed    0.07 sec
        Start  76: core/test/accessor/math
 76/229 Test  #76: core/test/accessor/math ..................................   Passed    0.08 sec
        Start  77: core/test/accessor/block_col_major
 77/229 Test  #77: core/test/accessor/block_col_major .......................   Passed    0.07 sec
        Start  78: core/test/accessor/reduced_row_major
 78/229 Test  #78: core/test/accessor/reduced_row_major .....................   Passed    0.08 sec
        Start  79: core/test/accessor/reduced_row_major_reference
 79/229 Test  #79: core/test/accessor/reduced_row_major_reference ...........   Passed    0.09 sec
        Start  80: core/test/accessor/reduced_row_major_ginkgo
 80/229 Test  #80: core/test/accessor/reduced_row_major_ginkgo ..............   Passed    0.36 sec
        Start  81: core/test/accessor/row_major
 81/229 Test  #81: core/test/accessor/row_major .............................   Passed    0.07 sec
        Start  82: core/test/accessor/scaled_reduced_row_major
 82/229 Test  #82: core/test/accessor/scaled_reduced_row_major ..............   Passed    0.08 sec
        Start  83: core/test/accessor/scaled_reduced_row_major_reference
 83/229 Test  #83: core/test/accessor/scaled_reduced_row_major_reference ....   Passed    0.09 sec
        Start  84: core/test/base/abstract_factory
 84/229 Test  #84: core/test/base/abstract_factory ..........................   Passed    0.35 sec
        Start  85: core/test/base/allocator
 85/229 Test  #85: core/test/base/allocator .................................   Passed    0.34 sec
        Start  86: core/test/base/array
 86/229 Test  #86: core/test/base/array .....................................   Passed    0.50 sec
        Start  87: core/test/base/dense_cache
 87/229 Test  #87: core/test/base/dense_cache ...............................   Passed    0.37 sec
        Start  88: core/test/base/combination
 88/229 Test  #88: core/test/base/combination ...............................   Passed    0.35 sec
        Start  89: core/test/base/composition
 89/229 Test  #89: core/test/base/composition ...............................   Passed    0.45 sec
        Start  90: core/test/base/dim
 90/229 Test  #90: core/test/base/dim .......................................   Passed    0.40 sec
        Start  91: core/test/base/exception
 91/229 Test  #91: core/test/base/exception .................................   Passed    0.39 sec
        Start  92: core/test/base/exception_helpers
 92/229 Test  #92: core/test/base/exception_helpers .........................   Passed    0.46 sec
        Start  93: core/test/base/extended_float
 93/229 Test  #93: core/test/base/extended_float ............................***Failed    0.34 sec
        Start  94: core/test/base/executor
 94/229 Test  #94: core/test/base/executor ..................................***Failed    0.35 sec
        Start  95: core/test/base/iterator_factory
 95/229 Test  #95: core/test/base/iterator_factory ..........................   Passed    0.34 sec
        Start  96: core/test/base/lin_op
 96/229 Test  #96: core/test/base/lin_op ....................................   Passed    0.46 sec
        Start  97: core/test/base/math
 97/229 Test  #97: core/test/base/math ......................................   Passed    0.35 sec
        Start  98: core/test/base/matrix_assembly_data
 98/229 Test  #98: core/test/base/matrix_assembly_data ......................   Passed    0.34 sec
        Start  99: core/test/base/matrix_data
 99/229 Test  #99: core/test/base/matrix_data ...............................   Passed    0.35 sec
        Start 100: core/test/base/mtx_io
100/229 Test #100: core/test/base/mtx_io ....................................   Passed    0.67 sec
        Start 101: core/test/base/perturbation
101/229 Test #101: core/test/base/perturbation ..............................   Passed    0.49 sec
        Start 102: core/test/base/polymorphic_object
102/229 Test #102: core/test/base/polymorphic_object ........................   Passed    0.34 sec
        Start 103: core/test/base/range
103/229 Test #103: core/test/base/range .....................................   Passed    0.33 sec
        Start 104: core/test/base/range_accessors
104/229 Test #104: core/test/base/range_accessors ...........................   Passed    0.34 sec
        Start 105: core/test/base/sanitizers
105/229 Test #105: core/test/base/sanitizers ................................   Passed    0.33 sec
        Start 106: core/test/base/types
106/229 Test #106: core/test/base/types .....................................   Passed    0.34 sec
        Start 107: core/test/base/utils
107/229 Test #107: core/test/base/utils .....................................   Passed    0.45 sec
        Start 108: core/test/base/version
108/229 Test #108: core/test/base/version ...................................   Passed    0.34 sec
        Start 109: core/test/components/disjoint_sets
109/229 Test #109: core/test/components/disjoint_sets .......................   Passed    0.37 sec
        Start 110: core/test/mpi/base/communicator
110/229 Test #110: core/test/mpi/base/communicator ..........................***Failed    1.52 sec
        Start 111: core/test/mpi/base/exception_helpers
111/229 Test #111: core/test/mpi/base/exception_helpers .....................   Passed    0.74 sec
        Start 112: core/test/mpi/base/bindings
112/229 Test #112: core/test/mpi/base/bindings ..............................***Failed    1.11 sec
        Start 113: core/test/mpi/base/polymorphic_object
113/229 Test #113: core/test/mpi/base/polymorphic_object ....................   Passed    0.79 sec
        Start 114: core/test/mpi/base/rank_mapping
114/229 Test #114: core/test/mpi/base/rank_mapping ..........................***Failed    0.94 sec
        Start 115: core/test/mpi/distributed/helpers
115/229 Test #115: core/test/mpi/distributed/helpers ........................   Passed    0.83 sec
        Start 116: core/test/mpi/distributed/matrix
116/229 Test #116: core/test/mpi/distributed/matrix .........................   Passed    1.67 sec
        Start 117: core/test/factorization/elimination_forest
117/229 Test #117: core/test/factorization/elimination_forest ...............   Passed    0.52 sec
        Start 118: core/test/factorization/par_ic
118/229 Test #118: core/test/factorization/par_ic ...........................   Passed    0.37 sec
        Start 119: core/test/factorization/par_ict
119/229 Test #119: core/test/factorization/par_ict ..........................   Passed    0.41 sec
        Start 120: core/test/factorization/par_ilu
120/229 Test #120: core/test/factorization/par_ilu ..........................   Passed    0.46 sec
        Start 121: core/test/factorization/par_ilut
121/229 Test #121: core/test/factorization/par_ilut .........................   Passed    0.39 sec
        Start 122: core/test/log/convergence
122/229 Test #122: core/test/log/convergence ................................   Passed    0.43 sec
        Start 123: core/test/log/logger
123/229 Test #123: core/test/log/logger .....................................   Passed    0.39 sec
        Start 124: core/test/log/performance_hint
124/229 Test #124: core/test/log/performance_hint ...........................   Passed    0.42 sec
        Start 125: core/test/log/record
125/229 Test #125: core/test/log/record .....................................   Passed    0.38 sec
        Start 126: core/test/log/stream
126/229 Test #126: core/test/log/stream .....................................   Passed    0.42 sec
        Start 127: core/test/matrix/coo
127/229 Test #127: core/test/matrix/coo .....................................   Passed    0.40 sec
        Start 128: core/test/matrix/coo_builder
128/229 Test #128: core/test/matrix/coo_builder .............................   Passed    0.36 sec
        Start 129: core/test/matrix/csr
129/229 Test #129: core/test/matrix/csr .....................................   Passed    0.40 sec
        Start 130: core/test/matrix/csr_builder
130/229 Test #130: core/test/matrix/csr_builder .............................   Passed    0.36 sec
        Start 131: core/test/matrix/dense
131/229 Test #131: core/test/matrix/dense ...................................   Passed    0.36 sec
        Start 132: core/test/matrix/diagonal
132/229 Test #132: core/test/matrix/diagonal ................................   Passed    0.46 sec
        Start 133: core/test/matrix/ell
133/229 Test #133: core/test/matrix/ell .....................................   Passed    0.38 sec
        Start 134: core/test/matrix/fbcsr
134/229 Test #134: core/test/matrix/fbcsr ...................................   Passed    0.65 sec
        Start 135: core/test/matrix/fbcsr_builder
135/229 Test #135: core/test/matrix/fbcsr_builder ...........................   Passed    0.35 sec
        Start 136: core/test/matrix/hybrid
136/229 Test #136: core/test/matrix/hybrid ..................................   Passed    0.52 sec
        Start 137: core/test/matrix/identity
137/229 Test #137: core/test/matrix/identity ................................   Passed    0.46 sec
        Start 138: core/test/matrix/permutation
138/229 Test #138: core/test/matrix/permutation .............................   Passed    0.47 sec
        Start 139: core/test/matrix/sellp
139/229 Test #139: core/test/matrix/sellp ...................................   Passed    0.42 sec
        Start 140: core/test/matrix/sparsity_csr
140/229 Test #140: core/test/matrix/sparsity_csr ............................   Passed    0.38 sec
        Start 141: core/test/matrix/row_gatherer
141/229 Test #141: core/test/matrix/row_gatherer ............................   Passed    0.51 sec
        Start 142: core/test/multigrid/pgm
142/229 Test #142: core/test/multigrid/pgm ..................................   Passed    0.36 sec
        Start 143: core/test/multigrid/fixed_coarsening
143/229 Test #143: core/test/multigrid/fixed_coarsening .....................   Passed    0.38 sec
        Start 144: core/test/preconditioner/ic
144/229 Test #144: core/test/preconditioner/ic ..............................   Passed    0.49 sec
        Start 145: core/test/preconditioner/ilu
145/229 Test #145: core/test/preconditioner/ilu .............................   Passed    0.40 sec
        Start 146: core/test/preconditioner/isai
146/229 Test #146: core/test/preconditioner/isai ............................   Passed    0.63 sec
        Start 147: core/test/preconditioner/jacobi
147/229 Test #147: core/test/preconditioner/jacobi ..........................   Passed    0.40 sec
        Start 148: core/test/reorder/rcm
148/229 Test #148: core/test/reorder/rcm ....................................   Passed    0.34 sec
        Start 149: core/test/reorder/scaled_reordered
149/229 Test #149: core/test/reorder/scaled_reordered .......................   Passed    0.36 sec
        Start 150: core/test/solver/bicg
150/229 Test #150: core/test/solver/bicg ....................................   Passed    0.50 sec
        Start 151: core/test/solver/bicgstab
151/229 Test #151: core/test/solver/bicgstab ................................   Passed    0.49 sec
        Start 152: core/test/solver/cg
152/229 Test #152: core/test/solver/cg ......................................   Passed    0.50 sec
        Start 153: core/test/solver/cgs
153/229 Test #153: core/test/solver/cgs .....................................   Passed    0.49 sec
        Start 154: core/test/solver/fcg
154/229 Test #154: core/test/solver/fcg .....................................   Passed    0.57 sec
        Start 155: core/test/solver/gmres
155/229 Test #155: core/test/solver/gmres ...................................   Passed    0.50 sec
        Start 156: core/test/solver/cb_gmres
156/229 Test #156: core/test/solver/cb_gmres ................................   Passed    0.51 sec
        Start 157: core/test/solver/idr
157/229 Test #157: core/test/solver/idr .....................................   Passed    0.48 sec
        Start 158: core/test/solver/ir
158/229 Test #158: core/test/solver/ir ......................................   Passed    0.49 sec
        Start 159: core/test/solver/lower_trs
159/229 Test #159: core/test/solver/lower_trs ...............................   Passed    0.48 sec
        Start 160: core/test/solver/multigrid
160/229 Test #160: core/test/solver/multigrid ...............................   Passed    0.55 sec
        Start 161: core/test/solver/upper_trs
161/229 Test #161: core/test/solver/upper_trs ...............................   Passed    0.59 sec
        Start 162: core/test/solver/workspace
162/229 Test #162: core/test/solver/workspace ...............................   Passed    0.38 sec
        Start 163: core/test/stop/combined
163/229 Test #163: core/test/stop/combined ..................................   Passed    0.50 sec
        Start 164: core/test/stop/criterion
164/229 Test #164: core/test/stop/criterion .................................   Passed    0.38 sec
        Start 165: core/test/stop/iteration
165/229 Test #165: core/test/stop/iteration .................................   Passed    0.35 sec
        Start 166: core/test/stop/stopping_status
166/229 Test #166: core/test/stop/stopping_status ...........................   Passed    0.36 sec
        Start 167: core/test/stop/time
167/229 Test #167: core/test/stop/time ......................................   Passed    0.41 sec
        Start 168: core/test/utils/array_generator_test
168/229 Test #168: core/test/utils/array_generator_test .....................   Passed    0.41 sec
        Start 169: core/test/utils/assertions_test
169/229 Test #169: core/test/utils/assertions_test ..........................   Passed    0.38 sec
        Start 170: core/test/utils/matrix_generator_test
170/229 Test #170: core/test/utils/matrix_generator_test ....................   Passed    2.90 sec
        Start 171: core/test/utils/matrix_utils_test
171/229 Test #171: core/test/utils/matrix_utils_test ........................   Passed    7.30 sec
        Start 172: core/test/utils/fb_matrix_generator_test
172/229 Test #172: core/test/utils/fb_matrix_generator_test .................   Passed    0.70 sec
        Start 173: core/test/utils/unsort_matrix_test
173/229 Test #173: core/test/utils/unsort_matrix_test .......................   Passed    0.45 sec
        Start 174: core/test/utils/value_generator_test
174/229 Test #174: core/test/utils/value_generator_test .....................   Passed    0.33 sec
        Start 175: test/base/device_matrix_data_kernels_omp
175/229 Test #175: test/base/device_matrix_data_kernels_omp .................   Passed    0.82 sec
        Start 176: test/base/device_matrix_data_kernels_reference
176/229 Test #176: test/base/device_matrix_data_kernels_reference ...........   Passed    0.78 sec
        Start 177: test/base/kernel_launch_generic_omp
177/229 Test #177: test/base/kernel_launch_generic_omp ......................   Passed    0.57 sec
        Start 178: test/components/absolute_array_kernels_omp
178/229 Test #178: test/components/absolute_array_kernels_omp ...............   Passed    0.37 sec
        Start 179: test/components/fill_array_kernels_omp
179/229 Test #179: test/components/fill_array_kernels_omp ...................   Passed    0.62 sec
        Start 180: test/components/format_conversion_kernels_omp
180/229 Test #180: test/components/format_conversion_kernels_omp ............   Passed    0.68 sec
        Start 181: test/components/precision_conversion_kernels_omp
181/229 Test #181: test/components/precision_conversion_kernels_omp .........   Passed    0.54 sec
        Start 182: test/components/prefix_sum_kernels_omp
182/229 Test #182: test/components/prefix_sum_kernels_omp ...................   Passed    0.43 sec
        Start 183: test/components/reduce_array_kernels_omp
183/229 Test #183: test/components/reduce_array_kernels_omp .................   Passed    0.35 sec
        Start 184: test/distributed/matrix_kernels_omp
184/229 Test #184: test/distributed/matrix_kernels_omp ......................   Passed    1.36 sec
        Start 185: test/distributed/partition_kernels_omp
185/229 Test #185: test/distributed/partition_kernels_omp ...................   Passed    0.43 sec
        Start 186: test/distributed/vector_kernels_omp
186/229 Test #186: test/distributed/vector_kernels_omp ......................   Passed    0.50 sec
        Start 187: test/factorization/cholesky_kernels_omp
187/229 Test #187: test/factorization/cholesky_kernels_omp ..................   Passed    0.36 sec
        Start 188: test/factorization/lu_kernels_omp
188/229 Test #188: test/factorization/lu_kernels_omp ........................   Passed  318.69 sec
        Start 189: test/factorization/par_ic_kernels_omp
189/229 Test #189: test/factorization/par_ic_kernels_omp ....................   Passed   21.38 sec
        Start 190: test/factorization/par_ict_kernels_omp
190/229 Test #190: test/factorization/par_ict_kernels_omp ...................   Passed   65.00 sec
        Start 191: test/factorization/par_ilu_kernels_omp
191/229 Test #191: test/factorization/par_ilu_kernels_omp ...................   Passed   91.94 sec
        Start 192: test/factorization/par_ilut_kernels_omp
192/229 Test #192: test/factorization/par_ilut_kernels_omp ..................   Passed  256.34 sec
        Start 193: test/matrix/csr_kernels_omp
193/229 Test #193: test/matrix/csr_kernels_omp ..............................   Passed    0.83 sec
        Start 194: test/matrix/csr_kernels2_omp
194/229 Test #194: test/matrix/csr_kernels2_omp .............................   Passed   24.72 sec
        Start 195: test/matrix/coo_kernels_omp
195/229 Test #195: test/matrix/coo_kernels_omp ..............................   Passed    2.11 sec
        Start 196: test/matrix/dense_kernels_omp
196/229 Test #196: test/matrix/dense_kernels_omp ............................***Failed    8.47 sec
        Start 197: test/matrix/diagonal_kernels_omp
197/229 Test #197: test/matrix/diagonal_kernels_omp .........................   Passed    7.79 sec
        Start 198: test/matrix/ell_kernels_omp
198/229 Test #198: test/matrix/ell_kernels_omp ..............................   Passed    4.75 sec
        Start 199: test/matrix/fbcsr_kernels_omp
199/229 Test #199: test/matrix/fbcsr_kernels_omp ............................   Passed    2.25 sec
        Start 200: test/matrix/fft_kernels_omp
200/229 Test #200: test/matrix/fft_kernels_omp ..............................   Passed    8.54 sec
        Start 201: test/matrix/hybrid_kernels_omp
201/229 Test #201: test/matrix/hybrid_kernels_omp ...........................   Passed    1.62 sec
        Start 202: test/matrix/matrix_omp
202/229 Test #202: test/matrix/matrix_omp ...................................***Failed   68.59 sec
        Start 203: test/matrix/sellp_kernels_omp
203/229 Test #203: test/matrix/sellp_kernels_omp ............................   Passed    2.16 sec
        Start 204: test/mpi/distributed/matrix_omp
204/229 Test #204: test/mpi/distributed/matrix_omp ..........................***Failed    1.43 sec
        Start 205: test/mpi/distributed/matrix_reference
205/229 Test #205: test/mpi/distributed/matrix_reference ....................***Failed    0.84 sec
        Start 206: test/mpi/distributed/vector_omp
206/229 Test #206: test/mpi/distributed/vector_omp ..........................***Failed    1.34 sec
        Start 207: test/mpi/distributed/vector_reference
207/229 Test #207: test/mpi/distributed/vector_reference ....................***Failed    1.18 sec
        Start 208: test/mpi/solver/solver_omp
208/229 Test #208: test/mpi/solver/solver_omp ...............................***Failed   98.20 sec
        Start 209: test/mpi/solver/solver_reference
209/229 Test #209: test/mpi/solver/solver_reference .........................***Failed   96.72 sec
        Start 210: test/multigrid/pgm_kernels_omp
210/229 Test #210: test/multigrid/pgm_kernels_omp ...........................   Passed   18.03 sec
        Start 211: test/multigrid/fixed_coarsening_kernels_omp
211/229 Test #211: test/multigrid/fixed_coarsening_kernels_omp ..............   Passed    2.27 sec
        Start 212: test/preconditioner/jacobi_kernels_omp
212/229 Test #212: test/preconditioner/jacobi_kernels_omp ...................   Passed    0.87 sec
        Start 213: test/preconditioner/isai_kernels_omp
213/229 Test #213: test/preconditioner/isai_kernels_omp .....................   Passed    5.11 sec
        Start 214: test/solver/bicg_kernels_omp
214/229 Test #214: test/solver/bicg_kernels_omp .............................   Passed    1.66 sec
        Start 215: test/solver/bicgstab_kernels_omp
215/229 Test #215: test/solver/bicgstab_kernels_omp .........................   Passed    1.62 sec
        Start 216: test/solver/cb_gmres_kernels_omp
216/229 Test #216: test/solver/cb_gmres_kernels_omp .........................   Passed   17.44 sec
        Start 217: test/solver/cg_kernels_omp
217/229 Test #217: test/solver/cg_kernels_omp ...............................   Passed    1.27 sec
        Start 218: test/solver/cgs_kernels_omp
218/229 Test #218: test/solver/cgs_kernels_omp ..............................   Passed    3.69 sec
        Start 219: test/solver/direct_omp
219/229 Test #219: test/solver/direct_omp ...................................   Passed   24.77 sec
        Start 220: test/solver/fcg_kernels_omp
220/229 Test #220: test/solver/fcg_kernels_omp ..............................   Passed    1.22 sec
        Start 221: test/solver/gmres_kernels_omp
221/229 Test #221: test/solver/gmres_kernels_omp ............................   Passed   38.43 sec
        Start 222: test/solver/idr_kernels_omp
222/229 Test #222: test/solver/idr_kernels_omp ..............................   Passed    3.64 sec
        Start 223: test/solver/ir_kernels_omp
223/229 Test #223: test/solver/ir_kernels_omp ...............................   Passed    0.41 sec
        Start 224: test/solver/lower_trs_kernels_omp
224/229 Test #224: test/solver/lower_trs_kernels_omp ........................   Passed    0.40 sec
        Start 225: test/solver/multigrid_kernels_omp
225/229 Test #225: test/solver/multigrid_kernels_omp ........................   Passed    0.75 sec
        Start 226: test/solver/solver_omp
226/229 Test #226: test/solver/solver_omp ...................................***Exception: SegFault 58.16 sec
        Start 227: test/solver/upper_trs_kernels_omp
227/229 Test #227: test/solver/upper_trs_kernels_omp ........................   Passed    0.44 sec
        Start 228: test/stop/criterion_kernels_omp
228/229 Test #228: test/stop/criterion_kernels_omp ..........................   Passed    0.34 sec
        Start 229: test/stop/residual_norm_kernels_omp
229/229 Test #229: test/stop/residual_norm_kernels_omp ......................   Passed    0.41 sec

94% tests passed, 14 tests failed out of 229

Total Test time (real) = 1475.53 sec

The following tests FAILED:
	 93 - core/test/base/extended_float (Failed)
	 94 - core/test/base/executor (Failed)
	110 - core/test/mpi/base/communicator (Failed)
	112 - core/test/mpi/base/bindings (Failed)
	114 - core/test/mpi/base/rank_mapping (Failed)
	196 - test/matrix/dense_kernels_omp (Failed)
	202 - test/matrix/matrix_omp (Failed)
	204 - test/mpi/distributed/matrix_omp (Failed)
	205 - test/mpi/distributed/matrix_reference (Failed)
	206 - test/mpi/distributed/vector_omp (Failed)
	207 - test/mpi/distributed/vector_reference (Failed)
	208 - test/mpi/solver/solver_omp (Failed)
	209 - test/mpi/solver/solver_reference (Failed)
	226 - test/solver/solver_omp (SEGFAULT)
Errors while running CTest

Took several hours of rebuilding it to find out a recipe that works for linking tests.

@kencu
Copy link
Contributor

kencu commented Jan 20, 2023

for pretty much all the ports in MacPorts that use cmake, to make the tests work, you have to do this:

variant tests description {Enable running 'port test'} {

	configure.pre_args-replace	-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
					-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF

	test.run yes
	test.cmd ctest
}

There are a number cmake ports that use a block like this.

We have talked at length about why the cmake portgroup sets:

DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON

which breaks the testing. In the end, unless there is a sea change of sentiment that comes up, the conclusion has been that is going to stay in the cmake portfile, and it can be altered for testing as in the block above.

@barracuda156
Copy link
Contributor Author

barracuda156 commented Jan 20, 2023

We have talked at length about why the cmake portgroup sets:

DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON

which breaks the testing. In the end, unless there is a sea change of sentiment that comes up, the conclusion has been that is going to stay in the cmake portfile, and it can be altered for testing as in the block above.

@kencu Thank you! Yes, I tried initially with DYLD_LIBRARY_PATH in test env, but it either failed or required ridiculous amount of work to change paths for every dylib and test.

BTW, does it make a difference if -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF is passed in pre_args or args?

@kencu
Copy link
Contributor

kencu commented Jan 21, 2023

-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON

is added to the build by the cmake PortGroup in the configure.pre_args:

{*}[cmake::rpath_flags] \

so if you want to remove that item and replace it with:

-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF

you need to use configure.pre_args-replace as that is where they are.

@barracuda156
Copy link
Contributor Author

Makes sense, thank you. Gonna update this in some hours.

@barracuda156
Copy link
Contributor Author

barracuda156 commented Jan 22, 2023

@kencu Updated the port to replace pre_args, ran test suite again. Same results though.

Opened a ticket with upstream, maybe we get some advice on PPC implementation there: ginkgo-project/ginkgo#1260

But this should be good to merge as-is, I believe.

@kencu
Copy link
Contributor

kencu commented Jan 22, 2023

let me take a look.

You shouldn't need to add DYLD-* stuff once you've fixed the install paths right.

@kencu kencu marked this pull request as draft January 22, 2023 07:29
@barracuda156
Copy link
Contributor Author

let me take a look.

You shouldn't need to add DYLD-* stuff once you've fixed the install paths right.

I could drop that, if you are sure.

@kencu
Copy link
Contributor

kencu commented Jan 22, 2023


100% tests passed, 0 tests failed out of 175

This Portfile is pretty close. Using libomp on MacPorts at present is problematic, because a library like this can't tell software that uses this library that it needs to use a compiler that supports libomp, so we get lots of build failures. If we are going to use OMP, it might best be in an optional variant, therefore. That is open to some discussion, depending on how many users of this library there might be. Here's what I did with the Portfile. Please test it out on your systems, and we'll see if we can finish it right up.

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           cmake 1.1
PortGroup           github 1.0
PortGroup           mpi 1.0

github.setup        ginkgo-project ginkgo d1b52fee8f5370be45388e66abb04e277faf8ff8
version             1.5.0
revision            1
categories          math
license             BSD
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Numerical linear algebra software package
long_description    A numerical linear algebra library targeting many-core architectures.
homepage            https://ginkgo-project.github.io

checksums           rmd160  5f17ef1d7cd5f024f1ae3f19e37eaa11483202e0 \
                    sha256  f3b3e0c5194f99f5b77ab23ab18a3141aed16661413c23d882f9e99bded9140a \
                    size    9521519

if {${os.platform} eq "darwin" && ${os.arch} eq "powerpc"} {
    mpi.setup       require require_fortran \
                    -gcc44 -gcc45 -gcc46 -gcc47 -gcc48 -gcc49 -gcc5 -gcc6 \
                    -clang -fortran
} else {
    mpi.setup       require require_fortran \
                    -gcc44 -gcc45 -gcc46 -gcc47 -gcc48 -gcc49 -gcc5 -gcc6
}

cmake.build_type    Release

configure.args-append \
                    -DBUILD_SHARED_LIBS=ON \
                    -DGINKGO_MIXED_PRECISION=ON \
                    -DGINKGO_BUILD_MPI=ON \
                    -DGINKGO_BUILD_REFERENCE=ON \
                    -DGINKGO_BUILD_TESTS=OFF \
                    -DGINKGO_BUILD_BENCHMARKS=OFF \
                    -DGINKGO_BUILD_CUDA=OFF \
                    -DGINKGO_BUILD_DPCPP=OFF \
                    -DGINKGO_BUILD_HIP=OFF \
                    -DGINKGO_BUILD_DOC=OFF \
                    -DGINKGO_BUILD_EXAMPLES=OFF \
                    -DGINKGO_BUILD_HWLOC=OFF \
                    -DGINKGO_BUILD_OMP=OFF \
                    -DGINKGO_DEVEL_TOOLS=OFF \
                    -DGINKGO_DOC_GENERATE_EXAMPLES=OFF \
                    -DGINKGO_DOC_GENERATE_PDF=OFF \
                    -DGINKGO_JACOBI_FULL_OPTIMIZATIONS=OFF \
                    -DGINKGO_WITH_CCACHE=OFF

if {${configure.ccache}} {
    configure.args-replace \
                    -DGINKGO_WITH_CCACHE=OFF \
                    -DGINKGO_WITH_CCACHE=ON
}

# ___atomic_compare_exchange_8
if {[string match *gcc* ${configure.compiler}]} {
    configure.ldflags-append -latomic
}

variant tests description {enable running 'port test'} {
    depends_test-append port:gtest
    test.run            yes
    test.cmd            ctest

    configure.pre_args-replace \
                        -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
                        -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF

    configure.args-replace     \
                        -DGINKGO_BUILD_TESTS=OFF \
                        -DGINKGO_BUILD_TESTS=ON

    configure.args-append -DMPIEXEC_EXECUTABLE=${prefix}/bin/${mpi.exec}

}

@kencu
Copy link
Contributor

kencu commented Jan 22, 2023

I'm not 100% sure yet if this is only needed in the testing variant... it is needed there, to make the tests all pass, at least.

configure.args-append -DMPIEXEC_EXECUTABLE=${prefix}/bin/${mpi.exec}

@barracuda156
Copy link
Contributor Author

barracuda156 commented Jan 22, 2023

@kencu Thank you very much for helping with this, I will test it now.
(Still running the build, it takes forever.)

@barracuda156
Copy link
Contributor Author

At bindings it hangs now: all cores at 100%, but apparently nothing is happening.

--->  Testing ginkgo
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_ginkgo/ginkgo/work/build" && ctest test 
Test project /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_ginkgo/ginkgo/work/build
        Start   1: reference/test/base/array
  1/175 Test   #1: reference/test/base/array ................................   Passed    0.33 sec
        Start   2: reference/test/base/combination
  2/175 Test   #2: reference/test/base/combination ..........................   Passed    0.35 sec
        Start   3: reference/test/base/composition
  3/175 Test   #3: reference/test/base/composition ..........................   Passed    0.35 sec
        Start   4: reference/test/base/index_set
  4/175 Test   #4: reference/test/base/index_set ............................   Passed    0.34 sec
        Start   5: reference/test/base/perturbation
  5/175 Test   #5: reference/test/base/perturbation .........................   Passed    0.35 sec
        Start   6: reference/test/base/utils
  6/175 Test   #6: reference/test/base/utils ................................   Passed    0.33 sec
        Start   7: reference/test/components/absolute_array_kernels
  7/175 Test   #7: reference/test/components/absolute_array_kernels .........   Passed    0.31 sec
        Start   8: reference/test/components/fill_array_kernels
  8/175 Test   #8: reference/test/components/fill_array_kernels .............   Passed    0.34 sec
        Start   9: reference/test/components/format_conversion_kernels
  9/175 Test   #9: reference/test/components/format_conversion_kernels ......   Passed    0.31 sec
        Start  10: reference/test/components/precision_conversion_kernels
 10/175 Test  #10: reference/test/components/precision_conversion_kernels ...   Passed    0.36 sec
        Start  11: reference/test/components/prefix_sum_kernels
 11/175 Test  #11: reference/test/components/prefix_sum_kernels .............   Passed    0.32 sec
        Start  12: reference/test/components/reduce_array_kernels
 12/175 Test  #12: reference/test/components/reduce_array_kernels ...........   Passed    0.31 sec
        Start  13: reference/test/distributed/matrix_kernels
 13/175 Test  #13: reference/test/distributed/matrix_kernels ................   Passed    0.40 sec
        Start  14: reference/test/distributed/partition_kernels
 14/175 Test  #14: reference/test/distributed/partition_kernels .............   Passed    0.35 sec
        Start  15: reference/test/distributed/vector_kernels
 15/175 Test  #15: reference/test/distributed/vector_kernels ................   Passed    0.36 sec
        Start  16: reference/test/factorization/cholesky_kernels
 16/175 Test  #16: reference/test/factorization/cholesky_kernels ............   Passed    0.58 sec
        Start  17: reference/test/factorization/factorization
 17/175 Test  #17: reference/test/factorization/factorization ...............   Passed    0.54 sec
        Start  18: reference/test/factorization/ic_kernels
 18/175 Test  #18: reference/test/factorization/ic_kernels ..................   Passed    0.51 sec
        Start  19: reference/test/factorization/ilu_kernels
 19/175 Test  #19: reference/test/factorization/ilu_kernels .................   Passed    0.54 sec
        Start  20: reference/test/factorization/lu_kernels
 20/175 Test  #20: reference/test/factorization/lu_kernels ..................***Failed    0.87 sec
        Start  21: reference/test/factorization/par_ic_kernels
 21/175 Test  #21: reference/test/factorization/par_ic_kernels ..............   Passed    0.49 sec
        Start  22: reference/test/factorization/par_ict_kernels
 22/175 Test  #22: reference/test/factorization/par_ict_kernels .............   Passed    0.59 sec
        Start  23: reference/test/factorization/par_ilu_kernels
 23/175 Test  #23: reference/test/factorization/par_ilu_kernels .............   Passed    0.59 sec
        Start  24: reference/test/factorization/par_ilut_kernels
 24/175 Test  #24: reference/test/factorization/par_ilut_kernels ............   Passed    0.78 sec
        Start  25: reference/test/log/convergence
 25/175 Test  #25: reference/test/log/convergence ...........................   Passed    0.35 sec
        Start  26: reference/test/matrix/coo_kernels
 26/175 Test  #26: reference/test/matrix/coo_kernels ........................   Passed    0.57 sec
        Start  27: reference/test/matrix/csr_kernels
 27/175 Test  #27: reference/test/matrix/csr_kernels ........................   Passed    0.67 sec
        Start  28: reference/test/matrix/dense_kernels
 28/175 Test  #28: reference/test/matrix/dense_kernels ......................   Passed    0.72 sec
        Start  29: reference/test/matrix/diagonal_kernels
 29/175 Test  #29: reference/test/matrix/diagonal_kernels ...................   Passed    0.51 sec
        Start  30: reference/test/matrix/ell_kernels
 30/175 Test  #30: reference/test/matrix/ell_kernels ........................   Passed    0.56 sec
        Start  31: reference/test/matrix/fbcsr_kernels
 31/175 Test  #31: reference/test/matrix/fbcsr_kernels ......................   Passed    0.58 sec
        Start  32: reference/test/matrix/fft_kernels
 32/175 Test  #32: reference/test/matrix/fft_kernels ........................   Passed   27.02 sec
        Start  33: reference/test/matrix/hybrid_kernels
 33/175 Test  #33: reference/test/matrix/hybrid_kernels .....................   Passed    0.61 sec
        Start  34: reference/test/matrix/identity
 34/175 Test  #34: reference/test/matrix/identity ...........................   Passed    0.34 sec
        Start  35: reference/test/matrix/permutation
 35/175 Test  #35: reference/test/matrix/permutation ........................   Passed    0.40 sec
        Start  36: reference/test/matrix/sellp_kernels
 36/175 Test  #36: reference/test/matrix/sellp_kernels ......................   Passed    0.57 sec
        Start  37: reference/test/matrix/sparsity_csr
 37/175 Test  #37: reference/test/matrix/sparsity_csr .......................   Passed    0.37 sec
        Start  38: reference/test/matrix/sparsity_csr_kernels
 38/175 Test  #38: reference/test/matrix/sparsity_csr_kernels ...............   Passed    0.49 sec
        Start  39: reference/test/multigrid/pgm_kernels
 39/175 Test  #39: reference/test/multigrid/pgm_kernels .....................   Passed    0.48 sec
        Start  40: reference/test/multigrid/fixed_coarsening_kernels
 40/175 Test  #40: reference/test/multigrid/fixed_coarsening_kernels ........   Passed    0.44 sec
        Start  41: reference/test/preconditioner/ilu
 41/175 Test  #41: reference/test/preconditioner/ilu ........................   Passed    0.57 sec
        Start  42: reference/test/preconditioner/ic
 42/175 Test  #42: reference/test/preconditioner/ic .........................   Passed    0.61 sec
        Start  43: reference/test/preconditioner/isai_kernels
 43/175 Test  #43: reference/test/preconditioner/isai_kernels ...............   Passed   19.76 sec
        Start  44: reference/test/preconditioner/jacobi
 44/175 Test  #44: reference/test/preconditioner/jacobi .....................   Passed    0.44 sec
        Start  45: reference/test/preconditioner/jacobi_kernels
 45/175 Test  #45: reference/test/preconditioner/jacobi_kernels .............   Passed    0.49 sec
        Start  46: reference/test/reorder/rcm
 46/175 Test  #46: reference/test/reorder/rcm ...............................   Passed    0.40 sec
        Start  47: reference/test/reorder/rcm_kernels
 47/175 Test  #47: reference/test/reorder/rcm_kernels .......................   Passed    0.34 sec
        Start  48: reference/test/reorder/scaled_reordered
 48/175 Test  #48: reference/test/reorder/scaled_reordered ..................   Passed    0.64 sec
        Start  49: reference/test/solver/bicg_kernels
 49/175 Test  #49: reference/test/solver/bicg_kernels .......................   Passed    0.41 sec
        Start  50: reference/test/solver/bicgstab_kernels
 50/175 Test  #50: reference/test/solver/bicgstab_kernels ...................   Passed    0.43 sec
        Start  51: reference/test/solver/cg_kernels
 51/175 Test  #51: reference/test/solver/cg_kernels .........................   Passed    0.41 sec
        Start  52: reference/test/solver/cgs_kernels
 52/175 Test  #52: reference/test/solver/cgs_kernels ........................***Failed    0.45 sec
        Start  53: reference/test/solver/direct
 53/175 Test  #53: reference/test/solver/direct .............................   Passed    0.44 sec
        Start  54: reference/test/solver/fcg_kernels
 54/175 Test  #54: reference/test/solver/fcg_kernels ........................   Passed    0.39 sec
        Start  55: reference/test/solver/gmres_kernels
 55/175 Test  #55: reference/test/solver/gmres_kernels ......................   Passed    0.55 sec
        Start  56: reference/test/solver/cb_gmres_kernels
 56/175 Test  #56: reference/test/solver/cb_gmres_kernels ...................   Passed    0.71 sec
        Start  57: reference/test/solver/idr_kernels
 57/175 Test  #57: reference/test/solver/idr_kernels ........................   Passed    0.39 sec
        Start  58: reference/test/solver/ir_kernels
 58/175 Test  #58: reference/test/solver/ir_kernels .........................   Passed    0.45 sec
        Start  59: reference/test/solver/lower_trs
 59/175 Test  #59: reference/test/solver/lower_trs ..........................   Passed    0.40 sec
        Start  60: reference/test/solver/lower_trs_kernels
 60/175 Test  #60: reference/test/solver/lower_trs_kernels ..................   Passed    0.38 sec
        Start  61: reference/test/solver/multigrid_kernels
 61/175 Test  #61: reference/test/solver/multigrid_kernels ..................   Passed    0.47 sec
        Start  62: reference/test/solver/upper_trs
 62/175 Test  #62: reference/test/solver/upper_trs ..........................   Passed    0.39 sec
        Start  63: reference/test/solver/upper_trs_kernels
 63/175 Test  #63: reference/test/solver/upper_trs_kernels ..................   Passed    0.38 sec
        Start  64: reference/test/stop/combined
 64/175 Test  #64: reference/test/stop/combined .............................   Passed    0.33 sec
        Start  65: reference/test/stop/criterion_kernels
 65/175 Test  #65: reference/test/stop/criterion_kernels ....................   Passed    0.31 sec
        Start  66: reference/test/stop/iteration
 66/175 Test  #66: reference/test/stop/iteration ............................   Passed    0.34 sec
        Start  67: reference/test/stop/residual_norm_kernels
 67/175 Test  #67: reference/test/stop/residual_norm_kernels ................   Passed    0.46 sec
        Start  68: reference/test/stop/time
 68/175 Test  #68: reference/test/stop/time .................................   Passed    0.83 sec
        Start  69: reference/test/utils/assertions_test
 69/175 Test  #69: reference/test/utils/assertions_test .....................   Passed    0.35 sec
        Start  70: core/test/accessor/index_span
 70/175 Test  #70: core/test/accessor/index_span ............................   Passed    0.06 sec
        Start  71: core/test/accessor/range
 71/175 Test  #71: core/test/accessor/range .................................   Passed    0.06 sec
        Start  72: core/test/accessor/math
 72/175 Test  #72: core/test/accessor/math ..................................   Passed    0.06 sec
        Start  73: core/test/accessor/block_col_major
 73/175 Test  #73: core/test/accessor/block_col_major .......................   Passed    0.06 sec
        Start  74: core/test/accessor/reduced_row_major
 74/175 Test  #74: core/test/accessor/reduced_row_major .....................   Passed    0.06 sec
        Start  75: core/test/accessor/reduced_row_major_reference
 75/175 Test  #75: core/test/accessor/reduced_row_major_reference ...........   Passed    0.10 sec
        Start  76: core/test/accessor/reduced_row_major_ginkgo
 76/175 Test  #76: core/test/accessor/reduced_row_major_ginkgo ..............   Passed    0.36 sec
        Start  77: core/test/accessor/row_major
 77/175 Test  #77: core/test/accessor/row_major .............................   Passed    0.06 sec
        Start  78: core/test/accessor/scaled_reduced_row_major
 78/175 Test  #78: core/test/accessor/scaled_reduced_row_major ..............   Passed    0.10 sec
        Start  79: core/test/accessor/scaled_reduced_row_major_reference
 79/175 Test  #79: core/test/accessor/scaled_reduced_row_major_reference ....   Passed    0.09 sec
        Start  80: core/test/base/abstract_factory
 80/175 Test  #80: core/test/base/abstract_factory ..........................   Passed    0.33 sec
        Start  81: core/test/base/allocator
 81/175 Test  #81: core/test/base/allocator .................................   Passed    0.34 sec
        Start  82: core/test/base/array
 82/175 Test  #82: core/test/base/array .....................................   Passed    0.48 sec
        Start  83: core/test/base/dense_cache
 83/175 Test  #83: core/test/base/dense_cache ...............................   Passed    0.35 sec
        Start  84: core/test/base/combination
 84/175 Test  #84: core/test/base/combination ...............................   Passed    0.34 sec
        Start  85: core/test/base/composition
 85/175 Test  #85: core/test/base/composition ...............................   Passed    0.32 sec
        Start  86: core/test/base/dim
 86/175 Test  #86: core/test/base/dim .......................................   Passed    0.31 sec
        Start  87: core/test/base/exception
 87/175 Test  #87: core/test/base/exception .................................   Passed    0.34 sec
        Start  88: core/test/base/exception_helpers
 88/175 Test  #88: core/test/base/exception_helpers .........................   Passed    0.43 sec
        Start  89: core/test/base/extended_float
 89/175 Test  #89: core/test/base/extended_float ............................***Failed    0.33 sec
        Start  90: core/test/base/executor
 90/175 Test  #90: core/test/base/executor ..................................***Failed    0.34 sec
        Start  91: core/test/base/iterator_factory
 91/175 Test  #91: core/test/base/iterator_factory ..........................   Passed    0.32 sec
        Start  92: core/test/base/lin_op
 92/175 Test  #92: core/test/base/lin_op ....................................   Passed    0.42 sec
        Start  93: core/test/base/math
 93/175 Test  #93: core/test/base/math ......................................   Passed    0.33 sec
        Start  94: core/test/base/matrix_assembly_data
 94/175 Test  #94: core/test/base/matrix_assembly_data ......................   Passed    0.30 sec
        Start  95: core/test/base/matrix_data
 95/175 Test  #95: core/test/base/matrix_data ...............................   Passed    0.31 sec
        Start  96: core/test/base/mtx_io
 96/175 Test  #96: core/test/base/mtx_io ....................................   Passed    0.47 sec
        Start  97: core/test/base/perturbation
 97/175 Test  #97: core/test/base/perturbation ..............................   Passed    0.41 sec
        Start  98: core/test/base/polymorphic_object
 98/175 Test  #98: core/test/base/polymorphic_object ........................   Passed    0.33 sec
        Start  99: core/test/base/range
 99/175 Test  #99: core/test/base/range .....................................   Passed    0.31 sec
        Start 100: core/test/base/range_accessors
100/175 Test #100: core/test/base/range_accessors ...........................   Passed    0.31 sec
        Start 101: core/test/base/sanitizers
101/175 Test #101: core/test/base/sanitizers ................................   Passed    0.33 sec
        Start 102: core/test/base/types
102/175 Test #102: core/test/base/types .....................................   Passed    0.31 sec
        Start 103: core/test/base/utils
103/175 Test #103: core/test/base/utils .....................................   Passed    0.43 sec
        Start 104: core/test/base/version
104/175 Test #104: core/test/base/version ...................................   Passed    0.31 sec
        Start 105: core/test/components/disjoint_sets
105/175 Test #105: core/test/components/disjoint_sets .......................   Passed    0.33 sec
        Start 106: core/test/mpi/base/communicator
106/175 Test #106: core/test/mpi/base/communicator ..........................   Passed    2.33 sec
        Start 107: core/test/mpi/base/exception_helpers
107/175 Test #107: core/test/mpi/base/exception_helpers .....................   Passed    0.71 sec
        Start 108: core/test/mpi/base/bindings

At the same time, notice, core/test/mpi/base/communicator now passed, which failed when system MPI being used.

@barracuda156
Copy link
Contributor Author

@kencu Let me see if I can get it more reasonably fixed. As of now, it is unclear whether new mpi-hydra is to be used or not for PPC (or for old OSs regardless of arch).

Rebuilding this port takes 2+ hours even on the Quad, so I cannot rerun it dozen times at once :)

Some of the failures are okay, but some are not so much. Discussion here: ginkgo-project/ginkgo#1260 (comment)

@kencu
Copy link
Contributor

kencu commented Jan 22, 2023

you can use ccache now, and for me that makes rebuilding way faster.

I would say 90 seconds on my M1.

Hope you can sort out the PPC failures.

@barracuda156
Copy link
Contributor Author

barracuda156 commented Jan 22, 2023

Hope you can sort out the PPC failures.

Upstream wrote that:

  1. Some failures are merely due to precision threshold being too strict – i.e., those are acceptable.
  2. Floating point extended precision are expected to fail, since the code at the moment assumes little endian.
  3. MPICH is semi-broken and should be fixed, nothing to do with ginkgo as such – we have seen similar freezes etc. with other ports. (This point is not from upstream, I add it.)

I hope that 2) upstream can deal with. MPICH is on me, he-he, though I have no idea at the moment what is the reason for its weird behavior.

@barracuda156
Copy link
Contributor Author

@kencu BTW, how do we pass correctly OMP_NUM_THREADS=1 to the tests? Suggestion to try from upstream.

@kencu
Copy link
Contributor

kencu commented Jan 22, 2023

set it in the environment would be my first thought…. the test environment.

@barracuda156
Copy link
Contributor Author

@kencu So yes, passing OMP_NUM_THREADS=1 in test.env works. Test suite then freezes on 219/231, cg_kernels_omp.

That is, with OMP enabled and with passing -DMPIEXEC_EXECUTABLE=${prefix}/bin/${mpi.exec}.

@barracuda156 barracuda156 marked this pull request as ready for review February 18, 2023 11:17
@barracuda156
Copy link
Contributor Author

barracuda156 commented Feb 18, 2023

@kencu I suggest we merge it like this. It improves upon current results for PPC and apparently works nicely on Intel.

With those tests freezing, it becomes super-burdensome and time-consuming to try anything extra. I give up for now, cannot afford spending weeks on this.

Makes better sense to find out why MPICH is semi-broken on PPC to begin with – if that is fixed, life becomes much easier.

UPD. I will rebuild last time to see if OMP_NUM_THREADS=1 does anything when using old system MPICH instead of specifying -DMPIEXEC_EXECUTABLE=${prefix}/bin/${mpi.exec}. If that does not help, I am done. 94% tests passing is better than 71% :)
UPD2. No, makes no difference then. If we are okay with current changes, it can be merged.

@barracuda156
Copy link
Contributor Author

@kencu Could we merge this? It should solve all issues for Intel and improve a situation on PPC.

I will try fixing remaining tests on PPC, but not shortly, other stuff is higher in priority list.

@barracuda156
Copy link
Contributor Author

A bit different results, freezes still at the end:

[100%] Built target test_solver_solver_omp
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_ginkgo/ginkgo/work/build'
/opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_ginkgo/ginkgo/work/build/CMakeFiles 0
make: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_ginkgo/ginkgo/work/build'
--->  Testing ginkgo
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_ginkgo/ginkgo/work/build" && ctest test 
Test project /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_ginkgo/ginkgo/work/build
        Start   1: reference/test/base/array
  1/231 Test   #1: reference/test/base/array ................................   Passed    0.35 sec
        Start   2: reference/test/base/combination
  2/231 Test   #2: reference/test/base/combination ..........................   Passed    0.35 sec
        Start   3: reference/test/base/composition
  3/231 Test   #3: reference/test/base/composition ..........................   Passed    0.39 sec
        Start   4: reference/test/base/index_set
  4/231 Test   #4: reference/test/base/index_set ............................   Passed    0.34 sec
        Start   5: reference/test/base/perturbation
  5/231 Test   #5: reference/test/base/perturbation .........................   Passed    0.38 sec
        Start   6: reference/test/base/utils
  6/231 Test   #6: reference/test/base/utils ................................   Passed    0.34 sec
        Start   7: reference/test/components/absolute_array_kernels
  7/231 Test   #7: reference/test/components/absolute_array_kernels .........   Passed    0.33 sec
        Start   8: reference/test/components/fill_array_kernels
  8/231 Test   #8: reference/test/components/fill_array_kernels .............   Passed    0.34 sec
        Start   9: reference/test/components/format_conversion_kernels
  9/231 Test   #9: reference/test/components/format_conversion_kernels ......   Passed    0.32 sec
        Start  10: reference/test/components/precision_conversion_kernels
 10/231 Test  #10: reference/test/components/precision_conversion_kernels ...   Passed    0.38 sec
        Start  11: reference/test/components/prefix_sum_kernels
 11/231 Test  #11: reference/test/components/prefix_sum_kernels .............   Passed    0.34 sec
        Start  12: reference/test/components/reduce_array_kernels
 12/231 Test  #12: reference/test/components/reduce_array_kernels ...........   Passed    0.34 sec
        Start  13: reference/test/distributed/matrix_kernels
 13/231 Test  #13: reference/test/distributed/matrix_kernels ................   Passed    0.41 sec
        Start  14: reference/test/distributed/partition_kernels
 14/231 Test  #14: reference/test/distributed/partition_kernels .............   Passed    0.35 sec
        Start  15: reference/test/distributed/vector_kernels
 15/231 Test  #15: reference/test/distributed/vector_kernels ................   Passed    0.37 sec
        Start  16: reference/test/factorization/cholesky_kernels
 16/231 Test  #16: reference/test/factorization/cholesky_kernels ............   Passed    0.59 sec
        Start  17: reference/test/factorization/factorization
 17/231 Test  #17: reference/test/factorization/factorization ...............   Passed    0.56 sec
        Start  18: reference/test/factorization/ic_kernels
 18/231 Test  #18: reference/test/factorization/ic_kernels ..................   Passed    0.51 sec
        Start  19: reference/test/factorization/ilu_kernels
 19/231 Test  #19: reference/test/factorization/ilu_kernels .................   Passed    0.53 sec
        Start  20: reference/test/factorization/lu_kernels
 20/231 Test  #20: reference/test/factorization/lu_kernels ..................***Failed    0.90 sec
        Start  21: reference/test/factorization/par_ic_kernels
 21/231 Test  #21: reference/test/factorization/par_ic_kernels ..............   Passed    0.54 sec
        Start  22: reference/test/factorization/par_ict_kernels
 22/231 Test  #22: reference/test/factorization/par_ict_kernels .............   Passed    0.57 sec
        Start  23: reference/test/factorization/par_ilu_kernels
 23/231 Test  #23: reference/test/factorization/par_ilu_kernels .............   Passed    0.61 sec
        Start  24: reference/test/factorization/par_ilut_kernels
 24/231 Test  #24: reference/test/factorization/par_ilut_kernels ............   Passed    0.80 sec
        Start  25: reference/test/log/convergence
 25/231 Test  #25: reference/test/log/convergence ...........................   Passed    0.34 sec
        Start  26: reference/test/matrix/coo_kernels
 26/231 Test  #26: reference/test/matrix/coo_kernels ........................   Passed    0.57 sec
        Start  27: reference/test/matrix/csr_kernels
 27/231 Test  #27: reference/test/matrix/csr_kernels ........................   Passed    0.70 sec
        Start  28: reference/test/matrix/dense_kernels
 28/231 Test  #28: reference/test/matrix/dense_kernels ......................   Passed    0.72 sec
        Start  29: reference/test/matrix/diagonal_kernels
 29/231 Test  #29: reference/test/matrix/diagonal_kernels ...................   Passed    0.51 sec
        Start  30: reference/test/matrix/ell_kernels
 30/231 Test  #30: reference/test/matrix/ell_kernels ........................   Passed    0.58 sec
        Start  31: reference/test/matrix/fbcsr_kernels
 31/231 Test  #31: reference/test/matrix/fbcsr_kernels ......................   Passed    0.58 sec
        Start  32: reference/test/matrix/fft_kernels
 32/231 Test  #32: reference/test/matrix/fft_kernels ........................   Passed   26.82 sec
        Start  33: reference/test/matrix/hybrid_kernels
 33/231 Test  #33: reference/test/matrix/hybrid_kernels .....................   Passed    0.62 sec
        Start  34: reference/test/matrix/identity
 34/231 Test  #34: reference/test/matrix/identity ...........................   Passed    0.37 sec
        Start  35: reference/test/matrix/permutation
 35/231 Test  #35: reference/test/matrix/permutation ........................   Passed    0.42 sec
        Start  36: reference/test/matrix/sellp_kernels
 36/231 Test  #36: reference/test/matrix/sellp_kernels ......................   Passed    0.57 sec
        Start  37: reference/test/matrix/sparsity_csr
 37/231 Test  #37: reference/test/matrix/sparsity_csr .......................   Passed    0.39 sec
        Start  38: reference/test/matrix/sparsity_csr_kernels
 38/231 Test  #38: reference/test/matrix/sparsity_csr_kernels ...............   Passed    0.51 sec
        Start  39: reference/test/multigrid/pgm_kernels
 39/231 Test  #39: reference/test/multigrid/pgm_kernels .....................   Passed    0.48 sec
        Start  40: reference/test/multigrid/fixed_coarsening_kernels
 40/231 Test  #40: reference/test/multigrid/fixed_coarsening_kernels ........   Passed    0.45 sec
        Start  41: reference/test/preconditioner/ilu
 41/231 Test  #41: reference/test/preconditioner/ilu ........................   Passed    0.58 sec
        Start  42: reference/test/preconditioner/ic
 42/231 Test  #42: reference/test/preconditioner/ic .........................   Passed    0.62 sec
        Start  43: reference/test/preconditioner/isai_kernels
 43/231 Test  #43: reference/test/preconditioner/isai_kernels ...............   Passed   18.88 sec
        Start  44: reference/test/preconditioner/jacobi
 44/231 Test  #44: reference/test/preconditioner/jacobi .....................   Passed    0.45 sec
        Start  45: reference/test/preconditioner/jacobi_kernels
 45/231 Test  #45: reference/test/preconditioner/jacobi_kernels .............   Passed    0.53 sec
        Start  46: reference/test/reorder/rcm
 46/231 Test  #46: reference/test/reorder/rcm ...............................   Passed    0.41 sec
        Start  47: reference/test/reorder/rcm_kernels
 47/231 Test  #47: reference/test/reorder/rcm_kernels .......................   Passed    0.35 sec
        Start  48: reference/test/reorder/scaled_reordered
 48/231 Test  #48: reference/test/reorder/scaled_reordered ..................   Passed    0.65 sec
        Start  49: reference/test/solver/bicg_kernels
 49/231 Test  #49: reference/test/solver/bicg_kernels .......................   Passed    0.43 sec
        Start  50: reference/test/solver/bicgstab_kernels
 50/231 Test  #50: reference/test/solver/bicgstab_kernels ...................   Passed    0.45 sec
        Start  51: reference/test/solver/cg_kernels
 51/231 Test  #51: reference/test/solver/cg_kernels .........................   Passed    0.43 sec
        Start  52: reference/test/solver/cgs_kernels
 52/231 Test  #52: reference/test/solver/cgs_kernels ........................***Failed    0.46 sec
        Start  53: reference/test/solver/direct
 53/231 Test  #53: reference/test/solver/direct .............................   Passed    0.44 sec
        Start  54: reference/test/solver/fcg_kernels
 54/231 Test  #54: reference/test/solver/fcg_kernels ........................   Passed    0.42 sec
        Start  55: reference/test/solver/gmres_kernels
 55/231 Test  #55: reference/test/solver/gmres_kernels ......................   Passed    0.56 sec
        Start  56: reference/test/solver/cb_gmres_kernels
 56/231 Test  #56: reference/test/solver/cb_gmres_kernels ...................   Passed    0.65 sec
        Start  57: reference/test/solver/idr_kernels
 57/231 Test  #57: reference/test/solver/idr_kernels ........................   Passed    0.45 sec
        Start  58: reference/test/solver/ir_kernels
 58/231 Test  #58: reference/test/solver/ir_kernels .........................   Passed    0.46 sec
        Start  59: reference/test/solver/lower_trs
 59/231 Test  #59: reference/test/solver/lower_trs ..........................   Passed    0.37 sec
        Start  60: reference/test/solver/lower_trs_kernels
 60/231 Test  #60: reference/test/solver/lower_trs_kernels ..................   Passed    0.40 sec
        Start  61: reference/test/solver/multigrid_kernels
 61/231 Test  #61: reference/test/solver/multigrid_kernels ..................   Passed    0.49 sec
        Start  62: reference/test/solver/upper_trs
 62/231 Test  #62: reference/test/solver/upper_trs ..........................   Passed    0.37 sec
        Start  63: reference/test/solver/upper_trs_kernels
 63/231 Test  #63: reference/test/solver/upper_trs_kernels ..................   Passed    0.43 sec
        Start  64: reference/test/stop/combined
 64/231 Test  #64: reference/test/stop/combined .............................   Passed    0.35 sec
        Start  65: reference/test/stop/criterion_kernels
 65/231 Test  #65: reference/test/stop/criterion_kernels ....................   Passed    0.33 sec
        Start  66: reference/test/stop/iteration
 66/231 Test  #66: reference/test/stop/iteration ............................   Passed    0.33 sec
        Start  67: reference/test/stop/residual_norm_kernels
 67/231 Test  #67: reference/test/stop/residual_norm_kernels ................   Passed    0.46 sec
        Start  68: reference/test/stop/time
 68/231 Test  #68: reference/test/stop/time .................................   Passed    0.84 sec
        Start  69: reference/test/utils/assertions_test
 69/231 Test  #69: reference/test/utils/assertions_test .....................   Passed    0.36 sec
        Start  70: omp/test/base/kernel_launch
 70/231 Test  #70: omp/test/base/kernel_launch ..............................   Passed    0.36 sec
        Start  71: omp/test/base/index_set
 71/231 Test  #71: omp/test/base/index_set ..................................   Passed    0.33 sec
        Start  72: omp/test/matrix/fbcsr_kernels
 72/231 Test  #72: omp/test/matrix/fbcsr_kernels ............................   Passed    0.66 sec
        Start  73: omp/test/reorder/rcm_kernels
 73/231 Test  #73: omp/test/reorder/rcm_kernels .............................   Passed    0.37 sec
        Start  74: core/test/accessor/index_span
 74/231 Test  #74: core/test/accessor/index_span ............................   Passed    0.07 sec
        Start  75: core/test/accessor/range
 75/231 Test  #75: core/test/accessor/range .................................   Passed    0.07 sec
        Start  76: core/test/accessor/math
 76/231 Test  #76: core/test/accessor/math ..................................   Passed    0.08 sec
        Start  77: core/test/accessor/block_col_major
 77/231 Test  #77: core/test/accessor/block_col_major .......................   Passed    0.07 sec
        Start  78: core/test/accessor/reduced_row_major
 78/231 Test  #78: core/test/accessor/reduced_row_major .....................   Passed    0.07 sec
        Start  79: core/test/accessor/reduced_row_major_reference
 79/231 Test  #79: core/test/accessor/reduced_row_major_reference ...........   Passed    0.07 sec
        Start  80: core/test/accessor/reduced_row_major_ginkgo
 80/231 Test  #80: core/test/accessor/reduced_row_major_ginkgo ..............   Passed    0.36 sec
        Start  81: core/test/accessor/row_major
 81/231 Test  #81: core/test/accessor/row_major .............................   Passed    0.07 sec
        Start  82: core/test/accessor/scaled_reduced_row_major
 82/231 Test  #82: core/test/accessor/scaled_reduced_row_major ..............   Passed    0.07 sec
        Start  83: core/test/accessor/scaled_reduced_row_major_reference
 83/231 Test  #83: core/test/accessor/scaled_reduced_row_major_reference ....   Passed    0.09 sec
        Start  84: core/test/base/abstract_factory
 84/231 Test  #84: core/test/base/abstract_factory ..........................   Passed    0.33 sec
        Start  85: core/test/base/allocator
 85/231 Test  #85: core/test/base/allocator .................................   Passed    0.34 sec
        Start  86: core/test/base/array
 86/231 Test  #86: core/test/base/array .....................................   Passed    0.49 sec
        Start  87: core/test/base/dense_cache
 87/231 Test  #87: core/test/base/dense_cache ...............................   Passed    0.33 sec
        Start  88: core/test/base/combination
 88/231 Test  #88: core/test/base/combination ...............................   Passed    0.33 sec
        Start  89: core/test/base/composition
 89/231 Test  #89: core/test/base/composition ...............................   Passed    0.33 sec
        Start  90: core/test/base/dim
 90/231 Test  #90: core/test/base/dim .......................................   Passed    0.33 sec
        Start  91: core/test/base/exception
 91/231 Test  #91: core/test/base/exception .................................   Passed    0.32 sec
        Start  92: core/test/base/exception_helpers
 92/231 Test  #92: core/test/base/exception_helpers .........................   Passed    0.42 sec
        Start  93: core/test/base/extended_float
 93/231 Test  #93: core/test/base/extended_float ............................***Failed    0.34 sec
        Start  94: core/test/base/executor
 94/231 Test  #94: core/test/base/executor ..................................***Failed    0.34 sec
        Start  95: core/test/base/iterator_factory
 95/231 Test  #95: core/test/base/iterator_factory ..........................   Passed    0.33 sec
        Start  96: core/test/base/lin_op
 96/231 Test  #96: core/test/base/lin_op ....................................   Passed    0.44 sec
        Start  97: core/test/base/math
 97/231 Test  #97: core/test/base/math ......................................   Passed    0.32 sec
        Start  98: core/test/base/matrix_assembly_data
 98/231 Test  #98: core/test/base/matrix_assembly_data ......................   Passed    0.33 sec
        Start  99: core/test/base/matrix_data
 99/231 Test  #99: core/test/base/matrix_data ...............................   Passed    0.33 sec
        Start 100: core/test/base/mtx_io
100/231 Test #100: core/test/base/mtx_io ....................................   Passed    0.48 sec
        Start 101: core/test/base/perturbation
101/231 Test #101: core/test/base/perturbation ..............................   Passed    0.43 sec
        Start 102: core/test/base/polymorphic_object
102/231 Test #102: core/test/base/polymorphic_object ........................   Passed    0.34 sec
        Start 103: core/test/base/range
103/231 Test #103: core/test/base/range .....................................   Passed    0.32 sec
        Start 104: core/test/base/range_accessors
104/231 Test #104: core/test/base/range_accessors ...........................   Passed    0.33 sec
        Start 105: core/test/base/sanitizers
105/231 Test #105: core/test/base/sanitizers ................................   Passed    0.32 sec
        Start 106: core/test/base/types
106/231 Test #106: core/test/base/types .....................................   Passed    0.33 sec
        Start 107: core/test/base/utils
107/231 Test #107: core/test/base/utils .....................................   Passed    0.44 sec
        Start 108: core/test/base/version
108/231 Test #108: core/test/base/version ...................................   Passed    0.33 sec
        Start 109: core/test/components/disjoint_sets
109/231 Test #109: core/test/components/disjoint_sets .......................   Passed    0.34 sec
        Start 110: core/test/mpi/base/communicator
110/231 Test #110: core/test/mpi/base/communicator ..........................   Passed    2.54 sec
        Start 111: core/test/mpi/base/exception_helpers
111/231 Test #111: core/test/mpi/base/exception_helpers .....................   Passed    0.62 sec
        Start 112: core/test/mpi/base/bindings
112/231 Test #112: core/test/mpi/base/bindings ..............................   Passed    1.84 sec
        Start 113: core/test/mpi/base/polymorphic_object
113/231 Test #113: core/test/mpi/base/polymorphic_object ....................   Passed    1.64 sec
        Start 114: core/test/mpi/base/rank_mapping
114/231 Test #114: core/test/mpi/base/rank_mapping ..........................   Passed    0.91 sec
        Start 115: core/test/mpi/distributed/helpers
115/231 Test #115: core/test/mpi/distributed/helpers ........................   Passed    0.59 sec
        Start 116: core/test/mpi/distributed/matrix
116/231 Test #116: core/test/mpi/distributed/matrix .........................   Passed    1.09 sec
        Start 117: core/test/factorization/elimination_forest
117/231 Test #117: core/test/factorization/elimination_forest ...............   Passed    0.43 sec
        Start 118: core/test/factorization/par_ic
118/231 Test #118: core/test/factorization/par_ic ...........................   Passed    0.41 sec
        Start 119: core/test/factorization/par_ict
119/231 Test #119: core/test/factorization/par_ict ..........................   Passed    0.36 sec
        Start 120: core/test/factorization/par_ilu
120/231 Test #120: core/test/factorization/par_ilu ..........................   Passed    0.34 sec
        Start 121: core/test/factorization/par_ilut
121/231 Test #121: core/test/factorization/par_ilut .........................   Passed    0.37 sec
        Start 122: core/test/log/convergence
122/231 Test #122: core/test/log/convergence ................................   Passed    0.36 sec
        Start 123: core/test/log/logger
123/231 Test #123: core/test/log/logger .....................................   Passed    0.32 sec
        Start 124: core/test/log/performance_hint
124/231 Test #124: core/test/log/performance_hint ...........................   Passed    0.34 sec
        Start 125: core/test/log/record
125/231 Test #125: core/test/log/record .....................................   Passed    0.36 sec
        Start 126: core/test/log/stream
126/231 Test #126: core/test/log/stream .....................................   Passed    0.43 sec
        Start 127: core/test/matrix/coo
127/231 Test #127: core/test/matrix/coo .....................................   Passed    0.38 sec
        Start 128: core/test/matrix/coo_builder
128/231 Test #128: core/test/matrix/coo_builder .............................   Passed    0.35 sec
        Start 129: core/test/matrix/csr
129/231 Test #129: core/test/matrix/csr .....................................   Passed    0.39 sec
        Start 130: core/test/matrix/csr_builder
130/231 Test #130: core/test/matrix/csr_builder .............................   Passed    0.34 sec
        Start 131: core/test/matrix/dense
131/231 Test #131: core/test/matrix/dense ...................................   Passed    0.35 sec
        Start 132: core/test/matrix/diagonal
132/231 Test #132: core/test/matrix/diagonal ................................   Passed    0.45 sec
        Start 133: core/test/matrix/ell
133/231 Test #133: core/test/matrix/ell .....................................   Passed    0.38 sec
        Start 134: core/test/matrix/fbcsr
134/231 Test #134: core/test/matrix/fbcsr ...................................   Passed    0.51 sec
        Start 135: core/test/matrix/fbcsr_builder
135/231 Test #135: core/test/matrix/fbcsr_builder ...........................   Passed    0.36 sec
        Start 136: core/test/matrix/hybrid
136/231 Test #136: core/test/matrix/hybrid ..................................   Passed    0.43 sec
        Start 137: core/test/matrix/identity
137/231 Test #137: core/test/matrix/identity ................................   Passed    0.46 sec
        Start 138: core/test/matrix/permutation
138/231 Test #138: core/test/matrix/permutation .............................   Passed    0.44 sec
        Start 139: core/test/matrix/sellp
139/231 Test #139: core/test/matrix/sellp ...................................   Passed    0.39 sec
        Start 140: core/test/matrix/sparsity_csr
140/231 Test #140: core/test/matrix/sparsity_csr ............................   Passed    0.37 sec
        Start 141: core/test/matrix/row_gatherer
141/231 Test #141: core/test/matrix/row_gatherer ............................   Passed    0.49 sec
        Start 142: core/test/multigrid/pgm
142/231 Test #142: core/test/multigrid/pgm ..................................   Passed    0.36 sec
        Start 143: core/test/multigrid/fixed_coarsening
143/231 Test #143: core/test/multigrid/fixed_coarsening .....................   Passed    0.36 sec
        Start 144: core/test/preconditioner/ic
144/231 Test #144: core/test/preconditioner/ic ..............................   Passed    0.36 sec
        Start 145: core/test/preconditioner/ilu
145/231 Test #145: core/test/preconditioner/ilu .............................   Passed    0.36 sec
        Start 146: core/test/preconditioner/isai
146/231 Test #146: core/test/preconditioner/isai ............................   Passed    0.55 sec
        Start 147: core/test/preconditioner/jacobi
147/231 Test #147: core/test/preconditioner/jacobi ..........................   Passed    0.39 sec
        Start 148: core/test/reorder/rcm
148/231 Test #148: core/test/reorder/rcm ....................................   Passed    0.34 sec
        Start 149: core/test/reorder/scaled_reordered
149/231 Test #149: core/test/reorder/scaled_reordered .......................   Passed    0.35 sec
        Start 150: core/test/solver/bicg
150/231 Test #150: core/test/solver/bicg ....................................   Passed    0.45 sec
        Start 151: core/test/solver/bicgstab
151/231 Test #151: core/test/solver/bicgstab ................................   Passed    0.49 sec
        Start 152: core/test/solver/cg
152/231 Test #152: core/test/solver/cg ......................................   Passed    0.48 sec
        Start 153: core/test/solver/cgs
153/231 Test #153: core/test/solver/cgs .....................................   Passed    0.48 sec
        Start 154: core/test/solver/fcg
154/231 Test #154: core/test/solver/fcg .....................................   Passed    0.49 sec
        Start 155: core/test/solver/gmres
155/231 Test #155: core/test/solver/gmres ...................................   Passed    0.48 sec
        Start 156: core/test/solver/cb_gmres
156/231 Test #156: core/test/solver/cb_gmres ................................   Passed    0.53 sec
        Start 157: core/test/solver/idr
157/231 Test #157: core/test/solver/idr .....................................   Passed    0.49 sec
        Start 158: core/test/solver/ir
158/231 Test #158: core/test/solver/ir ......................................   Passed    0.49 sec
        Start 159: core/test/solver/lower_trs
159/231 Test #159: core/test/solver/lower_trs ...............................   Passed    0.49 sec
        Start 160: core/test/solver/multigrid
160/231 Test #160: core/test/solver/multigrid ...............................   Passed    0.52 sec
        Start 161: core/test/solver/upper_trs
161/231 Test #161: core/test/solver/upper_trs ...............................   Passed    0.47 sec
        Start 162: core/test/solver/workspace
162/231 Test #162: core/test/solver/workspace ...............................   Passed    0.34 sec
        Start 163: core/test/stop/combined
163/231 Test #163: core/test/stop/combined ..................................   Passed    0.44 sec
        Start 164: core/test/stop/criterion
164/231 Test #164: core/test/stop/criterion .................................   Passed    0.34 sec
        Start 165: core/test/stop/iteration
165/231 Test #165: core/test/stop/iteration .................................   Passed    0.34 sec
        Start 166: core/test/stop/stopping_status
166/231 Test #166: core/test/stop/stopping_status ...........................   Passed    0.34 sec
        Start 167: core/test/stop/time
167/231 Test #167: core/test/stop/time ......................................   Passed    0.33 sec
        Start 168: core/test/utils/array_generator_test
168/231 Test #168: core/test/utils/array_generator_test .....................   Passed    0.33 sec
        Start 169: core/test/utils/assertions_test
169/231 Test #169: core/test/utils/assertions_test ..........................   Passed    0.35 sec
        Start 170: core/test/utils/matrix_generator_test
170/231 Test #170: core/test/utils/matrix_generator_test ....................   Passed    1.65 sec
        Start 171: core/test/utils/matrix_utils_test
171/231 Test #171: core/test/utils/matrix_utils_test ........................   Passed    3.73 sec
        Start 172: core/test/utils/fb_matrix_generator_test
172/231 Test #172: core/test/utils/fb_matrix_generator_test .................   Passed    0.46 sec
        Start 173: core/test/utils/unsort_matrix_test
173/231 Test #173: core/test/utils/unsort_matrix_test .......................   Passed    0.38 sec
        Start 174: core/test/utils/value_generator_test
174/231 Test #174: core/test/utils/value_generator_test .....................   Passed    0.32 sec
        Start 175: test/base/device_matrix_data_kernels_omp
175/231 Test #175: test/base/device_matrix_data_kernels_omp .................   Passed    0.53 sec
        Start 176: test/base/device_matrix_data_kernels_reference
176/231 Test #176: test/base/device_matrix_data_kernels_reference ...........   Passed    0.57 sec
        Start 177: test/base/kernel_launch_generic_omp
177/231 Test #177: test/base/kernel_launch_generic_omp ......................   Passed    0.69 sec
        Start 178: test/base/executor_omp
178/231 Test #178: test/base/executor_omp ...................................   Passed    0.34 sec
        Start 179: test/base/executor_reference
179/231 Test #179: test/base/executor_reference .............................   Passed    0.34 sec
        Start 180: test/components/absolute_array_kernels_omp
180/231 Test #180: test/components/absolute_array_kernels_omp ...............   Passed    0.35 sec
        Start 181: test/components/fill_array_kernels_omp
181/231 Test #181: test/components/fill_array_kernels_omp ...................   Passed    0.45 sec
        Start 182: test/components/format_conversion_kernels_omp
182/231 Test #182: test/components/format_conversion_kernels_omp ............   Passed    0.49 sec
        Start 183: test/components/precision_conversion_kernels_omp
183/231 Test #183: test/components/precision_conversion_kernels_omp .........   Passed    0.41 sec
        Start 184: test/components/prefix_sum_kernels_omp
184/231 Test #184: test/components/prefix_sum_kernels_omp ...................   Passed    0.36 sec
        Start 185: test/components/reduce_array_kernels_omp
185/231 Test #185: test/components/reduce_array_kernels_omp .................   Passed    0.34 sec
        Start 186: test/distributed/matrix_kernels_omp
186/231 Test #186: test/distributed/matrix_kernels_omp ......................   Passed    0.66 sec
        Start 187: test/distributed/partition_kernels_omp
187/231 Test #187: test/distributed/partition_kernels_omp ...................   Passed    0.40 sec
        Start 188: test/distributed/vector_kernels_omp
188/231 Test #188: test/distributed/vector_kernels_omp ......................   Passed    0.40 sec
        Start 189: test/factorization/cholesky_kernels_omp
189/231 Test #189: test/factorization/cholesky_kernels_omp ..................   Passed    0.36 sec
        Start 190: test/factorization/lu_kernels_omp
190/231 Test #190: test/factorization/lu_kernels_omp ........................   Passed  177.17 sec
        Start 191: test/factorization/par_ic_kernels_omp
191/231 Test #191: test/factorization/par_ic_kernels_omp ....................   Passed    7.96 sec
        Start 192: test/factorization/par_ict_kernels_omp
192/231 Test #192: test/factorization/par_ict_kernels_omp ...................   Passed   30.72 sec
        Start 193: test/factorization/par_ilu_kernels_omp
193/231 Test #193: test/factorization/par_ilu_kernels_omp ...................   Passed   29.66 sec
        Start 194: test/factorization/par_ilut_kernels_omp
194/231 Test #194: test/factorization/par_ilut_kernels_omp ..................   Passed  134.38 sec
        Start 195: test/matrix/csr_kernels_omp
195/231 Test #195: test/matrix/csr_kernels_omp ..............................   Passed    0.79 sec
        Start 196: test/matrix/csr_kernels2_omp
196/231 Test #196: test/matrix/csr_kernels2_omp .............................   Passed   20.05 sec
        Start 197: test/matrix/coo_kernels_omp
197/231 Test #197: test/matrix/coo_kernels_omp ..............................   Passed    1.45 sec
        Start 198: test/matrix/dense_kernels_omp
198/231 Test #198: test/matrix/dense_kernels_omp ............................***Failed    4.89 sec
        Start 199: test/matrix/diagonal_kernels_omp
199/231 Test #199: test/matrix/diagonal_kernels_omp .........................   Passed    4.36 sec
        Start 200: test/matrix/ell_kernels_omp
200/231 Test #200: test/matrix/ell_kernels_omp ..............................   Passed    2.90 sec
        Start 201: test/matrix/fbcsr_kernels_omp
201/231 Test #201: test/matrix/fbcsr_kernels_omp ............................   Passed    1.21 sec
        Start 202: test/matrix/fft_kernels_omp
202/231 Test #202: test/matrix/fft_kernels_omp ..............................   Passed    5.37 sec
        Start 203: test/matrix/hybrid_kernels_omp
203/231 Test #203: test/matrix/hybrid_kernels_omp ...........................   Passed    1.06 sec
        Start 204: test/matrix/matrix_omp
204/231 Test #204: test/matrix/matrix_omp ...................................   Passed   30.02 sec
        Start 205: test/matrix/sellp_kernels_omp
205/231 Test #205: test/matrix/sellp_kernels_omp ............................   Passed    1.36 sec
        Start 206: test/mpi/distributed/matrix_omp
206/231 Test #206: test/mpi/distributed/matrix_omp ..........................   Passed    1.73 sec
        Start 207: test/mpi/distributed/matrix_reference
207/231 Test #207: test/mpi/distributed/matrix_reference ....................   Passed    0.83 sec
        Start 208: test/mpi/distributed/vector_omp
208/231 Test #208: test/mpi/distributed/vector_omp ..........................   Passed    0.94 sec
        Start 209: test/mpi/distributed/vector_reference
209/231 Test #209: test/mpi/distributed/vector_reference ....................   Passed    0.88 sec
        Start 210: test/mpi/solver/solver_omp
210/231 Test #210: test/mpi/solver/solver_omp ...............................***Failed   83.18 sec
        Start 211: test/mpi/solver/solver_reference
211/231 Test #211: test/mpi/solver/solver_reference .........................   Passed   25.07 sec
        Start 212: test/multigrid/pgm_kernels_omp
212/231 Test #212: test/multigrid/pgm_kernels_omp ...........................   Passed    9.27 sec

@herbygillot
Copy link
Member

@barracuda156 can you rebase this on top of latest master?

@herbygillot
Copy link
Member

Also does ginkgo have new releases?

@barracuda156
Copy link
Contributor Author

@herbygillot No new releases as of a few days back at least. I will rebase today.

@barracuda156
Copy link
Contributor Author

barracuda156 commented Jun 1, 2023

@herbygillot I will deal with this now. Let me try using a newer commit also.

P. S. The build will take some time, it is huge with tests.

UPD. I think we just need to remove couple of tests in multigrid for PPC, since they freeze the OS badly. Everything else is good, there are minor failures, as before, but mostly tests pass. I will make an adjustment and rebase soon.

@barracuda156
Copy link
Contributor Author

@herbygillot Once CI pass, I am good with merging this.

@herbygillot
Copy link
Member

Most recent failure due to not finding OpenMP_C >= 3.0:

 CMake Error at /opt/local/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
    Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
    (Required is at least version "3.0")
  Call Stack (most recent call first):
    /opt/local/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
    /opt/local/share/cmake-3.24/Modules/FindOpenMP.cmake:545 (find_package_handle_standard_args)
    CMakeLists.txt:105 (find_package)

@barracuda156
Copy link
Contributor Author

barracuda156 commented Jun 2, 2023

@herbygillot Oh wow, how come it got broken. Let us make it non-default, what to do.

UPD. Ah, it is perhaps upstream has broken it in 1.6.0.

@barracuda156
Copy link
Contributor Author

Let’s see if it builds at least without OpenMP.

math/ginkgo/Portfile Outdated Show resolved Hide resolved
@herbygillot herbygillot merged commit c8436e8 into macports:master Jun 2, 2023
@barracuda156 barracuda156 deleted the ginkgo branch June 2, 2023 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants