Kyle Mandli

Results 340 comments of Kyle Mandli

Yeah, f2py is a bit annoying like that. In any case, if an array enters a parallel region and forks to the threads it should make copies of anything in...

There are a number of ways to set the number of threads that OpenMP can use beyond just the environment variable. In the OpenMP API there is a way to...

I did a bit of looking into this but could not find a good way to call `omp_get_max_threads` which is what I was thinking. I do have a question though,...

`omp_get_num_threads` should return the current number of threads regardless of what `OMP_NUM_THREADS` is. `omp_get_max_threads` without `OMP_NUM_THREADS` defaults to the number of threads defined by the system as the maximum number...

It is but I think @weslowrie needs it in Python which we have not been able to figure out beyond running a call through C or Fortran.

Good solution!

I may be wrong about this but if someone were to not set `OMP_NUM_THREADS=1` and not compile with the OpenMP library incur a memory footprint penalty up to the number...

The flags are usually in the setup.py files in the relevant src directories. Interesting question about the default though, should OpenMP be enabled and use all of the cores on...

@ketch By default OpenMP is not included (in fact we do not specify any flags, it uses the compiler's defaults). We have gone back and forth about what to do...

I just cannot remember if warnings are printed to the console or just to the log file if using the standard PyClaw loggers. Speaking of that you also might want...