There is an environment variable OMP_NUM_THREADS which should control the
number of cores used at runtime. I haven't tried it with openbabel
specifically however.

Igor

On Sep 21, 2017 6:08 AM, "Геннадий Макаров via OpenBabel-discuss" <
openbabel-discuss@lists.sourceforge.net> wrote:

> Problem solved
>
>
> Четверг, 21 сентября 2017, 14:17 +05:00 от Геннадий Макаров via
> OpenBabel-discuss <openbabel-discuss@lists.sourceforge.net>:
>
> Usage of this option during building did not change behaviour of
> OpenBabel: it still use all cores.
>
>
> Четверг, 21 сентября 2017, 0:30 +05:00 от Geoffrey Hutchison <
> geoff.hutchi...@gmail.com>:
>
> > I builded OpenBabel from sources on Ubuntu 14.
>
>
> You built with ENABLE_OPENMP on (which is off by default) so yes, it will
> use all the cores you have.
>
> cmake -DENABLE_OPENMP=OFF .
> # or
> ccmake . # in build directory
> # turn off ENABLE_OPENMP
>
> Hope that helps,
> -Geoff
>
> ---
> Prof. Geoffrey Hutchison
> Department of Chemistry
> University of Pittsburgh
> tel: (412) 648-0492
> email: geo...@pitt.edu
> <https://e.mail.ru/compose/?mailto=mailto%3ageo...@pitt.edu>
> twitter: @ghutchis
> web: https://hutchison.chem.pitt.edu/
>
>
>
> --
> Геннадий Макаров
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> OpenBabel-discuss mailing list
> OpenBabel-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>
>
>
> --
> Геннадий Макаров
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> OpenBabel-discuss mailing list
> OpenBabel-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to