ReUseX  0.0.1
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
check.hpp File Reference
#include <assert.h>
#include <cuda_runtime.h>
#include <spdlog/spdlog.h>
#include <stdarg.h>
#include <stdio.h>
#include <string>
Include dependency graph for check.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ReUseX
namespace  ReUseX::vision
namespace  ReUseX::vision::tensor_rt
namespace  ReUseX::vision::tensor_rt::nv

Macros

#define NVUNUSED2(a, b)
#define NVUNUSED(a)
#define checkRuntime(call)
#define checkKernel(...)
#define dprintf(...)

Functions

static bool ReUseX::vision::tensor_rt::nv::check_runtime (cudaError_t e, const char *call, int line, const char *file)
template<typename... Args>
constexpr void ReUseX::vision::tensor_rt::Assertf (bool cond, const char *fmt, Args... args)
constexpr void ReUseX::vision::tensor_rt::Asserts (bool cond, const char *s)
constexpr void ReUseX::vision::tensor_rt::Assert (bool cond)

Macro Definition Documentation

◆ checkKernel

#define checkKernel ( ...)
Value:
do { \
__VA_ARGS__; \
ReUseX::vision::tensor_rt::nv::check_runtime( \
cudaPeekAtLastError(), #__VA_ARGS__, __LINE__, __FILE__); \
} while (false)

Definition at line 36 of file check.hpp.

◆ checkRuntime

#define checkRuntime ( call)

◆ dprintf

#define dprintf ( ...)

Definition at line 42 of file check.hpp.

◆ NVUNUSED

#define NVUNUSED ( a)
Value:
{ \
(void)(a); \
}

Definition at line 17 of file check.hpp.

◆ NVUNUSED2

#define NVUNUSED2 ( a,
b )
Value:
{ \
(void)(a); \
(void)(b); \
}

Definition at line 12 of file check.hpp.