ShichenLiu / SoftRas

Project page of paper "Soft Rasterizer: A Differentiable Renderer for Image-based 3D Reasoning"
MIT License
1.24k stars 156 forks source link

soft-renderer/cuda/soft_rasterizer_cuda_kernel.cu(8): error: function "atomicAdd(double*, double)" has already been defined #16

Closed halfjoe closed 5 years ago

halfjoe commented 5 years ago

Hi,

I was trying your code and when running "python setup.py install" I got this error. Do you have any idea why this happened?

Thanks.

halfjoe commented 5 years ago

Solved. Simply replace #if __CUDA_ARCH__ < 600 and defined(__CUDA_ARCH__) to #if __CUDA_ARCH__ < 600 && defined(__CUDA_ARCH__). And same for the other file "voxelization_cuda_kernel.cu".