提交 b7b60022 编写于 作者: T typhoonzero

clean up

上级 f628b1df
......@@ -276,15 +276,12 @@ class DeviceTracerImpl : public DeviceTracer {
std::string kernel_name;
for (const KernelRecord &r : kernel_records_) {
if (correlations_.find(r.correlation_id) == correlations_.end()) {
// fprintf(stderr, "cannot relate a kernel activity\n");
// continue;
kernel_name = "Unknown";
} else {
kernel_name = correlations_.at(r.correlation_id);
fprintf(stderr, "cannot relate a kernel activity\n");
continue;
}
auto *event = profile_pb.add_events();
event->set_type(proto::Event::GPUKernel);
event->set_name(kernel_name);
event->set_name(correlations_.at(r.correlation_id));
event->set_start_ns(r.start_ns);
event->set_end_ns(r.end_ns);
event->set_sub_device_id(r.stream_id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册