libflame  revision_anchor
Functions | Variables
FLASH_Axpy.c File Reference

(r)

Functions

FLA_Error FLASH_Axpy (FLA_Obj alpha, FLA_Obj A, FLA_Obj B)
 

Variables

fla_axpy_tflash_axpy_cntl
 

Function Documentation

◆ FLASH_Axpy()

FLA_Error FLASH_Axpy ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B 
)

References FLA_Axpy_check(), FLA_Axpy_internal(), FLA_Check_error_level(), FLASH_Queue_disable(), FLASH_Queue_enable(), and FLASH_Queue_get_enabled().

16 {
17  FLA_Error r_val;
18  FLA_Bool enable_supermatrix;
19 
20  // Check parameters.
21  if ( FLA_Check_error_level() >= FLA_MIN_ERROR_CHECKING )
22  FLA_Axpy_check( alpha, A, B );
23 
24  // Find the status of SuperMatrix.
25  enable_supermatrix = FLASH_Queue_get_enabled();
26 
27  // Temporarily disable SuperMatrix.
29 
30  // Execute tasks.
31  r_val = FLA_Axpy_internal( alpha, A, B, flash_axpy_cntl );
32 
33  // Restore SuperMatrix to its previous status.
34  if ( enable_supermatrix )
36 
37  return r_val;
38 }
fla_axpy_t * flash_axpy_cntl
Definition: FLASH_Axpy_cntl_init.c:15
FLA_Error FLASH_Queue_disable(void)
Definition: FLASH_Queue.c:144
int FLA_Error
Definition: FLA_type_defs.h:47
FLA_Bool FLASH_Queue_get_enabled(void)
Definition: FLASH_Queue.c:171
FLA_Error FLA_Axpy_check(FLA_Obj alpha, FLA_Obj A, FLA_Obj B)
Definition: FLA_Axpy_check.c:13
unsigned int FLA_Check_error_level(void)
Definition: FLA_Check.c:18
int FLA_Bool
Definition: FLA_type_defs.h:46
FLA_Error FLA_Axpy_internal(FLA_Obj alpha, FLA_Obj A, FLA_Obj B, fla_axpy_t *cntl)
Definition: FLA_Axpy_internal.c:16
FLA_Error FLASH_Queue_enable(void)
Definition: FLASH_Queue.c:117

Variable Documentation

◆ flash_axpy_cntl

fla_axpy_t* flash_axpy_cntl