Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8f7118ab authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Merge branch 'fix_constants' into 'master'

Add ConjNoTrans value and missing explicit values in enums

See merge request solverstack/chameleon!495
parents 5edd304a b836e58f
No related branches found
No related tags found
1 merge request!495Add ConjNoTrans value and missing explicit values in enums
...@@ -129,15 +129,16 @@ typedef enum chameleon_storage_e { ...@@ -129,15 +129,16 @@ typedef enum chameleon_storage_e {
* @brief Transpostion * @brief Transpostion
*/ */
typedef enum chameleon_trans_e { typedef enum chameleon_trans_e {
ChamNoTrans = 111, /**< Use A */ ChamNoTrans = 111, /**< Use A */
ChamTrans = 112, /**< Use A^t */ ChamTrans = 112, /**< Use A^t */
ChamConjTrans = 113 /**< Use conj(A^t) */ ChamConjTrans = 113, /**< Use conj(A^t) */
ChamConjNoTrans = 114, /**< Use conj(A) */
} cham_trans_t; } cham_trans_t;
static inline int static inline int
isValidTrans( cham_trans_t trans ) isValidTrans( cham_trans_t trans )
{ {
if ( (trans >= ChamNoTrans) && (trans <= ChamConjTrans) ) { if ( (trans >= ChamNoTrans) && (trans <= ChamConjNoTrans) ) {
return 1; return 1;
} }
else { else {
...@@ -264,21 +265,21 @@ typedef enum chameleon_access_e { ...@@ -264,21 +265,21 @@ typedef enum chameleon_access_e {
* @brief Chameleon GEMM-like algorithms * @brief Chameleon GEMM-like algorithms
*/ */
typedef enum chameleon_gemm_e { typedef enum chameleon_gemm_e {
ChamGemmAlgAuto = -1, ChamGemmAlgAuto = -1,
ChamGemmAlgGeneric, ChamGemmAlgGeneric = 0,
ChamGemmAlgSummaA, ChamGemmAlgSummaA = 1,
ChamGemmAlgSummaB, ChamGemmAlgSummaB = 2,
ChamGemmAlgSummaC ChamGemmAlgSummaC = 3,
} cham_gemm_t; } cham_gemm_t;
/** /**
* @brief Chameleon GETRF algorithm variants * @brief Chameleon GETRF algorithm variants
*/ */
typedef enum chameleon_getrf_e { typedef enum chameleon_getrf_e {
ChamGetrfNoPiv, ChamGetrfNoPiv = 0,
ChamGetrfNoPivPerColumn, ChamGetrfNoPivPerColumn = 1,
ChamGetrfPPiv, ChamGetrfPPiv = 2,
ChamGetrfPPivPerColumn, ChamGetrfPPivPerColumn = 3,
} cham_getrf_t; } cham_getrf_t;
#define ChameleonTrd 1001 #define ChameleonTrd 1001
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment