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 <stdlib.h>
#include <stdio.h>
#include <cublas.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include <cuda_runtime_api.h>
#include <pthread.h>
#include <unistd.h>
#include <inttypes.h>
#include "magma.h"
#include "magma_lapack.h"
#include "operators.h"
#include "transpose.h"
#include "magma_threadsetting.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.

Macros

#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   sqrtf
 

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 65 of file common_magma.h.

#define magma_dsqrt   sqrt

Define magma_[sd]sqrt functions

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

Definition at line 98 of file common_magma.h.

#define magma_ssqrt   sqrtf

Definition at line 99 of file common_magma.h.

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

Determine if weak symbols are allowed Global utilities

Definition at line 82 of file common_magma.h.

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

Definition at line 86 of file common_magma.h.

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

Definition at line 90 of file common_magma.h.