12HIPContextScope::HIPContextScope(HIPDevice *device) : device(device)
14 hip_device_assert(device, hipCtxPushCurrent(device->hipContext));
17HIPContextScope::~HIPContextScope()
19 hip_device_assert(device, hipCtxPopCurrent(
NULL));
22# ifndef WITH_HIP_DYNLOAD
23const char *hipewErrorString(hipError_t result)
36const char *hipewCompilerPath()
38 return CYCLES_HIP_HIPCC_EXECUTABLE;
41int hipewCompilerVersion()
43 return (HIP_VERSION / 100) + (HIP_VERSION % 100 / 10);
#define CCL_NAMESPACE_END
static void error(const char *str)
CCL_NAMESPACE_BEGIN string string_printf(const char *format,...)