fix waring

This commit is contained in:
shenwei41 2021-10-27 17:48:05 +08:00
parent a7a4af59ae
commit 36db325b9d
3 changed files with 3 additions and 3 deletions

View File

@ -29,6 +29,6 @@ mindspore_add_pkg(tiff
URL ${REQ_URL} URL ${REQ_URL}
MD5 ${MD5} MD5 ${MD5}
CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release -Djbig=OFF -Dlzma=OFF -Djpeg12=OFF -Dzstd=OFF -Dpixarlog=OFF 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 include = ${tiff_INC}")
message("tiff lib = ${tiff_LIB}") message("tiff lib = ${tiff_LIB}")

View File

@ -739,7 +739,7 @@ Status DeviceQueueOp::DetectFirstBatch() {
return Status::OK(); 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(); *end_time = ProfilingTime::GetCurMilliSecond();
if (*end_time - *start_time > kTimeOutMilliSeconds) { 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 " MS_LOG(WARNING) << "Bad performance attention, it takes more than 25 seconds to fetch a batch of data from dataset "

View File

@ -170,7 +170,7 @@ class DeviceQueueOp : public PipelineOp {
Status DetectFirstBatch(); Status DetectFirstBatch();
// Detect the cost time of each batch, present alarm message if cost too long // 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 #endif
std::unique_ptr<ChildIterator> child_iterator_; std::unique_ptr<ChildIterator> child_iterator_;