Src/GPUPerfAPIUnitTests/CounterGeneratorHSATests.cpp
// Test the HSA counter names on all generations
Test the HSA counter names on all generations
Test the HSA counter names on all generations
TEST(CounterDLLTests, HSACounterNamesByGeneration)
{
    VerifyHardwareNotSupported(GPA_API_HSA, GPA_HW_GENERATION_NVIDIA);
    VerifyHardwareNotSupported(GPA_API_HSA, GPA_HW_GENERATION_INTEL);
    VerifyHardwareNotSupported(GPA_API_HSA, GPA_HW_GENERATION_GFX6);
    std::vector<const char*> counterNames;
    GetExpectedCountersForGeneration(GPA_HW_GENERATION_GFX7, counterNames);
    VerifyCounterNames(GPA_API_HSA, GPA_HW_GENERATION_GFX7, counterNames);
    GetExpectedCountersForGeneration(GPA_HW_GENERATION_GFX8, counterNames);
    VerifyCounterNames(GPA_API_HSA, GPA_HW_GENERATION_GFX8, counterNames);
    GetExpectedCountersForGeneration(GPA_HW_GENERATION_GFX9, counterNames);
    VerifyCounterNames(GPA_API_HSA, GPA_HW_GENERATION_GFX9, counterNames);
}
TEST ( CounterDLLTests , HSACounterNamesByGeneration ) { VerifyHardwareNotSupported ( GPA_API_HSA , GPA_HW_GENERATION_NVIDIA ) ; VerifyHardwareNotSupported ( GPA_API_HSA , GPA_HW_GENERATION_INTEL ) ; VerifyHardwareNotSupported ( GPA_API_HSA , GPA_HW_GENERATION_GFX6 ) ; std :: vector < const char * > counterNames ; GetExpectedCountersForGeneration ( GPA_HW_GENERATION_GFX7 , counterNames ) ; VerifyCounterNames ( GPA_API_HSA , GPA_HW_GENERATION_GFX7 , counterNames ) ; GetExpectedCountersForGeneration ( GPA_HW_GENERATION_GFX8 , counterNames ) ; VerifyCounterNames ( GPA_API_HSA , GPA_HW_GENERATION_GFX8 , counterNames ) ; GetExpectedCountersForGeneration ( GPA_HW_GENERATION_GFX9 , counterNames ) ; VerifyCounterNames ( GPA_API_HSA , GPA_HW_GENERATION_GFX9 , counterNames ) ; }
Test the HSA counter names on all generations
Test the HSA counter names on all generations