P4 to Git Change 1138047 by gandryey@gera-w8 on 2015/04/07 11:38:28
ECR #304775 - Some code clean-up - Remove amd::Context reference from the event object. Runtime can use queue to get the context for the limited number of use cases - User/GL events will keep the context as a member Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_event.cpp#8 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#69 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/command.hpp#75 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#120 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#91 edit
Этот коммит содержится в:
@@ -26,17 +26,15 @@
|
||||
namespace amd {
|
||||
|
||||
Event::Event(HostQueue& queue)
|
||||
: context_(queue.context())
|
||||
, callbacks_(NULL)
|
||||
: callbacks_(NULL)
|
||||
, status_(CL_INT_MAX)
|
||||
, profilingInfo_(
|
||||
queue.properties().test(CL_QUEUE_PROFILING_ENABLE)
|
||||
|| Agent::shouldPostEventEvents())
|
||||
{ notified_.clear(); }
|
||||
|
||||
Event::Event(Context& context)
|
||||
: context_(context)
|
||||
, callbacks_(NULL)
|
||||
Event::Event()
|
||||
: callbacks_(NULL)
|
||||
, status_(CL_SUBMITTED)
|
||||
{ notified_.clear(); }
|
||||
|
||||
@@ -252,6 +250,11 @@ Command::enqueue()
|
||||
}
|
||||
}
|
||||
|
||||
const Context&
|
||||
Command::context() const
|
||||
{
|
||||
return queue_->context();
|
||||
}
|
||||
|
||||
NDRangeKernelCommand::NDRangeKernelCommand(
|
||||
HostQueue& queue,
|
||||
|
||||
Ссылка в новой задаче
Block a user