Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: icl-utk-edu/magma
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0c0d222bec7381c3391bb2ac863fbc86c9e11aab
Choose a base ref
..
head repository: icl-utk-edu/magma
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 196f3b35cb63d47fe4c161f558e34a79145a1a4d
Choose a head ref
Showing with 6 additions and 9 deletions.
  1. +6 −9 sparse/include/magmasparse_types.h
15 changes: 6 additions & 9 deletions sparse/include/magmasparse_types.h
Original file line number Diff line number Diff line change
@@ -550,23 +550,20 @@ extern "C"
#define csrsm2Info_t int
#endif

#if CUDA_VERSION < 11000 || defined(MAGMA_HAVE_HIP)
typedef struct magma_solve_info_t
{
csrsm2Info_t descr{};
void *buffer{};
} magma_solve_info_t;
#define magma_ilu_info_t cusparseSolveAnalysisInfo_t
#else
typedef struct magma_solve_info_t
{
#if CUDA_VERSION < 11031
#if CUDA_VERSION < 11031 || defined(MAGMA_HAVE_HIP)
csrsm2Info_t descr{};
#else
cusparseSpSMDescr_t descr{};
#endif
void *buffer{};
} magma_solve_info_t;
// Older CUDA: use cusparseSolveAnalysisInfo_t
#if (defined(MAGMA_HAVE_CUDA) && CUDA_VERSION < 11000)
#define magma_ilu_info_t cusparseSolveAnalysisInfo_t
// HIP and newer CUDA: use csrsm2Info_t
#else
#define magma_ilu_info_t csrsm2Info_t
#endif