Browse Source

!25484 fix waring

Merge pull request !25484 from shenwei41/master
tags/v1.6.0
i-robot Gitee 4 years ago
parent
commit
e2f7173b49
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      cmake/external_libs/libtiff.cmake
  2. +1
    -1
      mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.cc
  3. +1
    -1
      mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.h

+ 1
- 1
cmake/external_libs/libtiff.cmake View File

@@ -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}")

+ 1
- 1
mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.cc View File

@@ -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 "


+ 1
- 1
mindspore/ccsrc/minddata/dataset/engine/datasetops/device_queue_op.h View File

@@ -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<ChildIterator> child_iterator_;


Loading…
Cancel
Save