Mentions légales du service

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

Minor

parent 7e60e17d
No related branches found
No related tags found
1 merge request!191Simulation
......@@ -22,7 +22,7 @@
#include <chameleon.h>
#if ! defined(CHAMELEON_SIMULATION)
#if !defined(CHAMELEON_SIMULATION)
#include <coreblas/cblas.h>
#include <coreblas/lapacke.h>
......@@ -1882,4 +1882,4 @@ int check_zgels( run_arg_list_t *args, cham_trans_t trans, CHAM_desc_t *descA, C
return info_solution;
}
#endif // CHAMELEON_SIMULATION
#endif /* defined(CHAMELEON_SIMULATION) */
......@@ -62,7 +62,7 @@ static inline int check_zgeqrs ( run_arg_list_t *args, cham_trans_t trans
static inline int check_zgelqs ( run_arg_list_t *args, cham_trans_t trans, CHAM_desc_t *descA, double Bnorm, CHAM_desc_t *descR ) { return 0; }
static inline int check_zqc ( run_arg_list_t *args, cham_side_t side, cham_trans_t trans, CHAM_desc_t *descC, CHAM_desc_t *descQ, CHAM_desc_t *descCC ) { return 0; }
#else // !CHAMELEON_SIMULATION
#else /* !defined(CHAMELEON_SIMULATION) */
int check_zmatrices ( run_arg_list_t *args, cham_uplo_t uplo, CHAM_desc_t *descA, CHAM_desc_t *descB );
int check_znorm ( run_arg_list_t *args, cham_mtxtype_t mtxtype, cham_normtype_t norm_type, cham_uplo_t uplo,
......@@ -94,7 +94,7 @@ int check_zgeqrs ( run_arg_list_t *args, cham_trans_t trans, CHAM_desc_t
int check_zgelqs ( run_arg_list_t *args, cham_trans_t trans, CHAM_desc_t *descA, double Bnorm, CHAM_desc_t *descR );
int check_zqc ( run_arg_list_t *args, cham_side_t side, cham_trans_t trans, CHAM_desc_t *descC, CHAM_desc_t *descQ, CHAM_desc_t *descCC );
#endif // CHAMELEON_SIMULATION
#endif /* defined(CHAMELEON_SIMULATION) */
#endif
......@@ -568,18 +568,13 @@ char *sprint_string( val_t val, int human, int nbchar, char *str_in )
return str_in+rc;
}
/*
Rnd64seed is a global variable but it doesn't spoil thread safety. All matrix
generating threads only read Rnd64seed. It is safe to set Rnd64seed before
and after any calls to create_tile(). The only problem can be caused if
Rnd64seed is changed during the matrix generation time.
*/
//static unsigned long long int Rnd64seed = 100;
#define Rnd64_A 6364136223846793005ULL
#define Rnd64_C 1ULL
#define RndF_Mul 5.4210108624275222e-20f
/**
* @brief Generate a random number
*/
static inline unsigned long long int
testing_Rnd64_jump(unsigned long long int n, unsigned long long int seed ) {
unsigned long long int a_k, c_k, ran;
......
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