Skip to content

Commit ffb87e5

Browse files
committed
Fix issues detected by Coverity (2024.09.30)
Signed-off-by: Michal Zientkiewicz <michalz@nvidia.com>
1 parent 57909cc commit ffb87e5

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

dali/operators/image/remap/cvcuda/matrix_adjust.cu

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ void adjustMatrices(nvcv::Tensor &matrices, cudaStream_t stream) {
5555
int num_blocks = div_ceil(bs, 256);
5656
int threads_per_block = std::min(bs, 256);
5757
adjustMatricesKernel2<<<num_blocks, threads_per_block, 0, stream>>>(wrap, bs);
58+
CUDA_CALL(cudaGetLastError());
5859
}
5960

6061
} // namespace warp_perspective

dali/operators/image/remap/cvcuda/warp_perspective.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class WarpPerspective : public nvcvop::NVCVSequenceOperator<StatelessOperator> {
231231
NVCVBorderType border_mode_ = NVCV_BORDER_CONSTANT;
232232
NVCVInterpolationType interp_type_ = NVCV_INTERP_NEAREST;
233233
std::vector<float> fill_value_arg_{0, 0, 0, 0};
234-
float4 fill_value_;
234+
float4 fill_value_{};
235235
bool inverse_map_ = false;
236236
bool ocv_pixel_ = true;
237237
std::optional<cvcuda::WarpPerspective> warp_perspective_;

dali/pipeline/executor/executor2/exec2.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ class Executor2::Impl {
347347
auto stream_idx = assignment[&node];
348348

349349
node.env.order = stream_idx.has_value()
350-
? AccessOrder(streams_[*stream_idx])
350+
? AccessOrder(streams_[*stream_idx].get())
351351
: AccessOrder::host();
352352
}
353353
}

dali/pipeline/executor/executor2/exec2_ops_for_test.cu

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ void DummyOpGPU::RunImpl(Workspace &ws) {
9999
scratch.ToGPU(ws.stream(), pointers),
100100
ws.NumInput() + 1,
101101
N);
102+
CUDA_CALL(cudaGetLastError());
102103
}
103104

104105

dali/pipeline/executor/executor2/exec_node_task.cc

+1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ void OpTask::RunOp() {
259259
ResetInputLayouts();
260260
PropagateSourceInfo(*ws_);
261261
}
262+
assert(ws_->GetIterationData());
262263
if (auto cpt = ws_->GetIterationData()->checkpoint) {
263264
node_->op->SaveState(cpt->GetOpCheckpoint(node_->instance_name), ws_->output_order());
264265
}

0 commit comments

Comments
 (0)