SWDEV-423659: Disabling HIP_ACTIVITY when HSA_ACTIVITY is enabled.
Change-Id: If64fabdcd0d8a718dd0017c2bc821a94c999e87e
[ROCm/rocprofiler commit: 7418c52cc8]
This commit is contained in:
committed by
Giovanni Baraldi
orang tua
b92ddf8fd0
melakukan
3badb4ba81
@@ -676,6 +676,8 @@ Please report in the Github Issues.
|
||||
```
|
||||
|
||||
Recommended: "profile_standard" for counter collection and "auto" for all other profiling. Use rocm-smi to verify the current power state. For multiGPU systems (includes integrated graphics), replace "card0" by the desired card.
|
||||
- Timestamps may be incorrect with HIP_OPS when the system has been in sleep state.
|
||||
- HIP_OPS are mutually exclusive with HSA_OPS.
|
||||
|
||||
## Supported AMD GPU Architectures (V2)
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ THE SOFTWARE.
|
||||
#define PUBLIC_API __attribute__((visibility("default")))
|
||||
|
||||
// Error handler
|
||||
void fatal(const std::string msg) {
|
||||
void fatal(const std::string msg) [[noreturn]] {
|
||||
fflush(stdout);
|
||||
fprintf(stderr, "%s\n\n", msg.c_str());
|
||||
fflush(stderr);
|
||||
|
||||
@@ -686,11 +686,11 @@ ROCPROFILER_EXPORT bool OnLoad(void* table, uint64_t runtime_version, uint64_t f
|
||||
std::vector<rocprofiler_tracer_activity_domain_t> apis_requested;
|
||||
|
||||
if (getenv("ROCPROFILER_HIP_API_TRACE")) apis_requested.emplace_back(ACTIVITY_DOMAIN_HIP_API);
|
||||
if (getenv("ROCPROFILER_HIP_ACTIVITY_TRACE"))
|
||||
apis_requested.emplace_back(ACTIVITY_DOMAIN_HIP_OPS);
|
||||
if (getenv("ROCPROFILER_HSA_API_TRACE")) apis_requested.emplace_back(ACTIVITY_DOMAIN_HSA_API);
|
||||
if (getenv("ROCPROFILER_HSA_ACTIVITY_TRACE"))
|
||||
apis_requested.emplace_back(ACTIVITY_DOMAIN_HSA_OPS);
|
||||
else if (getenv("ROCPROFILER_HIP_ACTIVITY_TRACE"))
|
||||
apis_requested.emplace_back(ACTIVITY_DOMAIN_HIP_OPS);
|
||||
if (getenv("ROCPROFILER_ROCTX_TRACE")) apis_requested.emplace_back(ACTIVITY_DOMAIN_ROCTX);
|
||||
|
||||
// ATT Parameters
|
||||
|
||||
@@ -46,7 +46,7 @@ volatile bool is_loaded = false;
|
||||
// unsigned feature_count = 0;
|
||||
|
||||
// Error handler
|
||||
void fatal(const std::string msg) {
|
||||
void fatal(const std::string msg) [[noreturn]] {
|
||||
fflush(stdout);
|
||||
fprintf(stderr, "%s\n\n", msg.c_str());
|
||||
fflush(stderr);
|
||||
|
||||
@@ -39,7 +39,7 @@ THE SOFTWARE.
|
||||
pthread_mutex_t mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
|
||||
|
||||
// Error handler
|
||||
void fatal(const std::string msg) {
|
||||
void fatal(const std::string msg) [[noreturn]] {
|
||||
fflush(stdout);
|
||||
fprintf(stderr, "%s\n\n", msg.c_str());
|
||||
fflush(stderr);
|
||||
|
||||
@@ -159,7 +159,7 @@ static inline uint32_t GetTid() { return syscall(__NR_gettid); }
|
||||
uint32_t my_pid = GetPid();
|
||||
|
||||
// Error handler
|
||||
void fatal(const std::string msg) {
|
||||
void fatal(const std::string msg) [[noreturn]] {
|
||||
fflush(stdout);
|
||||
fprintf(stderr, "%s\n\n", msg.c_str());
|
||||
fflush(stderr);
|
||||
|
||||
Reference in New Issue
Block a user