Neko 1.99.5
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 ale_add_kinematics_kernel(const int n, T *__restrict__ wx, T *__restrict__ wy, T *__restrict__ wz, const T *__restrict__ x_ref, const T *__restrict__ y_ref, const T *__restrict__ z_ref, const T *__restrict__ phi, const T *__restrict__ x, const T *__restrict__ y, const T *__restrict__ z, const kinematics_params_t kin_params)