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
8void 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}
void hip_check(const char *fname, const int line, const hipError_t err)
Definition check.hip:8
__global__ void dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const T g, const int m)