PC Sampling API: emit info logs instead of error (#53)

* PC Sampling API: emit info logs instead of error

Inside PC sampling API, emit info logs instead of
error logs. The tests verifies status code of each
API call and decide when to skip, instead of relying
on messages in logs.

The samples_processing.cpp test has been removed as it's
not used.
Cette révision appartient à :
Indic, Vladimir
2024-12-06 20:40:30 +01:00
révisé par GitHub
Parent bd447ab941
révision b4d7ee7887
6 fichiers modifiés avec 25 ajouts et 446 suppressions
+2 -1
Voir le fichier
@@ -421,7 +421,8 @@ configure_pc_sampling_on_all_agents(rocprofiler_context_id_t context)
if(pc_sampler->gpu_agents.empty())
{
*utils::get_output_stream() << "No availabe gpu agents supporting PC sampling" << std::endl;
*utils::get_output_stream() << "PC sampling unavailable" << std::endl;
// Emit the message to skip the test.
std::cerr << "PC sampling unavailable" << std::endl;
// Exit with no error if none of the GPUs support PC sampling.
exit(0);
}