MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / _checkHost

Function _checkHost

cpp/3_CUDA_Features/bindlessTexture/bindlessTexture.h:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54#pragma pack(pop)
55
56inline void _checkHost(bool test, const char *condition, const char *file, int line, const char *func)
57{
58 if (!test) {
59 fprintf(stderr, "HOST error at %s:%d (%s) \"%s\" \n", file, line, condition, func);
60 exit(EXIT_FAILURE);
61 }
62}
63
64#define checkHost(condition) _checkHost(condition, #condition, __FILE__, __LINE__, __FUNCTION__)
65

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected