Skip to content

Conversation

@panyx0718
Copy link
Contributor

Use binary instead of text format
Avoid kernels that cannot be traced.

@panyx0718 panyx0718 requested review from chengduoZH, jacquesqiao and qingqing01 and removed request for chengduoZH March 6, 2018 06:39
smaller binary proto
avoid untrackable kernel
uint64_t end_ns, uint32_t device_id, uint32_t stream_id,
uint32_t correlation_id, uint64_t bytes) {
// 0 means timestamp information could not be collected for the kernel.
if (start_ns == 0 || end_ns == 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a log here?

uint32_t stream_id, uint32_t correlation_id) {
// 0 means timestamp information could not be collected for the kernel.
if (start == 0 || end == 0) {
LOG(WARNING) << correlation_id << " cannot be traced";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use

VLOG(level) << ...;

Copy link
Member

@jacquesqiao jacquesqiao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@panyx0718 panyx0718 merged commit a9b9ec4 into PaddlePaddle:develop Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants