mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
enable perf counters for events
added CL_PROFILING_COMMAND_PERFCOUNTERS_INTEL to cl_ext_private.h header to expose this query Change-Id: I8881456c54d391a66c2ce619a1a47ad1219c4376
This commit is contained in:
committed by
sys_ocldev
parent
52cdb7e57d
commit
c1683691c0
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -20,10 +20,11 @@
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "cl_api_tests.h"
|
||||
#include "public/cl_ext_private.h"
|
||||
#include "runtime/command_queue/command_queue.h"
|
||||
#include "runtime/event/event.h"
|
||||
#include "runtime/event/user_event.h"
|
||||
#include "unit_tests/api/cl_api_tests.h"
|
||||
#include "unit_tests/os_interface/mock_performance_counters.h"
|
||||
#include "test.h"
|
||||
|
||||
@@ -288,7 +289,6 @@ TEST_F(clEventProfilingWithPerfCountersTests, clGetEventProfilingInfoGetPerfCoun
|
||||
bool Result = pEvent->isPerfCountersEnabled();
|
||||
EXPECT_FALSE(Result);
|
||||
|
||||
#if defined(CL_PROFILING_COMMAND_PERFCOUNTERS_INTEL)
|
||||
cl_event event = (cl_event)pEvent;
|
||||
cl_ulong param_value = 0;
|
||||
size_t param_value_size_ret;
|
||||
@@ -315,7 +315,6 @@ TEST_F(clEventProfilingWithPerfCountersTests, clGetEventProfilingInfoGetPerfCoun
|
||||
¶m_value,
|
||||
¶m_value_size_ret);
|
||||
EXPECT_EQ(CL_PROFILING_INFO_NOT_AVAILABLE, retVal);
|
||||
#endif
|
||||
|
||||
delete pEvent;
|
||||
delete pCommandQueue;
|
||||
|
||||
Reference in New Issue
Block a user