Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

[sundials-users] Cannot build SUNDIALS with -DENABLE_MAGMA=ON

8 views
Skip to first unread message

Anurag Nimonkar

unread,
Aug 2, 2024, 11:36:06 AM8/2/24
to SUNDIAL...@listserv.llnl.gov
Hi,

Sorry to be a bother, this is my third email on the topic. However, I am still unable to use the MAGMA linear solver with SUNDIALS and need it for running CFD simulations on the GPU.
The problem I am writing to you regarding is: the make process of SUNDIALS reads the following errors:
1. sunlinsol_magmadense.cpp(168): error: argument of type "sunindextype **" is incompatible with parameter of type "magma_int_t **"
2. In function ‘int check_matrix_entry(SUNMatrix, sunrealtype, sunrealtype)’:
/mnt/e/sundials/examples/sunmatrix/magmadense/test_sunmatrix_magmadense.cpp:261:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘sunindextype’ {aka ‘long int’}
make: *** [Makefile:146: all] Error 2

The local setups of MAGMA and SUNDIALS use the c++14 std. There is a type mis-match here maybe prompted by a newer release of MAGMA? My version is 2.8.0.
Could you guide me how to navigate this?
If not, are there any other open source options?

Sincerely,
Anurag Ravi Nimonkar




To unsubscribe from the SUNDIALS-USERS list: write to: mailto:SUNDIALS-USERS-...@LISTSERV.LLNL.GOV

Balos, Cody

unread,
Aug 2, 2024, 11:37:38 AM8/2/24
to SUNDIAL...@listserv.llnl.gov

Hi Anurag,

 

You need to configure SUNDIALS to use 32-bit integers for the sunindextype. Add the CMake option SUNDIALS_INDEX_SIZE=32 to do this. Then the types should match.

 

Regards,

Cody

Reply all
Reply to author
Forward
0 new messages