Skip to content

Commit

Permalink
Build: Make OpenMP usage opt-out
Browse files Browse the repository at this point in the history
Can be disabled using "scons ... enable_openmp=false"
Note that on some systems, like my Core2Duo with HyperThreading on Arch Linux,
one gets better performance when explicitly setting the number of threads to
the number of physical cores. For instance: export OMP_NUM_THREADS=2
  • Loading branch information
jonnor committed Jul 6, 2013
1 parent 5057a06 commit 321c1f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SConstruct
Expand Up @@ -34,7 +34,7 @@ opts.Add(BoolVariable('enable_gegl', 'enable GEGL based code in build', False))
opts.Add(BoolVariable('enable_introspection', 'enable GObject introspection support', False))
opts.Add(BoolVariable('enable_docs', 'enable documentation build', False))
opts.Add(BoolVariable('enable_gperftools', 'enable gperftools in build, for profiling', False))
opts.Add(BoolVariable('enable_openmp', 'enable OpenMP for libmypaint', False))
opts.Add(BoolVariable('enable_openmp', 'enable OpenMP for multithreaded processing (on by default)', True))
opts.Add('python_binary', 'python executable to build for', default_python_binary)
opts.Add('python_config', 'python-config to used', default_python_config)

Expand Down

0 comments on commit 321c1f3

Please sign in to comment.