waLBerla 7.3
Loading...
Searching...
No Matches
ErrorChecking.h File Reference

Detailed Description

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

Namespaces

namespace  walberla
 Storage for detected contacts which can be used to perform actions for all contacts, e.g.
namespace  walberla::gpu

Macros

#define WALBERLA_GPU_CHECK(ans)
#define WALBERLA_GPU_CHECK_LAST_ERROR()

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)
Value:
{ ::walberla::gpu::checkForError((ans), __FILE__, __LINE__); }
void checkForError(gpuError_t code, const std::string &callerPath, const int line)
Definition ErrorChecking.h:39

◆ WALBERLA_GPU_CHECK_LAST_ERROR

#define WALBERLA_GPU_CHECK_LAST_ERROR ( )
Value:
{ ::walberla::gpu::checkForLastError(__FILE__, __LINE__); }
void checkForLastError(const std::string &callerPath, const int line)
Definition ErrorChecking.h:52