Neko 1.99.5
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
check.h File Reference
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for check.h:

Go to the source code of this file.

Macros

#define METAL_CHECK(err)
 

Macro Definition Documentation

◆ METAL_CHECK

#define METAL_CHECK (   err)
Value:
do { \
if ((err) != nil) { \
fprintf(stderr, "%s:%d Metal error: %s\n", __FILE__, __LINE__, \
} \
} while (0)
__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)

Check a Metal/NSError status and abort on failure

Definition at line 44 of file check.h.