cedadev / jasmin_scivm

9 stars 0 forks source link

add ILAMB #171

Closed caroduro closed 6 years ago

caroduro commented 6 years ago

Would it be possible to get ILAMB (https://bitbucket.org/ncollier/ilamb) installed, for comparing data-model and observations?

alaniwi commented 6 years ago

Clean build. Fails at import with sympy requirement.

alaniwi commented 6 years ago

sympy clean build after fixing a minor manpage issue. sympy import problem - now needs mpmath.

alaniwi commented 6 years ago

mpmath built and example at http://mpmath.org/ works.

>>> from mpmath import mp
>>> mp.dps = 50
>>> print(mp.quad(lambda x: mp.exp(-x**2), [-mp.inf, mp.inf]) ** 2)
3.1415926535897932384626433832795028841971693993751
alaniwi commented 6 years ago

Sympy examples now working. (Per https://github.com/sympy/sympy/wiki/Quick-examples .) Rebuilding to add mpmath RPM dependency.

alaniwi commented 6 years ago

Needs later cf_units.

alaniwi commented 6 years ago

latest cf-units (2.0.2) requires cftime

alaniwi commented 6 years ago

cftime clean build and import and fixed dependency in cf-units

alaniwi commented 6 years ago
ImportError: Bad mpi4py version: ILAMB 2.3 requires mpi4py >= 1.3.1 got 1.3
alaniwi commented 6 years ago

Updating mpi4py.

Wanted only to update it to 1.3.1, because later releases have different major version, but getting these kind of errors - https://github.com/hashdist/hashstack-old/issues/18 - so will just try the latest version.

alaniwi commented 6 years ago

Latest mpi4py not building either. Also tried with mvapich2-devel.

alaniwi commented 6 years ago

mpi4py 1.3.1 clean build for both platform_mpi and mpich versions (was using confusing wrong version of spec file lacking fixes for previously solved issues - which will be removed)

alaniwi commented 6 years ago

Added dependencies in ILAMB and rebuilt. (Cannot add the dependency for mpi4py directly in ilamb as there are different versions on Sci machine and Lotus, but added these in the relevant places at the top level in the JAP.) Clean import now.

alaniwi commented 6 years ago

Quick test with ilamb-fetch command line executable. It is fetching something.

Tried with ilamb-table (without command line args). It seems that

from mpi4py import MPI

does not work as-is -- it gives

ImportError: libmpich.so.12: cannot open shared object file: No such file or directory

But it will work if LD_LIBRARY_PATH=/usr/lib64/mpich/lib/ is set.

The mpich provides a module file, and it works after doing module load mpich. Will document this for users. The arrangements on Lotus (using platform_mpi) are different and do not require this. This is existing situation with mpi4py and is not affected by the version upgrade.

alaniwi commented 6 years ago

But basically working now - as far as I can establish with quick tests.