diff --git a/source/lib/rocprofiler-sdk/hip/hip.cpp b/source/lib/rocprofiler-sdk/hip/hip.cpp index e2eee921..8920246c 100644 --- a/source/lib/rocprofiler-sdk/hip/hip.cpp +++ b/source/lib/rocprofiler-sdk/hip/hip.cpp @@ -222,9 +222,6 @@ hip_api_impl::functor(Args... args) return; } - ROCP_FATAL_IF(external_corr_ids.size() < (callback_contexts.size() + buffered_contexts.size())) - << "missing external correlation ids"; - auto buffer_record = common::init_public_api_struct(buffered_api_data_t{}); auto tracer_data = common::init_public_api_struct(callback_api_data_t{}); auto* corr_id = tracing::correlation_service::construct(ref_count); diff --git a/source/lib/rocprofiler-sdk/hsa/hsa.cpp b/source/lib/rocprofiler-sdk/hsa/hsa.cpp index 694ff671..1e5a6ca3 100644 --- a/source/lib/rocprofiler-sdk/hsa/hsa.cpp +++ b/source/lib/rocprofiler-sdk/hsa/hsa.cpp @@ -337,9 +337,6 @@ hsa_api_impl::functor(Args... args) return; } - ROCP_FATAL_IF(external_corr_ids.size() < (callback_contexts.size() + buffered_contexts.size())) - << "missing external correlation ids"; - auto buffer_record = common::init_public_api_struct(buffer_hsa_api_record_t{}); auto tracer_data = common::init_public_api_struct(callback_hsa_api_data_t{}); auto* corr_id = tracing::correlation_service::construct(ref_count); diff --git a/source/lib/rocprofiler-sdk/marker/marker.cpp b/source/lib/rocprofiler-sdk/marker/marker.cpp index 6a6de2bc..b6efa826 100644 --- a/source/lib/rocprofiler-sdk/marker/marker.cpp +++ b/source/lib/rocprofiler-sdk/marker/marker.cpp @@ -165,9 +165,6 @@ roctx_api_impl::functor(Args... args) return; } - ROCP_FATAL_IF(external_corr_ids.size() < (callback_contexts.size() + buffered_contexts.size())) - << "missing external correlation ids"; - auto ref_count = 2; auto buffer_record = common::init_public_api_struct(buffered_api_data_t{}); auto tracer_data = common::init_public_api_struct(callback_api_data_t{}); diff --git a/source/lib/rocprofiler-sdk/tracing/tracing.hpp b/source/lib/rocprofiler-sdk/tracing/tracing.hpp index 49f8863a..7cc214fe 100644 --- a/source/lib/rocprofiler-sdk/tracing/tracing.hpp +++ b/source/lib/rocprofiler-sdk/tracing/tracing.hpp @@ -37,94 +37,6 @@ namespace rocprofiler { namespace tracing { -// template -// bool -// context_filter(const context::context* ctx, DomainT domain, Args... args); - -// template -// void -// populate_contexts(rocprofiler_callback_tracing_kind_t callback_domain_idx, -// rocprofiler_buffer_tracing_kind_t buffered_domain_idx, -// rocprofiler_tracing_operation_t operation_idx, -// callback_context_data_vec_t& callback_contexts, -// buffered_context_data_vec_t& buffered_contexts, -// external_correlation_id_map_t& extern_corr_ids, -// ClearContainersT = ClearContainersT{}); - -// template -// void -// populate_contexts(rocprofiler_callback_tracing_kind_t callback_domain_idx, -// rocprofiler_buffer_tracing_kind_t buffered_domain_idx, -// callback_context_data_vec_t& callback_contexts, -// buffered_context_data_vec_t& buffered_contexts, -// external_correlation_id_map_t& extern_corr_ids, -// ClearContainersT = ClearContainersT{}); - -// template -// void -// populate_contexts(rocprofiler_callback_tracing_kind_t callback_domain_idx, -// rocprofiler_buffer_tracing_kind_t buffered_domain_idx, -// rocprofiler_tracing_operation_t operation_idx, -// tracing_data& data, -// ClearContainersT = ClearContainersT{}); - -// template -// void -// populate_contexts(rocprofiler_callback_tracing_kind_t callback_domain_idx, -// rocprofiler_buffer_tracing_kind_t buffered_domain_idx, -// tracing_data& data, -// ClearContainersT = ClearContainersT{}); - -// void -// populate_external_correlation_ids(external_correlation_id_map_t& external_corr_ids, -// rocprofiler_thread_id_t thr_id, -// rocprofiler_external_correlation_id_request_kind_t kind, -// rocprofiler_tracing_operation_t operation, -// uint64_t internal_corr_id); - -// void -// update_external_correlation_ids(external_correlation_id_map_t& external_corr_ids, -// rocprofiler_thread_id_t thr_id, -// rocprofiler_external_correlation_id_request_kind_t kind); - -// template -// void -// execute_phase_none_callbacks(callback_context_data_vec_t& callback_contexts, -// rocprofiler_thread_id_t thr_id, -// uint64_t internal_corr_id, -// external_correlation_id_map_t& external_corr_ids, -// rocprofiler_callback_tracing_kind_t domain, -// rocprofiler_tracing_operation_t operation, -// TracerDataT& tracer_data); - -// template -// void -// execute_phase_enter_callbacks(callback_context_data_vec_t& callback_contexts, -// rocprofiler_thread_id_t thr_id, -// uint64_t internal_corr_id, -// external_correlation_id_map_t& external_corr_ids, -// rocprofiler_callback_tracing_kind_t domain, -// rocprofiler_tracing_operation_t operation, -// TracerDataT& tracer_data); - -// template -// void -// execute_phase_exit_callbacks(callback_context_data_vec_t& callback_contexts, -// external_correlation_id_map_t& external_corr_ids, -// rocprofiler_callback_tracing_kind_t domain, -// rocprofiler_tracing_operation_t operation, -// TracerDataT& tracer_data); - -// template -// void -// execute_buffer_record_emplace(buffered_context_data_vec_t& buffered_contexts, -// rocprofiler_thread_id_t thr_id, -// uint64_t internal_corr_id, -// external_correlation_id_map_t& external_corr_ids, -// rocprofiler_buffer_tracing_kind_t domain, -// OperationT operation, -// BufferRecordT&& base_record); - template inline bool context_filter(const context::context* ctx, DomainT domain, Args... args)