11 HIPContextScope::HIPContextScope(HIPDevice *device) : device(device)
13 hip_device_assert(device, hipCtxPushCurrent(device->hipContext));
16 HIPContextScope::~HIPContextScope()
18 hip_device_assert(device, hipCtxPopCurrent(
NULL));
21 # ifndef WITH_HIP_DYNLOAD
22 const char *hipewErrorString(hipError_t
result)
35 const char *hipewCompilerPath()
37 return CYCLES_HIP_HIPCC_EXECUTABLE;
40 int hipewCompilerVersion()
42 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,...)