MiguelMonteiro / permutohedral_lattice

Permutohedral Lattice C++/CUDA implementation + TensorFlow Op (CPU/GPU)
83 stars 18 forks source link

About the build type #10

Closed netw0rkf10w closed 5 years ago

netw0rkf10w commented 5 years ago

Hi Miguel,

I noticed that in the build script you used cmake to build the project in debug mode: cmake -DCMAKE_BUILD_TYPE=Debug.

Should we expect better performance if we build it in release mode? I tried setting -DCMAKE_BUILD_TYPE=Release but this produced errors.

Sorry if the question is stupid.

Thank you in advance for your answer!

MiguelMonteiro commented 5 years ago

Which kind of errors? I have never changed that flag, maybe it makes a difference... Although, I think that either: That flag is for the C++ CPU code and therefore since the main computation is done on GPU there wouldn't be much of a difference. OR That flag is for the compiler and it only changes the speed of compilation. Might be wrong though

netw0rkf10w commented 5 years ago

Hi Miguel,

Sorry I have just tried it again and it works. I'm not sure what happened when I first tried it.

I confirm that changing this flag does not improve the computation speed at all.