use multithreaded FFT
parent
5ea0546e41
commit
b962a3db57
|
@ -21,7 +21,7 @@ GLFLAGS = ['-DGLEW_MX']
|
||||||
BOOSTLIB = ['boost_system', 'boost_filesystem', 'boost_thread']
|
BOOSTLIB = ['boost_system', 'boost_filesystem', 'boost_thread']
|
||||||
COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4']
|
COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4']
|
||||||
COLLADALIB = ['collada14dom', 'xml2']
|
COLLADALIB = ['collada14dom', 'xml2']
|
||||||
FFTWLIB = ['fftw3']
|
FFTWLIB = ['fftw3_threads']
|
||||||
|
|
||||||
# The following assumes that the Mitsuba bindings should be built for the
|
# The following assumes that the Mitsuba bindings should be built for the
|
||||||
# "default" Python version. It is also possible to build bindings for multiple
|
# "default" Python version. It is also possible to build bindings for multiple
|
||||||
|
|
|
@ -21,7 +21,7 @@ GLFLAGS = ['-DGLEW_MX']
|
||||||
BOOSTLIB = ['boost_system', 'boost_filesystem', 'boost_thread']
|
BOOSTLIB = ['boost_system', 'boost_filesystem', 'boost_thread']
|
||||||
COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4']
|
COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4']
|
||||||
COLLADALIB = ['collada14dom', 'xml2']
|
COLLADALIB = ['collada14dom', 'xml2']
|
||||||
FFTWLIB = ['fftw3']
|
FFTWLIB = ['fftw3_threads']
|
||||||
|
|
||||||
# The following assumes that the Mitsuba bindings should be built for the
|
# The following assumes that the Mitsuba bindings should be built for the
|
||||||
# "default" Python version. It is also possible to build bindings for multiple
|
# "default" Python version. It is also possible to build bindings for multiple
|
||||||
|
|
|
@ -21,7 +21,7 @@ GLFLAGS = ['-DGLEW_MX']
|
||||||
BOOSTLIB = ['boost_system', 'boost_filesystem', 'boost_thread']
|
BOOSTLIB = ['boost_system', 'boost_filesystem', 'boost_thread']
|
||||||
COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4']
|
COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4']
|
||||||
COLLADALIB = ['collada14dom', 'xml2']
|
COLLADALIB = ['collada14dom', 'xml2']
|
||||||
FFTWLIB = ['fftw3']
|
FFTWLIB = ['fftw3_threads']
|
||||||
|
|
||||||
# The following assumes that the Mitsuba bindings should be built for the
|
# The following assumes that the Mitsuba bindings should be built for the
|
||||||
# "default" Python version. It is also possible to build bindings for multiple
|
# "default" Python version. It is also possible to build bindings for multiple
|
||||||
|
|
|
@ -1903,7 +1903,8 @@ void Bitmap::writePNG(Stream *stream, int compression) const {
|
||||||
png_text *text = NULL;
|
png_text *text = NULL;
|
||||||
|
|
||||||
Properties metadata(m_metadata);
|
Properties metadata(m_metadata);
|
||||||
metadata.setString("generatedBy", "Mitsuba version " MTS_VERSION);
|
if (!metadata.hasProperty("generatedBy"))
|
||||||
|
metadata.setString("generatedBy", "Mitsuba version " MTS_VERSION);
|
||||||
|
|
||||||
std::vector<std::string> keys = metadata.getPropertyNames();
|
std::vector<std::string> keys = metadata.getPropertyNames();
|
||||||
std::vector<std::string> values(keys.size());
|
std::vector<std::string> values(keys.size());
|
||||||
|
@ -2473,7 +2474,8 @@ void Bitmap::writeOpenEXR(Stream *stream,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Properties metadata(m_metadata);
|
Properties metadata(m_metadata);
|
||||||
metadata.setString("generatedBy", "Mitsuba version " MTS_VERSION);
|
if (!metadata.hasProperty("generatedBy"))
|
||||||
|
metadata.setString("generatedBy", "Mitsuba version " MTS_VERSION);
|
||||||
|
|
||||||
std::vector<std::string> keys = metadata.getPropertyNames();
|
std::vector<std::string> keys = metadata.getPropertyNames();
|
||||||
|
|
||||||
|
@ -3145,6 +3147,12 @@ void Bitmap::staticInitialization() {
|
||||||
|
|
||||||
/* Initialize the Bitmap format conversion */
|
/* Initialize the Bitmap format conversion */
|
||||||
FormatConverter::staticInitialization();
|
FormatConverter::staticInitialization();
|
||||||
|
|
||||||
|
#if defined(MTS_HAS_FFTW)
|
||||||
|
/* Initialize FFTW if enabled */
|
||||||
|
fftw_init_threads();
|
||||||
|
fftw_plan_with_nthreads(getCoreCount());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Bitmap::staticShutdown() {
|
void Bitmap::staticShutdown() {
|
||||||
|
|
Loading…
Reference in New Issue