source: codes/icosagcm/devel/Python/dynamico/__init__.py @ 663

Last change on this file since 663 was 663, checked in by dubos, 6 years ago

devel/Python : fix numpy messing up OpenMP

File size: 295 bytes
Line 
1# import openmp before NetCDF4 numpy because it uses numpy hence MKL and messes up OMP_NUM_PROCS
2import sys
3if 'numpy' in sys.modules:
4    raise ImportError('Module dynamico must be imported before NetCDF/numpy because numpy may mess up OpenMP')
5import libs
6libs.libicosa.dynamico_show_openmp()
Note: See TracBrowser for help on using the repository browser.