Skip to content

Commit

Permalink
Update the parsec_apply because of the changes in PaRSEC PR#676
Browse files Browse the repository at this point in the history
  • Loading branch information
Qinglei Cao authored and abouteiller committed Oct 25, 2024
1 parent 30f5cd9 commit 5cf5a0b
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/zlascal_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "dplasma.h"
#include "dplasma/types.h"
#include "dplasmaaux.h"
#include "parsec/data_dist/matrix/apply.h"
#include "cores/core_blas.h"


Expand Down Expand Up @@ -142,6 +143,9 @@ dplasma_zlascal_New( dplasma_enum_t uplo,
void
dplasma_zlascal_Destruct( parsec_taskpool_t *tp )
{
if( ((parsec_apply_taskpool_t *)tp)->_g_op_args ) {
free( ((parsec_apply_taskpool_t *)tp)->_g_op_args );
}
parsec_apply_Destruct(tp);
}

Expand Down
4 changes: 4 additions & 0 deletions src/zlaset_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "dplasma.h"
#include "dplasma/types.h"
#include "dplasmaaux.h"
#include "parsec/data_dist/matrix/apply.h"


static int
Expand Down Expand Up @@ -126,6 +127,9 @@ dplasma_zlaset_New( dplasma_enum_t uplo,
void
dplasma_zlaset_Destruct( parsec_taskpool_t *tp )
{
if( ((parsec_apply_taskpool_t *)tp)->_g_op_args ) {
free( ((parsec_apply_taskpool_t *)tp)->_g_op_args );
}
parsec_apply_Destruct(tp);
}

Expand Down
2 changes: 2 additions & 0 deletions src/zlatms_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ dplasma_zlatms( parsec_context_t *parsec,
parsec_context_start( parsec );
parsec_context_wait( parsec );
parsec_apply_Destruct(tp);
free(condptr);
}
else {
free(condptr);
return -1;
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/zplghe_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "dplasma.h"
#include "dplasma/types.h"
#include "dplasmaaux.h"
#include "parsec/data_dist/matrix/apply.h"
#include "cores/core_blas.h"


Expand Down Expand Up @@ -127,6 +128,9 @@ dplasma_zplghe_New( double bump, dplasma_enum_t uplo,
void
dplasma_zplghe_Destruct( parsec_taskpool_t *tp )
{
if( ((parsec_apply_taskpool_t *)tp)->_g_op_args ) {
free( ((parsec_apply_taskpool_t *)tp)->_g_op_args );
}
parsec_apply_Destruct(tp);
}

Expand Down
5 changes: 4 additions & 1 deletion src/zplgsy_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "dplasma.h"
#include "dplasma/types.h"
#include "dplasmaaux.h"

#include "parsec/data_dist/matrix/apply.h"
#include "cores/core_blas.h"

struct zplgsy_args_s {
Expand Down Expand Up @@ -129,6 +129,9 @@ dplasma_zplgsy_New( dplasma_complex64_t bump, dplasma_enum_t uplo,
void
dplasma_zplgsy_Destruct( parsec_taskpool_t *tp )
{
if( ((parsec_apply_taskpool_t *)tp)->_g_op_args ) {
free( ((parsec_apply_taskpool_t *)tp)->_g_op_args );
}
parsec_apply_Destruct(tp);
}

Expand Down
5 changes: 4 additions & 1 deletion src/zplrnt_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "dplasma.h"
#include "dplasma/types.h"
#include "dplasmaaux.h"

#include "parsec/data_dist/matrix/apply.h"
#include "cores/core_blas.h"


Expand Down Expand Up @@ -143,6 +143,9 @@ dplasma_zplrnt_New( int diagdom,
void
dplasma_zplrnt_Destruct( parsec_taskpool_t *tp )
{
if( ((parsec_apply_taskpool_t *)tp)->_g_op_args ) {
free( ((parsec_apply_taskpool_t *)tp)->_g_op_args );
}
parsec_apply_Destruct(tp);
}

Expand Down
2 changes: 2 additions & 0 deletions src/zpltmg_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,11 @@ dplasma_zpltmg_generic( parsec_context_t *parsec,
{
parsec_context_add_taskpool(parsec, (parsec_taskpool_t*)parsec_zpltmg);
dplasma_wait_until_completion(parsec);
free(params);
parsec_apply_Destruct( parsec_zpltmg );
return 0;
}
free(params);
return -101;
}

Expand Down

0 comments on commit 5cf5a0b

Please sign in to comment.