libflame  12600
Functions | Variables
FLA_Sylv_cntl_init.c File Reference

(r12600)

Functions

void FLA_Sylv_cntl_init ()
void FLA_Sylv_cntl_finalize ()

Variables

fla_gemm_tfla_gemm_cntl_blas
fla_sylv_tfla_sylv_cntl_leaf
fla_sylv_tfla_sylv_cntl_mb
fla_sylv_tfla_sylv_cntl
fla_blocksize_tfla_sylv_bsize

Function Documentation

void FLA_Sylv_cntl_finalize ( void  )
void FLA_Sylv_cntl_init ( void  )

References FLA_Cntl_sylv_obj_create(), and FLA_Query_blocksizes().

Referenced by FLA_Cntl_init_flamec().

{
    // Set blocksize with default value for conventional storage.
    fla_sylv_bsize       = FLA_Query_blocksizes( FLA_DIMENSION_MIN );

    // Create a control tree to invoke LAPACK.
    fla_sylv_cntl_leaf   = FLA_Cntl_sylv_obj_create( FLA_FLAT,
#ifdef FLA_ENABLE_EXTERNAL_LAPACK_FOR_SUBPROBLEMS
                                                     FLA_BLOCKED_EXTERN, 
#else
                                                     FLA_UNB_OPT_VARIANT1,
#endif
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL );

    // Create a control tree to invoke variant 15.
    fla_sylv_cntl_mb     = FLA_Cntl_sylv_obj_create( FLA_FLAT, 
                                                     FLA_BLOCKED_VARIANT15,
                                                     fla_sylv_bsize,
                                                     fla_sylv_cntl_leaf,
                                                     NULL,
                                                     NULL,
                                                     fla_gemm_cntl_blas,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL );

    // Create a control tree to invoke variant 17.
    fla_sylv_cntl        = FLA_Cntl_sylv_obj_create( FLA_FLAT, 
                                                     FLA_BLOCKED_VARIANT17,
                                                     fla_sylv_bsize,
                                                     fla_sylv_cntl_mb,
                                                     NULL,
                                                     NULL,
                                                     fla_gemm_cntl_blas,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL,
                                                     NULL );
}

Variable Documentation

Referenced by FLA_Sylv_internal().