Neko 1.99.3
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 dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const T g, const int m)

Check a Metal/NSError status and abort on failure

Definition at line 44 of file check.h.