MAGMA  magma-1.4.0
Matrix Algebra on GPU and Multicore Architectures
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
common_magma.h File Reference
#include <stdio.h>
#include <cuda.h>
#include <cuda_runtime_api.h>
#include <cublas.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include <pthread.h>
#include <unistd.h>
#include <inttypes.h>
#include "magma.h"
#include "magma_lapack.h"
#include "operators.h"
#include "transpose.h"
Include dependency graph for common_magma.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define __func__   "<unknown>"
#define max(a, b)   ((a) > (b) ? (a) : (b))
#define min(a, b)   ((a) < (b) ? (a) : (b))
#define roundup(a, b)   (b <= 0) ? (a) : (((a) + (b)-1) & ~((b)-1))
#define magma_dsqrt   sqrt
#define magma_ssqrt   sqrt

Macro Definition Documentation

#define __func__   "<unknown>"

MAGMA facilities of interest to both src and magmablas directories **************************************************************************** C99 standard defines func. Some older compilers use FUNCTION. Note func is not a macro, so ifndef func doesn't work.

Definition at line 61 of file common_magma.h.

#define magma_dsqrt   sqrt

Define magma_[sd]sqrt functions

  • sqrt alone cannot be catched by the generation script because of tsqrt

Definition at line 92 of file common_magma.h.

#define magma_ssqrt   sqrt

Definition at line 93 of file common_magma.h.

#define max (   a,
)    ((a) > (b) ? (a) : (b))

Determine if weak symbol are allowed Global utilities

Definition at line 78 of file common_magma.h.

#define min (   a,
)    ((a) < (b) ? (a) : (b))

Definition at line 81 of file common_magma.h.

#define roundup (   a,
)    (b <= 0) ? (a) : (((a) + (b)-1) & ~((b)-1))

Definition at line 84 of file common_magma.h.