P4 to Git Change 1620765 by skudchad@skudchad_test2_win_opencl on 2018/10/17 16:58:04

SWDEV-145570 - [HIP] Track last used event and use last enqueued command in a stream rather than creating a new event

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/15996/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_context.cpp#15 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_event.cpp#7 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_stream.cpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#90 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#28 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.hpp#20 edit
这个提交包含在:
foreman
2018-10-18 13:41:32 -04:00
父节点 8d912e037a
当前提交 8526ed9b96
修改 3 个文件,包含 13 行新增5 行删除
+2 -3
查看文件
@@ -139,9 +139,8 @@ hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream) {
} else {
e->stream_ = as_amd(reinterpret_cast<cl_command_queue>(stream))->asHostQueue();
}
amd::Command* command = (e->flags & hipEventDisableTiming)? new amd::Marker(*e->stream_, true) :
new hip::TimerMarker(*e->stream_);
command->enqueue();
amd::Command* command = e->stream_->getLastQueuedCommand(true);
if (e->event_ != nullptr) {
e->event_->release();