hhergeth / CudaTracerLib

A library for ray tracing based rendering algorithms using CUDA
GNU General Public License v3.0
50 stars 9 forks source link

GameTracer.cu Sampler issue #14

Closed iscaswcm closed 6 years ago

iscaswcm commented 6 years ago

When compiling CudaTracerLib On CentOS 7.1, I got the following error:

/home/wcm/CudaTracerLib-related/CudaTracerLib.ori/Integrators/PseudoRealtime/GameTracer.cu(97): error: no instance of function template "CudaTracerLib::PathTrace" matches the argument list argument types are: (CudaTracerLib::NormalizedT<CudaTracerLib::Ray, void>, CudaTracerLib::SequenceSampler, int, int)

1 error detected in the compilation of "/tmp/tmpxft_00005d96_00000000-6_GameTracer.cpp1.ii". CMake Error at CudaTracerLib_generated_GameTracer.cu.o.cmake:260 (message): Error generating file /home/wcm/CudaTracerLib-related/build/CMakeFiles/CudaTracerLib.dir/Integrators/PseudoRealtime/./CudaTracerLib_generated_GameTracer.cu.o

@hhergeth, I think the error came from template CUDA_FUNC_IN Spectrum PathTrace(NormalizedT& r, Sampler& rnd, int maxPathLength, int rrStartDepth). Currently, I just rm Integrators/PseudoRealtime/GameTracer.cu Integrators/PseudoRealtime/GameTracer.h, Compiling is OK.

hhergeth commented 6 years ago

Thank you very much for letting me know about this! After the CUDA 9.0 update I forgot to check whether it compiles fine under linux.

I pushed 3dc123855554e9616d08c156a605ea5ec682f85f which should fix all of these issues (there were a couple more with using functions from std::)