SWDEV-412496 - treat USE_PROF_API to always be true

Change-Id: I77cfac409215a33d11228a0f2da9ffba63c3d73a
Cette révision appartient à :
Ioannis Assiouras
2023-07-18 22:57:40 +01:00
Parent 295963fe7a
révision cb7776ef07
4 fichiers modifiés avec 8 ajouts et 37 suppressions
-4
Voir le fichier
@@ -29,8 +29,6 @@ namespace activity_prof {
decltype(report_activity) report_activity{nullptr};
#if USE_PROF_API
#if defined(__linux__)
__thread activity_correlation_id_t correlation_id __attribute__((tls_model("initial-exec"))) = 0;
#elif defined(_WIN32)
@@ -106,8 +104,6 @@ void ReportActivity(const amd::Command& command) {
function(ACTIVITY_DOMAIN_HIP_OPS, operation_id, &record);
}
#endif // USE_PROF_API
} // namespace activity_prof
#define CASE_STRING(X, C) \
-10
Voir le fichier
@@ -32,10 +32,6 @@ namespace amd {
class Command;
} // namespace amd
#define USE_PROF_API 1
#if USE_PROF_API
enum OpId { OP_ID_DISPATCH = 0, OP_ID_COPY = 1, OP_ID_BARRIER = 2, OP_ID_NUMBER = 3 };
#include "prof_protocol.h"
@@ -81,10 +77,4 @@ void ReportActivity(const amd::Command& command);
} // namespace activity_prof
#else // !USE_PROF_API
static inline void ReportActivity(const amd::Command& command) {}
#endif // !USE_PROF_API
const char* getOclCommandKindString(cl_command_type kind);