mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-19 12:22:10 +00:00
Modified CSRG to work with latest versions; cusparse docs are unclear
This commit is contained in:
+5
-2
@@ -53,14 +53,17 @@ int FcusparseCreate()
|
||||
if (ret == CUSPARSE_STATUS_SUCCESS)
|
||||
cusparse_handle = handle;
|
||||
}
|
||||
fprintf(stderr,"Created cusparses_handle\n");
|
||||
return (ret);
|
||||
}
|
||||
|
||||
int FcusparseDestroy()
|
||||
{
|
||||
int val;
|
||||
val = (int) cusparseDestroy(*cusparse_handle);
|
||||
free(cusparse_handle);
|
||||
if (cusparse_handle!=NULL){
|
||||
val = (int) cusparseDestroy(*cusparse_handle);
|
||||
free(cusparse_handle);
|
||||
}
|
||||
cusparse_handle=NULL;
|
||||
return(val);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user