Remove now unused hsa_rsrc_factory

Change-Id: I66175eb9fae2e7e61400af77a0c89be9c39e770e
이 커밋은 다음에 포함됨:
Laurent Morichetti
2022-05-05 08:10:51 -07:00
부모 f8462b8637
커밋 4ced94b9a2
5개의 변경된 파일과 11개의 추가작업 그리고 1337개의 파일을 삭제
+10
파일 보기
@@ -48,6 +48,16 @@
#define CONSTRUCTOR_API __attribute__((constructor))
#define DESTRUCTOR_API __attribute__((destructor))
#define CHECK_STATUS(msg, status) \
do { \
if ((status) != HSA_STATUS_SUCCESS) { \
const char* status_string = nullptr; \
hsa_status_string(status, &status_string); \
ERR_LOGGING(msg << ": " << (status_string ? status_string : "<unknown error>")); \
abort(); \
} \
} while (false)
#define HIPAPI_CALL(call) \
do { \
hipError_t err = call; \
+1 -9
파일 보기
@@ -28,7 +28,6 @@
#include <atomic>
#include "util/hsa_rsrc_factory.h"
#include "util/exception.h"
#include "util/logger.h"
@@ -114,14 +113,7 @@ class Tracker {
entry->begin = async_copy_time.start * sysclock_period;
entry->end = async_copy_time.end * sysclock_period;
} else {
hsa_amd_profiling_dispatch_time_t dispatch_time{};
hsa_status_t status =
hsa_amd_profiling_get_dispatch_time(entry->agent, entry->signal, &dispatch_time);
if (status != HSA_STATUS_SUCCESS)
EXC_RAISING(ROCTRACER_STATUS_ERROR, "hsa_amd_profiling_get_dispatch_time failed");
entry->begin = dispatch_time.start * sysclock_period;
entry->end = dispatch_time.end * sysclock_period;
entry->dev_index = ::util::HsaRsrcFactory::Instance().GetAgentInfo(entry->agent)->dev_index;
assert(false && "should not reach here");
}
hsa_signal_t orig = entry->orig;