Closed mshoe closed 4 years ago
Triangle::intersection
code is pretty speedy compared to some possible implementations.#pragma omp parallel for
with the main.cpp
for loop. Runtime was cut to ~2:45 on my laptop.
Where do we add -fopenmp to the Makefile to enable OpenMP parallelization?
Where do we add -fopenmp to the Makefile to enable OpenMP parallelization?
You can add the compiler option using -DCMAKE_CXX_FLAGS="-fopenmp"
e.g. cmake -DCMAKE_CXX_FLAGS="-fopenmp" -DCMAKE_BUILD_TYPE=Release -DHW2LIB_DIR=../lib/release/linux/ ..
I can report back with a test on the CDF machines later.
for bunny
I'm getting ~4:15 on CDF, and if I multithread(for fun), ~1:15.
How long should we expect raytracing to take for the bunny?