Neko 1.99.5
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
check.cu
Go to the documentation of this file.
1#include <stdio.h>
2#include <device/cuda/check.h>
3
7void cuda_check(const char *fname, const int line, const cudaError_t err)
8{
9 if (err != cudaSuccess) {
10 fprintf(stderr, "%s in %s:%d \n", cudaGetErrorString(err), fname, line);
11 exit(1);
12 }
13}
void cuda_check(const char *fname, const int line, const cudaError_t err)
Definition check.cu:7
__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)