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
[ROCm/clr commit: 745310399d]
This commit is contained in:
1 parent
a4934a7c66
commit
c5f7fd723a
7 files changed
+171
-66
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user