8 # ifdef WITH_HIP_DYNLOAD
17 class HIPContextScope {
19 HIPContextScope(HIPDevice *device);
27 # define hip_device_assert(hip_device, stmt) \
29 hipError_t result = stmt; \
30 if (result != hipSuccess) { \
31 const char *name = hipewErrorString(result); \
32 hip_device->set_error( \
33 string_printf("%s in %s (%s:%d)", name, #stmt, __FILE__, __LINE__)); \
38 # define hip_assert(stmt) hip_device_assert(this, stmt)
40 # ifndef WITH_HIP_DYNLOAD
43 const char *hipewErrorString(hipError_t
result);
44 const char *hipewCompilerPath();
45 int hipewCompilerVersion();
48 static inline bool hipSupportsDevice(
const int hipDevId)
51 hipDeviceGetAttribute(&major, hipDeviceAttributeComputeCapabilityMajor, hipDevId);
52 hipDeviceGetAttribute(&minor, hipDeviceAttributeComputeCapabilityMinor, hipDevId);
#define CCL_NAMESPACE_END