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

Error with 'int8' #377

Open
chuksyee opened this issue Jan 3, 2025 · 5 comments
Open

Error with 'int8' #377

chuksyee opened this issue Jan 3, 2025 · 5 comments

Comments

@chuksyee
Copy link

chuksyee commented Jan 3, 2025

I had compiled GraphBLAS-9.4.2 from source code with gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0.
When running the test suite "gbtest", the test fails at gbtest1 when it uses the type 'int8'. I tried running the gbtest1 manually by typing out each command at octave command-line as shown below. When I use type 'double' or 'uint8', it works fine. Would you know the reason for this error? Thanks for your help.

octave:4> rng ('default') ;
octave:5> X = 100 * sprand (3, 4, 0.4)
X =
Compressed Column Sparse (rows = 3, cols = 4, nnz = 5 [42%])

  (3, 2) -> 47.660
  (1, 3) -> 30.331
  (3, 3) -> 58.338
  (1, 4) -> 78.380
  (2, 4) -> 40.493

octave:6> m = 2 ;
octave:7> n = 3 ;
octave:8> A=GrB(X,'int8')
error:
error: called from
    GrB at line 630 column 30
@chuksyee
Copy link
Author

chuksyee commented Jan 3, 2025

I forgot to mention I was using octave-8.3.0.

@DrTimothyAldenDavis
Copy link
Owner

No idea. I don't maintain the Octave port, just the MATLAB one.

@chuksyee
Copy link
Author

chuksyee commented Jan 9, 2025

I saw this same error with Matlab.

@DrTimothyAldenDavis
Copy link
Owner

OK -- I will try to replicate it.

@DrTimothyAldenDavis
Copy link
Owner

I haven't been able to replicate this.

Can you try deleting your ~/.SuiteSparse folder? it might be stale. Also try rebuilding GraphBLAS from scratch, to see if that helps. If the problem persists, can you turn on the burble?

here is my output:

>> GrB.version

ans =

    '9.4.2 (Nov 18, 2024)'

>> rng ('default') ;
>> X = 100 * sprand (3, 4, 0.4)

X =

   (3,1)      95.7167
   (3,2)      48.5376
   (1,3)      15.7613
   (2,4)      97.0593
   (3,4)      80.0280

>> A=GrB(X,'int8')

A =

  3x4 GraphBLAS int8_t matrix, bitmap by col
  5 nonzeros, 5 entries, memory: 256 bytes

    (3,1)   96
    (3,2)   49
    (1,3)   16
    (2,4)   97
    (3,4)   80

>> GrB.burble(1)

ans =

     1

>> A=GrB(X,'int8')
 [ GxB_Matrix_pack_CSC 
   1.29e-05 sec ]
 [ GrB_apply (shallow-op) (sparse to bitmap) 
   0.000446 sec ]

A =
 [ GxB_Matrix_pack_BitmapC 
   8.11e-06 sec ]
 [ GrB_Matrix_nvals 
   9.54e-07 sec ]
 [ GxB_Matrix_pack_BitmapC 
   3.1e-06 sec ]
 (step1: 9.53674e-07 sec) (step2: 0 sec) (step3: 1.40667e-05 sec) (step4: 4.05312e-06 sec) (step5: 4.05312e-06 sec) [ GrB_assign (C iso assign) (pending: 0) Method 24: C = Z 
   9.92e-05 sec ]
 [ GrB_select (A bitmap) (iso select) (bitmap select) (sparse to hyper) 
   0.000138 sec ]
 [ GxB_unpack_HyperHash 
   0 sec ]
(iso export)  [ GxB_Matrix_pack_HyperCSC (iso import) 
   4.98e-05 sec ]
 [ GrB_Matrix_nvals 
   9.54e-07 sec ]
 [ GxB_Matrix_pack_BitmapC 
   1.91e-06 sec ]

  3x4 GraphBLAS int8_t matrix, bitmap by col
  5 nonzeros, 5 entries, memory: 256 bytes

    (3,1)   96
    (3,2)   49
    (1,3)   16
    (2,4)   97
    (3,4)   80

>> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants