ErrorChecking.h File Reference

Detailed Description

#include "core/Abort.h"
#include <sstream>
#include "gpu/DeviceWrapper.h"

Namespaces

 walberla
 \file TimestepTracker.h \ingroup lbm \author Frederik Hennig frede.nosp@m.rik..nosp@m.henni.nosp@m.g@fa.nosp@m.u.de
 
 walberla::gpu
 

Macros

#define WALBERLA_GPU_CHECK(ans)   { ::walberla::gpu::checkForError((ans), __FILE__, __LINE__); }
 
#define WALBERLA_GPU_CHECK_LAST_ERROR()   { ::walberla::gpu::checkForLastError(__FILE__, __LINE__); }
 

Functions

void walberla::gpu::checkForError (gpuError_t code, const std::string &callerPath, const int line)
 
void walberla::gpu::checkForLastError (const std::string &callerPath, const int line)
 

Macro Definition Documentation

◆ WALBERLA_GPU_CHECK

#define WALBERLA_GPU_CHECK (   ans)    { ::walberla::gpu::checkForError((ans), __FILE__, __LINE__); }

◆ WALBERLA_GPU_CHECK_LAST_ERROR

#define WALBERLA_GPU_CHECK_LAST_ERROR ( )    { ::walberla::gpu::checkForLastError(__FILE__, __LINE__); }