Dhondtguido / PaStiX4CalculiX

Other
16 stars 7 forks source link

Probably incorrect cudaFree in SpMVFloatVector::~SpMVFloatVector #18

Open uebian opened 1 year ago

uebian commented 1 year ago

There is a cudaFree call in SpMVFloatVector::~SpMVFloatVector function in SpMV.cu file. According to bvec.c, we allocate GPU memory by requesting a large space and then manage manually, so we are not supposed to use cudaFree in SpMV.cu file. In our test, we obversed that cudaFree here always fail because the pointer passed into it is not the pointer returned from cudaMalloc