Neko
0.9.99
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
7
void
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
}
cuda_check
void cuda_check(const char *fname, const int line, const cudaError_t err)
Definition
check.cu:7
check.h
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
src
device
cuda
check.cu
Generated on Sun Dec 22 2024 03:38:31 for Neko by
1.9.8