More comprehensive IOCTL PC sampling checks (mi200 and mi300) (#1045)
* More comprehensive IOCTL PC sampling checks (mi200 and mi300) * PC sampling tests: formatting
Этот коммит содержится в:
1 родитель
93e82663d9
Коммит
8bf2ce622c
3 files changed
+39
-18
No files matched your search
@@ -20,6 +20,8 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
#include "lib/common/utility.hpp"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <rocprofiler-sdk/buffer.h>
|
||||
#include <rocprofiler-sdk/fwd.h>
|
||||
@@ -243,9 +245,11 @@ TEST(pc_sampling, query_configs_after_service_setup)
|
||||
static_cast<void*>(&cb_data->gpu_pcs_agents)),
|
||||
"Failed to find GPU agents");
|
||||
|
||||
// TODO-VLAINDIC: Can we dynamically skip the test if the underlying
|
||||
// HW does not support PC sampling
|
||||
if(cb_data->gpu_pcs_agents.size() == 0) exit(0);
|
||||
if(cb_data->gpu_pcs_agents.size() == 0)
|
||||
{
|
||||
ROCP_ERROR << "PC sampling unavailable\n";
|
||||
exit(0);
|
||||
}
|
||||
|
||||
int query_cb_data = USER_DATA_VAL;
|
||||
const auto* agent = cb_data->gpu_pcs_agents.at(0);
|
||||
|
||||
Reference in new issue
Block a user