From 36db325b9d3f2205f5844494c7a6416ea5187960 Mon Sep 17 00:00:00 2001 From: shenwei41 Date: Wed, 27 Oct 2021 17:48:05 +0800 Subject: [PATCH] fix waring --- cmake/external_libs/libtiff.cmake | 2 +- .../ccsrc/minddata/dataset/engine/datasetops/device_queue_op.cc | 2 +- .../ccsrc/minddata/dataset/engine/datasetops/device_queue_op.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/external_libs/libtiff.cmake b/cmake/external_libs/libtiff.cmake index c1c7c38860b..c547b736397 100644 --- a/cmake/external_libs/libtiff.cmake +++ b/cmake/external_libs/libtiff.cmake @@ -29,6 +29,6 @@ mindspore_add_pkg(tiff URL ${REQ_URL} MD5 ${MD5} CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release -Djbig=OFF -Dlzma=OFF -Djpeg12=OFF -Dzstd=OFF -Dpixarlog=OFF - -Dold-jpeg=OFF -Dwebp=OFF -DBUILD_SHARED_LIBS=OFF) + -Dold-jpeg=OFF -Dwebp=OFF -DBUILD_SHARED_LIBS=OFF -Dlibdeflate=OFF) message("tiff include = ${tiff_INC}") message("tiff lib = ${tiff_LIB}") diff --git a/mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.cc b/mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.cc index f4ffb8ebac7..996034bb9c0 100644 --- a/mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.cc +++ b/mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.cc @@ -739,7 +739,7 @@ Status DeviceQueueOp::DetectFirstBatch() { return Status::OK(); } -void DeviceQueueOp::DetectPerBatchTime(uint64_t *start_time, uint64_t *end_time) { +void DeviceQueueOp::DetectPerBatchTime(const uint64_t *start_time, uint64_t *end_time) { *end_time = ProfilingTime::GetCurMilliSecond(); if (*end_time - *start_time > kTimeOutMilliSeconds) { MS_LOG(WARNING) << "Bad performance attention, it takes more than 25 seconds to fetch a batch of data from dataset " diff --git a/mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.h b/mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.h index e4216cc21c4..15990ec8d51 100644 --- a/mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.h +++ b/mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.h @@ -170,7 +170,7 @@ class DeviceQueueOp : public PipelineOp { Status DetectFirstBatch(); // Detect the cost time of each batch, present alarm message if cost too long - void DetectPerBatchTime(uint64_t *start_time, uint64_t *end_time); + void DetectPerBatchTime(const uint64_t *start_time, uint64_t *end_time); #endif std::unique_ptr child_iterator_;