From 6020323d94675f67860f702c35cc34c3eccc48da Mon Sep 17 00:00:00 2001 From: Grace Cheng Date: Fri, 13 Jun 2025 11:00:16 -0700 Subject: [PATCH] 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 --- pytorch3d/csrc/pulsar/gpu/commands.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch3d/csrc/pulsar/gpu/commands.h b/pytorch3d/csrc/pulsar/gpu/commands.h index 1e8f83f0..73dc8263 100644 --- a/pytorch3d/csrc/pulsar/gpu/commands.h +++ b/pytorch3d/csrc/pulsar/gpu/commands.h @@ -417,7 +417,7 @@ __device__ static float atomicMin(float* address, float val) { (OUT_PTR), \ (NUM_SELECTED_PTR), \ (NUM_ITEMS), \ - stream = (STREAM)); + (STREAM)); #define COPY_HOST_DEV(PTR_D, PTR_H, TYPE, SIZE) \ HANDLECUDA(cudaMemcpy( \