Skip to content
Snippets Groups Projects
Commit e17eee14 authored by Roland Greffe's avatar Roland Greffe
Browse files

fix SegFault when destroying MagmaHelper

parent 95e43590
No related branches found
No related tags found
No related merge requests found
Pipeline #12861 failed
...@@ -52,18 +52,8 @@ namespace gmshddm ...@@ -52,18 +52,8 @@ namespace gmshddm
{ {
// Free memory // Free memory
#ifdef HAVE_MAGMA #ifdef HAVE_MAGMA
if (_h_A != NULL) { if (!useGPUMRES)
magma_free_cpu(_h_A); this->freeMagmaCPUArrays();
}
if (_h_B != NULL) {
magma_free_cpu(_h_B);
}
if (_h_X != NULL) {
magma_free_cpu(_h_X);
}
if (_h_Mult != NULL) {
magma_free_cpu(_h_Mult);
}
magma_free( _d_A ); magma_free( _d_A );
magma_free( _d_B ); magma_free( _d_B );
magma_free( _d_Mult ); magma_free( _d_Mult );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment