Skip to content

Commit 27dd089

Browse files
committed
Fix unit tests, remove get_use_cache_output
1 parent 6055620 commit 27dd089

File tree

6 files changed

+334
-249
lines changed

6 files changed

+334
-249
lines changed

projects/rocprofiler-systems/source/lib/core/config.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,12 +2555,6 @@ get_caching_perfetto()
25552555
return _v;
25562556
}
25572557

2558-
bool
2559-
get_use_cache_output()
2560-
{
2561-
return get_use_rocpd() || get_caching_perfetto();
2562-
}
2563-
25642558
int
25652559
get_kill_delay()
25662560
{

projects/rocprofiler-systems/source/lib/core/config.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,6 @@ get_use_rocpd() ROCPROFSYS_HOT;
385385
bool&
386386
get_caching_perfetto() ROCPROFSYS_HOT;
387387

388-
bool
389-
get_use_cache_output() ROCPROFSYS_HOT;
390-
391388
bool
392389
get_merge_perfetto_files();
393390

projects/rocprofiler-systems/source/lib/rocprof-sys/library/pmc/collectors/gpu/cache_policy.hpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,12 @@ struct cache_policy
3838
*/
3939
static void initialize_category_metadata()
4040
{
41-
if(!get_use_cache_output())
42-
{
43-
return;
44-
}
4541
trace_cache::get_metadata_registry().add_string(
4642
trait::name<category::amd_smi>::value);
4743
}
4844

4945
static void initialize_tracks_metadata()
5046
{
51-
if(!get_use_cache_output())
52-
{
53-
return;
54-
}
55-
5647
const auto thread_id = std::nullopt;
5748

5849
trace_cache::get_metadata_registry().add_track(
@@ -163,11 +154,6 @@ struct cache_policy
163154
*/
164155
static void initialize_pmc_metadata(size_t gpu_id)
165156
{
166-
if(!get_use_cache_output())
167-
{
168-
return;
169-
}
170-
171157
// Metadata field constants for PMC info registration
172158
constexpr size_t EVENT_CODE = 0;
173159
constexpr size_t INSTANCE_ID = 0;
@@ -343,10 +329,6 @@ struct cache_policy
343329
const enabled_metrics& enabled_metrics_cfg,
344330
const metrics& metric_values, unsigned long timestamp)
345331
{
346-
if(!get_use_cache_output())
347-
{
348-
return;
349-
}
350332
enabled_metrics _enabled_metrics = { .value = enabled_metrics_cfg.value &
351333
supported_metrics.value };
352334

0 commit comments

Comments
 (0)