ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
rocm.h File Reference
#include <complex>
#include <hip/hip_runtime.h>
#include <hipblas/hipblas.h>
#include <hipsolver/hipsolver.h>
Include dependency graph for rocm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GetTypeRocm< T >
struct  GetTypeRocm< int >
struct  GetTypeRocm< float >
struct  GetTypeRocm< double >
struct  GetTypeRocm< int64_t >
struct  GetTypeRocm< std::complex< float > >
struct  GetTypeRocm< std::complex< double > >

Macros

#define THREADS_PER_BLOCK   256
#define hipsolverErrcheck(res)
#define hipblasErrcheck(res)
#define hipErrcheck(res)
#define hipCheckOnDebug()

Functions

void hipsolverAssert (hipsolverStatus_t code, const char *file, int line, bool abort=true)
void hipblasAssert (hipblasStatus_t code, const char *file, int line, bool abort=true)

Macro Definition Documentation

◆ hipblasErrcheck

#define hipblasErrcheck ( res)
Value:
{ \
hipblasAssert((res), __FILE__, __LINE__); \
}

◆ hipCheckOnDebug

#define hipCheckOnDebug ( )

◆ hipErrcheck

#define hipErrcheck ( res)
Value:
{ \
if (res != hipSuccess) \
{ \
fprintf(stderr, " Unexpected Device Error %s:%d: %s, %s\n", __FILE__, __LINE__, hipGetErrorName(res), \
hipGetErrorString(res)); \
exit(res); \
} \
}

◆ hipsolverErrcheck

#define hipsolverErrcheck ( res)
Value:
{ \
hipsolverAssert((res), __FILE__, __LINE__); \
}

◆ THREADS_PER_BLOCK

#define THREADS_PER_BLOCK   256

Function Documentation

◆ hipblasAssert()

void hipblasAssert ( hipblasStatus_t code,
const char * file,
int line,
bool abort = true )
inline
Here is the call graph for this function:

◆ hipsolverAssert()

void hipsolverAssert ( hipsolverStatus_t code,
const char * file,
int line,
bool abort = true )
inline
Here is the call graph for this function: