2
0

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:
Ben Sander
2016-09-02 15:49:22 -05:00
ascendente 2c2f6ab078
cometimento 48b1f7a6ea
7 ficheiros modificados com 171 adições e 66 eliminações
+2 -2
Ver ficheiro
@@ -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);