Neko
0.9.99
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 14 2024 03:37:58 for Neko by
1.9.1