mitsuba2 icon indicating copy to clipboard operation
mitsuba2 copied to clipboard

Cross Compiling Mitsuba 2

Open dlichy opened this issue 4 years ago • 0 comments

Hi,

I want to run Mitsuba2 on a cluster and to do so I have to build it inside a Singularity container. If I just follow the build instructions verbatim, I get an Illegal Instruction Exception. However, I can get it to run on the cluster by replacing the flag "-march=native" with "-march=x86-64" in the build.ninja file using the command "sed -i 's/-march=native/-march=x86-64/g' build.ninja".

My question is, is there a prettier way to do this? And, I see from the output of the command "lscpu" that the nodes on the cluster have "avx" and "sse4_2", but not avx2 and avx512. Is there a way to build the packet variant of Mitsuba2 to run on this cluster and if so What kind of speed up can be expected?

Thanks again. Really great project and I hope to see it developed further in the future.

dlichy avatar Jul 16 '20 15:07 dlichy