mirror of
				https://github.com/facebookresearch/pytorch3d.git
				synced 2025-11-04 18:02:14 +08:00 
			
		
		
		
	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
This commit is contained in:
		
							parent
							
								
									182e845c19
								
							
						
					
					
						commit
						6020323d94
					
				@ -417,7 +417,7 @@ __device__ static float atomicMin(float* address, float val) {
 | 
				
			|||||||
      (OUT_PTR),              \
 | 
					      (OUT_PTR),              \
 | 
				
			||||||
      (NUM_SELECTED_PTR),     \
 | 
					      (NUM_SELECTED_PTR),     \
 | 
				
			||||||
      (NUM_ITEMS),            \
 | 
					      (NUM_ITEMS),            \
 | 
				
			||||||
      stream = (STREAM));
 | 
					      (STREAM));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define COPY_HOST_DEV(PTR_D, PTR_H, TYPE, SIZE) \
 | 
					#define COPY_HOST_DEV(PTR_D, PTR_H, TYPE, SIZE) \
 | 
				
			||||||
  HANDLECUDA(cudaMemcpy(                        \
 | 
					  HANDLECUDA(cudaMemcpy(                        \
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user