HiCMA
Hierarchical Computations on Manycore Architectures
time_zgemm_tile.c File Reference
#include "morse.h"
#include "timing.h"
#include "hicma_constants.h"
#include "hicma_struct.h"
#include "hicma_z.h"
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
#include "starpu.h"
#include <assert.h>
#include "auxcompute_z.h"
#include "auxdescutil.h"
#include "hicma.h"
#include "timing_zauxiliary.h"
#include <math.h>

Go to the source code of this file.

Macros

#define CBLAS_SADDR(_val)   (_val)
 
#define PROGRESS(str)
 
#define PROGRESS(str)
 

Functions

double timediff (struct timeval begin, struct timeval end)
 
void check_same (MORSE_desc_t *descL, MORSE_desc_t *descR, char diag, char lower_triangle)
 
int RunTest (int *iparam, double *dparam, morse_time_t *t_, char *rankfile)
 

Variables

STARSH_blrf * mpiF
 
int print_progress = 1
 
char datebuf [128]
 
time_t timer
 
struct tm * tm_info
 
int store_only_diagonal_tiles = 0
 
int global_check = 0
 
int global_always_fixed_rank = 0
 
int global_fixed_rank = 0
 
int num_mpi_ranks
 
int diag_nrows = 0
 
int main_print_index = 0
 
int print_index = 0
 
int main_print_mat = 0
 
int print_mat = 0
 
int use_scratch = 1
 

Detailed Description

This file shows how to generate tile low-rank (TLR) matrices and perform matrix multiplication.

HiCMA is a software package provided by King Abdullah University of Science and Technology (KAUST)

Version
0.1.1
Author
Kadir Akbudak
Date
2018-11-08

Definition in file time_zgemm_tile.c.

Macro Definition Documentation

◆ CBLAS_SADDR

#define CBLAS_SADDR (   _val)    (_val)

The meaning of the descriptors XU : U XV : V XD : U*V X : the original, non-approximated problem Xrk: rank of U and V, each tile of the matrix is a single number.

Definition at line 59 of file time_zgemm_tile.c.

◆ PROGRESS [1/2]

#define PROGRESS (   str)
Value:
int myrank = MORSE_My_Mpi_Rank();\
time(&timer); \
tm_info = localtime(&timer); \
strftime(datebuf, 26, "%Y-%m-%d %H:%M:%S",tm_info); \
fprintf(stdout, "%d:%s\t%d\t%s\t%s\n", myrank, datebuf, __LINE__, __func__, str);\
fflush(stdout);\
}
time_t timer
struct tm * tm_info
char datebuf[128]
int print_progress

Definition at line 78 of file time_zgemm_tile.c.

◆ PROGRESS [2/2]

#define PROGRESS (   str)

Definition at line 78 of file time_zgemm_tile.c.

Function Documentation

◆ timediff()

double timediff ( struct timeval  begin,
struct timeval  end 
)

Definition at line 92 of file time_zgemm_tile.c.

◆ check_same()

void check_same ( MORSE_desc_t *  descL,
MORSE_desc_t *  descR,
char  diag,
char  lower_triangle 
)

Definition at line 100 of file time_zgemm_tile.c.

◆ RunTest()

int RunTest ( int *  iparam,
double *  dparam,
morse_time_t t_,
char *  rankfile 
)

Definition at line 153 of file time_zgemm_tile.c.

Variable Documentation

◆ mpiF

STARSH_blrf* mpiF

Definition at line 62 of file time_zgemm_tile.c.

◆ print_progress

int print_progress = 1

Definition at line 64 of file time_zgemm_tile.c.

◆ datebuf

char datebuf[128]

Definition at line 65 of file time_zgemm_tile.c.

◆ timer

time_t timer

Definition at line 66 of file time_zgemm_tile.c.

◆ tm_info

struct tm* tm_info

Definition at line 67 of file time_zgemm_tile.c.

◆ store_only_diagonal_tiles

int store_only_diagonal_tiles = 0

Definition at line 80 of file time_zgemm_tile.c.

◆ global_check

int global_check = 0

Definition at line 81 of file time_zgemm_tile.c.

◆ global_always_fixed_rank

int global_always_fixed_rank = 0

Definition at line 82 of file time_zgemm_tile.c.

◆ global_fixed_rank

int global_fixed_rank = 0

Definition at line 83 of file time_zgemm_tile.c.

◆ num_mpi_ranks

int num_mpi_ranks

Definition at line 84 of file time_zgemm_tile.c.

◆ diag_nrows

int diag_nrows = 0

Definition at line 85 of file time_zgemm_tile.c.

◆ main_print_index

int main_print_index = 0

Definition at line 86 of file time_zgemm_tile.c.

◆ print_index

int print_index = 0

Definition at line 87 of file time_zgemm_tile.c.

◆ main_print_mat

int main_print_mat = 0

Definition at line 88 of file time_zgemm_tile.c.

◆ print_mat

int print_mat = 0

Definition at line 89 of file time_zgemm_tile.c.

◆ use_scratch

int use_scratch = 1

Definition at line 90 of file time_zgemm_tile.c.