prof layer includes refactoring

This commit is contained in:
Evgeny
2019-06-11 20:13:29 -05:00
bovenliggende 9ddb0291fd
commit 19ca7a2a08
5 gewijzigde bestanden met toevoegingen van 32 en 28 verwijderingen
+5 -1
Bestand weergeven
@@ -21,7 +21,7 @@ THE SOFTWARE.
*/
#include "hip/hip_runtime.h"
#include "hip/hcc_detail/hip_prof_api.h"
#include "hip_prof_api.h"
// HIP API callback/activity
@@ -47,3 +47,7 @@ hipError_t hipRegisterActivityCallback(uint32_t id, void* fun, void* arg) {
hipError_t hipRemoveActivityCallback(uint32_t id) {
return callbacks_table.set_activity(id, NULL, NULL) ? hipSuccess : hipErrorInvalidValue;
}
const char* hipApiName(uint32_t id) {
return hip_api_name(id);
}