Src/GPUPerfAPIUnitTests/CounterGeneratorCLTests.cpp
TEST(CounterDLLTests, OpenCLCounterNamesByGeneration)
{
    VerifyHardwareNotSupported(GPA_API_OPENCL, GPA_HW_GENERATION_NVIDIA);
    VerifyHardwareNotSupported(GPA_API_OPENCL, GPA_HW_GENERATION_INTEL);

    std::vector<const char*> counterNames;
    GetExpectedCountersForGeneration(GPA_HW_GENERATION_GFX6, counterNames);
    VerifyCounterNames(GPA_API_OPENCL, GPA_HW_GENERATION_GFX6, counterNames);
    GetExpectedCountersForGeneration(GPA_HW_GENERATION_GFX7, counterNames);
    VerifyCounterNames(GPA_API_OPENCL, GPA_HW_GENERATION_GFX7, counterNames);
    GetExpectedCountersForGeneration(GPA_HW_GENERATION_GFX8, counterNames);
    VerifyCounterNames(GPA_API_OPENCL, GPA_HW_GENERATION_GFX8, counterNames);
    GetExpectedCountersForGeneration(GPA_HW_GENERATION_GFX9, counterNames);
    VerifyCounterNames(GPA_API_OPENCL, GPA_HW_GENERATION_GFX9, counterNames);
}
// Test the openCL counter names on each generation
Test the openCL counter names on each generation
Test the openCL counter names on each generation
TEST(CounterDLLTests, OpenCLCounterNamesByGeneration)
{
    VerifyHardwareNotSupported(GPA_API_OPENCL, GPA_HW_GENERATION_NVIDIA);
    VerifyHardwareNotSupported(GPA_API_OPENCL, GPA_HW_GENERATION_INTEL);
    std::vector<const char*> counterNames;
    GetExpectedCountersForGeneration(GPA_HW_GENERATION_GFX6, counterNames);
    VerifyCounterNames(GPA_API_OPENCL, GPA_HW_GENERATION_GFX6, counterNames);
    GetExpectedCountersForGeneration(GPA_HW_GENERATION_GFX7, counterNames);
    VerifyCounterNames(GPA_API_OPENCL, GPA_HW_GENERATION_GFX7, counterNames);
    GetExpectedCountersForGeneration(GPA_HW_GENERATION_GFX8, counterNames);
    VerifyCounterNames(GPA_API_OPENCL, GPA_HW_GENERATION_GFX8, counterNames);
    GetExpectedCountersForGeneration(GPA_HW_GENERATION_GFX9, counterNames);
    VerifyCounterNames(GPA_API_OPENCL, GPA_HW_GENERATION_GFX9, counterNames);
}
TEST ( CounterDLLTests , OpenCLCounterNamesByGeneration ) { VerifyHardwareNotSupported ( GPA_API_OPENCL , GPA_HW_GENERATION_NVIDIA ) ; VerifyHardwareNotSupported ( GPA_API_OPENCL , GPA_HW_GENERATION_INTEL ) ; std :: vector < const char * > counterNames ; GetExpectedCountersForGeneration ( GPA_HW_GENERATION_GFX6 , counterNames ) ; VerifyCounterNames ( GPA_API_OPENCL , GPA_HW_GENERATION_GFX6 , counterNames ) ; GetExpectedCountersForGeneration ( GPA_HW_GENERATION_GFX7 , counterNames ) ; VerifyCounterNames ( GPA_API_OPENCL , GPA_HW_GENERATION_GFX7 , counterNames ) ; GetExpectedCountersForGeneration ( GPA_HW_GENERATION_GFX8 , counterNames ) ; VerifyCounterNames ( GPA_API_OPENCL , GPA_HW_GENERATION_GFX8 , counterNames ) ; GetExpectedCountersForGeneration ( GPA_HW_GENERATION_GFX9 , counterNames ) ; VerifyCounterNames ( GPA_API_OPENCL , GPA_HW_GENERATION_GFX9 , counterNames ) ; }
Test the openCL counter names on each generation
Test the openCL counter names on each generation