Neko
0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
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
dirichlet_apply_scalar_kernel
__global__ void dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const T g, const int m)
Definition
dirichlet_kernel.h:42
check.h
src
device
hip
check.hip
Generated on Sun Dec 22 2024 03:38:31 for Neko by
1.9.8