Re: [f2py] control number of OpenMP threads at runtime

Kevin Mitchell <[email protected]>
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
I would say it's odd that it is not recognizing the environment
variable. You can always  check that it is visible to fortran via f2py
with getenv http://darbujan.fzu.cz/cgi-bin/info2www?%28g77%29GetEnv+Intrinsic.
You could also look at setting the maximum number of threads via
omplib. If it really isn't visible for some reason, you could always

 use use(OMP_LIB)

and then omp_set_num_threads()
http://gcc.gnu.org/onlinedocs/gcc-4.4.1/libgomp/omp_005fset_005fnum_005fthreads.html#omp_005fset_005fnum_005fthreads

Kevin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.