Go to the source code of this file.
◆ Assert
Value: do { \
if (!(cond)) { \
fprintf(stderr, "Assert failed 💀. %s in file %s:%d\n", #cond, __FILE__, __LINE__); \
abort(); \
} \
} while (false)
Definition at line 78 of file check.hpp.
◆ Assertf
#define Assertf |
( |
|
cond, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| |
Value: do { \
if (!(cond)) { \
fprintf(stderr, "Assert failed 💀. %s in file %s:%d, message: " fmt "\n", #cond, __FILE__, __LINE__, __VA_ARGS__); \
abort(); \
} \
} while (false)
Definition at line 62 of file check.hpp.
◆ Asserts
#define Asserts |
( |
|
cond, |
|
|
|
s |
|
) |
| |
Value: do { \
if (!(cond)) { \
fprintf(stderr, "Assert failed 💀. %s in file %s:%d, message: " s "\n", #cond, __FILE__, __LINE__); \
abort(); \
} \
} while (false)
Definition at line 70 of file check.hpp.
◆ checkCudaErrors
#define checkCudaErrors |
( |
|
cudaErrorCode | ) |
|
Value: { \
cudaError_t status = cudaErrorCode; \
if (status != 0) { \
std::cout << "Cuda failure: " << cudaGetErrorString(status) << " at line " << __LINE__ \
<< " in file " << __FILE__ << " error status: " << status << std::endl; \
abort(); \
} \
}
Definition at line 52 of file check.hpp.
◆ checkKernel
#define checkKernel |
( |
|
... | ) |
|
◆ checkRuntime
◆ dprintf
◆ DS3D_INFER_ASSERT
#define DS3D_INFER_ASSERT |
( |
|
expr | ) |
|
Value: do { \
if (!(expr)) { \
fprintf(stderr, "%s:%d ASSERT(%s) \n", __FILE__, __LINE__, #expr); \
std::abort(); \
} \
} while (0)
Definition at line 34 of file check.hpp.
◆ DS3D_NVUNUSED
#define DS3D_NVUNUSED |
( |
|
a | ) |
{ (void)(a); } |
◆ DS3D_NVUNUSED2
#define DS3D_NVUNUSED2 |
( |
|
a, |
|
|
|
b |
|
) |
| |
Value: { \
(void)(a); \
(void)(b); \
}
Definition at line 25 of file check.hpp.