Skip to content

Commit 6020323

Browse files
wenxin0319facebook-github-bot
authored andcommitted
Fix Self-Assignment in CUDA Stream Parameter in renderer.forward.device.h
Summary: Resolved self-assignment warnings in the `renderer.forward.device.h` file by removing redundant assignments of the `stream` variable to itself in `cub::DeviceSelect::Flagged` function calls. This change eliminates compiler errors and ensures cleaner, more efficient code execution. Reviewed By: bottler Differential Revision: D76554140 fbshipit-source-id: 28eae0186246f51a8ac8002644f184349aa49560
1 parent 182e845 commit 6020323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch3d/csrc/pulsar/gpu/commands.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ __device__ static float atomicMin(float* address, float val) {
417417
(OUT_PTR), \
418418
(NUM_SELECTED_PTR), \
419419
(NUM_ITEMS), \
420-
stream = (STREAM));
420+
(STREAM));
421421

422422
#define COPY_HOST_DEV(PTR_D, PTR_H, TYPE, SIZE) \
423423
HANDLECUDA(cudaMemcpy( \

0 commit comments

Comments
 (0)