Hi,

On 16-09-2021 09:20, Michele Martone wrote:
>> root@autopkgtest-lxc-bexxro:/tmp/autopkgtest-lxc.ghhdpc6_/downtmp/build.J9f/src#
>> rsbench -CERROR 0xfffffc00 : The requested feature (e.g.:blocking) is
>> not available because it was opted out or not configured at built time.
> You have up to 160 threads.
> The hardcoded default (overridable ./configure --with-max-threads N) is 
> likely 128.>
> Can you export
>  OMP_NUM_THREADS=3 # or anything below the hardcoded limit of 128
> and rerun rsbench -C

root@autopkgtest-lxc-huzjhy:/tmp/autopkgtest-lxc.ohtynpml/downtmp/build.Ray/src#
OMP_NUM_THREADS=3 rsbench -C
rsbench version: 1.2.0
format switches:br
ops:spmv_uaua,spmv_uauz,spmv_uxua,spmv_unua,spmv_sasa,spsv_uxua,spmv_sxsa,spsv_sxsx,infty_norm,rowssums,scale
types:double,float,float complex,double complex
type char codes:D S C Z
transposition codes:n t c
restrict keyword is: on
row unrolls:1
column unrolls:1
reference benchmark sample minimum time (seconds):1
reference benchmark sample minimum runs:10
maximal configured block size:1
sizeof(rsb_nnz_idx_t):4
sizeof(rsb_coo_idx_t):4
sizeof(rsb_blk_idx_t):4
sizeof(size_t):4
sizeof(struct rsb_mtx_t):216
sizeof(struct rsb_blas_sparse_matrix_t):108
sizeof(struct rsb_coo_matrix_t):28
RSB_MAX_MATRIX_DIM:2147483137
RSB_MAX_MATRIX_NNZ:2147483392
RSB_CONST_MAX_SUPPORTED_CORES:64
RSB_BLAS_MATRICES_MAX:2147482623
RSB_CONST_MIN_NNZ_PER_ROW_FOR_COO_SWITCH:2
RSB_USER_SET_MEM_HIERARCHY_INFO:L2:4/64/512K,L1:8/64/24K
RSB_MAX_VALUE_FOR_TYPE(rsb_half_idx_t):65535
RSB_IOLEVEL:7
MKL:not linked.
XDR support: on.

> and/or redo the octave-sparsersb experiments ?

I ran autopkgtest with the --env option, it seems to do what I intended
as this run doesn't hang *and* reports some test ran. It still reports
the segfault.
root@ci-worker-armel-01:~# autopkgtest octave-sparsersb
--env=OMP_NUM_THREADS=3 --shell --shell-fail -- lxc
autopkgtest-unstable-armhf

[...]

***** demo
 disp("'sparsersb' can render sparse matrices into Encapsulated
Postscript files showing the RSB blocks layout.")
 rm = sparsersb(sprand(100000,100000,.0001));
 sparsersb(rm,'render','sptest.eps')
 disp("You can open sptest.eps now.")
994 tests, 994 passed, 0 known failure, 0 skipped
Run tests in debian/check.m
make: Entering directory
'/tmp/autopkgtest-lxc.o84pxsbs/downtmp/build.OTf/src/src'
LFLAGS=" " LDFLAGS=" " CXXFLAGS="  "  -D'RSB_SPARSERSB_LABEL=sparsersb'
-o sparsersb.oct sparsersb.cc
make: -p: No such file or directory
make: -p: No such file or directory
/bin/sh: 1: -DRSB_SPARSERSB_LABEL=sparsersb: not found
make: *** [Makefile:38: sparsersb.oct] Error 127
make: Leaving directory
'/tmp/autopkgtest-lxc.o84pxsbs/downtmp/build.OTf/src/src'
fatal: caught signal Segmentation fault
Summary: 995 tests, 995 passed, 0 known failures, 0 skipped


> If that was the problem, 
>  $ rsbench -B
> shall run fine (a few s will suffice); and

root@autopkgtest-lxc-vorfrc:/tmp/autopkgtest-lxc.x7kgxv0e/downtmp/build.6k2/src#
OMP_NUM_THREADS=3 rsbench -B

[...]

% rendering time ~ 0.000200033 s
PRINT TEST: END (SUCCESS)
BASIC SPARSE BLAS TEST: END (SUCCESS)
STRESS SPARSE BLAS TEST: BEGIN
STRESS SPARSE BLAS TEST: END (SUCCESS)
SPARSE BLAS TESTS: END (SUCCESS)
BASIC PRIMITIVES TEST: BEGIN
BASIC PRIMITIVES TEST: END (SUCCESS)
ADVANCED SPARSE BLAS TEST: BEGIN
      0: type:S sym:LT incX:1 incB:1 dim:         1 transT:N alpha:-2
beta:+1 diag:E subms:    1 nz:1 is ok
Terminating testing earlier due to interactive user request: test took
0.000000 s, max allowed was 0.000000.
        PASSED:1
        FAILED:0
ADVANCED SPARSE BLAS TEST: END (SUCCESS)

>  $ ./rsbench  -oa -Ob --dense 100 --verbose --verbose 
> --write-performance-record foo | grep ^pr.*1
> shall lead to something similar to
>  pr:    1:r_r  dense-100x100-10000nz 100 100 10000 1 D G N  4  0  0 4.1664 
> 4.1664 16 16 1525.20 1.311e-05 0.000e+00 1.311e-05 0.000e+00 2.420e-02 
> 9.46e+00 6.16e+00 0 2.00e-02

root@autopkgtest-lxc-vorfrc:/tmp/autopkgtest-lxc.x7kgxv0e/downtmp/build.6k2/src#
OMP_NUM_THREADS=3 rsbench  -oa -Ob --dense 100 --verbose --verbose
--write-performance-record foo | grep ^pr.*1
pr:    1:r_r  dense-100x100-10000nz 100 100 10000 1 D G N  3  0  0
4.1664 4.1664 16 16 2.28 8.768e-03 0.000e+00 8.768e-03 0.000e+00
2.452e+00 1.41e-02 6.16e+00 0 2.00e-02

> If that's the problem, maybe I can devise a fix to make the error easier
> to spot.

What about the negative free memory that's reported?

Paul

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to