Skip to content

Commit f628b1d

Browse files
committed
fix_tests_on_gcc482
1 parent 02c3145 commit f628b1d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

paddle/fluid/platform/device_tracer.cc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,18 @@ class DeviceTracerImpl : public DeviceTracer {
273273
proto::Profile profile_pb;
274274
profile_pb.set_start_ns(start_ns_);
275275
profile_pb.set_end_ns(end_ns_);
276+
std::string kernel_name;
276277
for (const KernelRecord &r : kernel_records_) {
277278
if (correlations_.find(r.correlation_id) == correlations_.end()) {
278-
fprintf(stderr, "cannot relate a kernel activity\n");
279-
continue;
279+
// fprintf(stderr, "cannot relate a kernel activity\n");
280+
// continue;
281+
kernel_name = "Unknown";
282+
} else {
283+
kernel_name = correlations_.at(r.correlation_id);
280284
}
281285
auto *event = profile_pb.add_events();
282286
event->set_type(proto::Event::GPUKernel);
283-
event->set_name(correlations_.at(r.correlation_id));
287+
event->set_name(kernel_name);
284288
event->set_start_ns(r.start_ns);
285289
event->set_end_ns(r.end_ns);
286290
event->set_sub_device_id(r.stream_id);

tools/manylinux1/Dockerfile.x64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ENV PATH /opt/rh/devtoolset-2/root/usr/bin:$PATH
1313
ENV LD_LIBRARY_PATH /opt/rh/devtoolset-2/root/usr/lib64:/opt/rh/devtoolset-2/root/usr/lib:/usr/local/lib64:/usr/local/lib:${LD_LIBRARY_PATH}
1414
ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
1515

16-
RUN yum install -y sqlite-devel zlib-devel openssl-devel pcre-devel vim tk-devel tkinter libtool xz
16+
RUN yum install -y sqlite-devel zlib-devel openssl-devel pcre-devel vim tk-devel tkinter libtool xz graphviz
1717
COPY build_scripts /build_scripts
1818
RUN bash build_scripts/build.sh && \
1919
bash build_scripts/install_nccl2.sh && rm -r build_scripts

0 commit comments

Comments
 (0)