refactor ihipPreLaunchKernel phase#1
- Fix calls to HIP_INIT_API to pass all function arguments.
- Change ihipFunction to follow coding convention:
- leading underscore for member fields,
- camelCase for member fields.
- move kernel print function inside ihipPreLaunchKernel.
- add HIP_TRACE_API_COLOR, control color of messages.
- add ihipLogStatus wrapper to hipDeviceSynchronize()
Change-Id: I20bbb644da213f821404648945197254e3648fc9
Este cometimento está contido em:
@@ -161,7 +161,7 @@ hipError_t hipSetDevice(int deviceId)
|
||||
hipError_t hipDeviceSynchronize(void)
|
||||
{
|
||||
HIP_INIT_API();
|
||||
return ihipSynchronize();
|
||||
return ihipLogStatus(ihipSynchronize());
|
||||
}
|
||||
|
||||
|
||||
@@ -182,7 +182,7 @@ hipError_t hipDeviceReset(void)
|
||||
|
||||
if (ctx) {
|
||||
// Release ctx resources (streams and memory):
|
||||
ctx->locked_reset();
|
||||
ctx->locked_reset();
|
||||
}
|
||||
|
||||
return ihipLogStatus(hipSuccess);
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador