Neko
0.9.0
A portable framework for high-order spectral element flow simulations
check.hip
Go to the documentation of this file.
1
#include <stdio.h>
2
#include <hip/hip_runtime.h>
3
#include <
device/hip/check.h
>
4
8
void
hip_check
(
const
char
*fname,
const
int
line,
const
hipError_t err)
9
{
10
if
(err != hipSuccess) {
11
fprintf(stderr,
"%s in %s:%d \n"
, hipGetErrorString(err), fname, line);
12
exit(1);
13
}
14
}
hip_check
void hip_check(const char *fname, const int line, const hipError_t err)
Definition:
check.hip:8
check.h
src
device
hip
check.hip
Generated on Thu Nov 7 2024 10:53:27 for Neko by
1.9.1