Skip to content
Snippets Groups Projects
Commit c35ba799 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

use more specific type names.

parent 8bfaef59
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,9 @@ void matmul ( int m , int n , int k , double *a , int lda , double *b , int ldb
void test2 ( int m , int n , int k , int nr_threads ) {
int i, j, kk, qid, data[3], *d, tid, rid;
int i, j, kk, qid, data[3], *d;
qsched_task_t tid;
qsched_res_t rid;
struct qsched s;
struct task *t;
double *a, *b, *c, *res, err = 0.0, irm = 1.0/RAND_MAX;
......@@ -176,7 +178,9 @@ void test2 ( int m , int n , int k , int nr_threads ) {
void test1 ( int m , int n , int k , int nr_threads ) {
int i, j, qid, data[2], *d, tid, rid;
int i, j, qid, data[2], *d;
qsched_task_t tid;
qsched_res_t rid;
struct qsched s;
struct task *t;
double *a, *b, *c, *res, err = 0.0, irm = 1.0/RAND_MAX;
......
......@@ -485,7 +485,8 @@ void iact_self ( struct cell *c ) {
void create_tasks ( struct qsched *s , struct cell *ci , struct cell *cj ) {
int j, k, tid;
int j, k;
qsched_task_t tid;
struct cell *data[2];
double dx, r2;
......
......@@ -397,7 +397,8 @@ void test_qr ( int m , int n , int nr_threads ) {
int k, j, i;
double *A, *A_orig, *tau;
struct qsched s;
int *tid, *rid, tid_new;
qsched_task_t *tid, tid_new;
qsched_res_t *rid;
int data[3];
enum task_types { task_DGEQRF , task_DLARFT , task_DTSQRF , task_DSSRFT };
......@@ -425,8 +426,8 @@ void test_qr ( int m , int n , int nr_threads ) {
qsched_init( &s , nr_threads , m*n );
/* Allocate and init the task ID and resource ID matrix. */
if ( ( tid = (int *)malloc( sizeof(int) * m * n ) ) == NULL ||
( rid = (int *)malloc( sizeof(int) * m * n ) ) == NULL )
if ( ( tid = (qsched_task_t *)malloc( sizeof(qsched_task_t) * m * n ) ) == NULL ||
( rid = (qsched_res_t *)malloc( sizeof(qsched_res_t) * m * n ) ) == NULL )
error( "Failed to allocate tid/rid matrix." );
for ( k = 0 ; k < m * n ; k++ ) {
tid[k] = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment