libflame  12600
Functions | Variables
FLASH_Ttmm_cntl_init.c File Reference

(r12600)

Functions

void FLASH_Ttmm_cntl_init ()
void FLASH_Ttmm_cntl_finalize ()

Variables

fla_herk_tflash_herk_cntl_op
fla_trmm_tflash_trmm_cntl_bp
fla_ttmm_tflash_ttmm_cntl_leaf
fla_ttmm_tflash_ttmm_cntl
fla_blocksize_tflash_ttmm_bsize

Function Documentation

void FLASH_Ttmm_cntl_finalize ( void  )
void FLASH_Ttmm_cntl_init ( void  )

References FLA_Blocksize_create(), and FLA_Cntl_ttmm_obj_create().

Referenced by FLA_Cntl_init_flash().

{
    // Set blocksize for hierarchical storage.
    flash_ttmm_bsize       = FLA_Blocksize_create( 1, 1, 1, 1 );

    // Create a control tree that assumes A is a b x b block.
    flash_ttmm_cntl_leaf   = FLA_Cntl_ttmm_obj_create( FLA_HIER,
                                                       FLA_SUBPROBLEM,
                                                       NULL,
                                                       NULL,
                                                       NULL,
                                                       NULL,
                                                       NULL );

    // Create a control tree that assumes A is large.
    flash_ttmm_cntl        = FLA_Cntl_ttmm_obj_create( FLA_HIER,
                                                       FLA_BLOCKED_VARIANT1, 
                                                       flash_ttmm_bsize,
                                                       flash_ttmm_cntl_leaf,
                                                       flash_herk_cntl_op,
                                                       flash_trmm_cntl_bp,
                                                       NULL );
}

Variable Documentation