Barry Smith <[email protected]> writes:

>   Now change the compiler to something else from Cray and run again.

Starting with PrgEnv-gnu:

  jedbrow@edison01:~> env | grep MODULE > PrgEnv-gnu.txt
  jedbrow@edison01:~> module swap PrgEnv-{gnu,cray}
  jedbrow@edison01:~> env | grep MODULE > PrgEnv-cray.txt
  jedbrow@edison01:~> diff PrgEnv-*
  3d2
  < FORTRAN_SYSTEM_MODULE_NAMES=ftn_lib_definitions
  10c9
  < 
LOADEDMODULES=modules/3.2.6.7:nsg/1.2.0:eswrap/1.1.0-1.020200.1130.0:switch/1.0-1.0502.54233.2.96.ari:craype-network-aries:craype-ivybridge:cray-shmem/7.0.4:cray-mpich/7.0.4:torque/4.2.7:moab/7.2.7-e7c070d1-b3-SUSE11:altd/2.0:darshan/2.3.0:usg-default-modules/1.1:mercurial/3.2:python_base/2.7.5:numpy/1.7.1:scipy/0.12.0:matplotlib/1.3.0:ipython/1.1.0:python/2.7.5:cmake/2.8.11.2:craype/2.2.1:cce/8.3.4:cray-libsci/13.0.1:udreg/2.3.2-1.0502.9275.1.12.ari:ugni/5.0-1.0502.9685.4.24.ari:pmi/5.0.5-1.0000.10300.134.8.ari:dmapp/7.0.1-1.0502.9501.5.219.ari:gni-headers/3.0-1.0502.9684.5.2.ari:xpmem/0.1-2.0502.55507.3.2.ari:dvs/2.5_0.9.0-1.0502.1873.1.145.ari:alps/5.2.1-2.0502.9041.11.6.ari:rca/1.0.0-2.0502.53711.3.127.ari:atp/1.7.5:PrgEnv-cray/5.2.40
  ---
  > 
LOADEDMODULES=modules/3.2.6.7:nsg/1.2.0:eswrap/1.1.0-1.020200.1130.0:switch/1.0-1.0502.54233.2.96.ari:craype-network-aries:craype/2.2.1:craype-ivybridge:cray-shmem/7.0.4:cray-mpich/7.0.4:torque/4.2.7:moab/7.2.7-e7c070d1-b3-SUSE11:altd/2.0:darshan/2.3.0:usg-default-modules/1.1:mercurial/3.2:python_base/2.7.5:numpy/1.7.1:scipy/0.12.0:matplotlib/1.3.0:ipython/1.1.0:python/2.7.5:cmake/2.8.11.2:gcc/4.9.1:cray-libsci/13.0.1:udreg/2.3.2-1.0502.9275.1.12.ari:ugni/5.0-1.0502.9685.4.24.ari:pmi/5.0.5-1.0000.10300.134.8.ari:dmapp/7.0.1-1.0502.9501.5.219.ari:gni-headers/3.0-1.0502.9684.5.2.ari:xpmem/0.1-2.0502.55507.3.2.ari:dvs/2.5_0.9.0-1.0502.1873.1.145.ari:alps/5.2.1-2.0502.9041.11.6.ari:rca/1.0.0-2.0502.53711.3.127.ari:atp/1.7.5:PrgEnv-gnu/5.2.40


In this case, it might be more reliable to compare "cc --version".
Modules was never intended as a robust solution.  It was a disgusting
hack that probably seemed okay at the time, but ended up as an
established methodology and now we have to live with its many points of
failure, horrible debugability, and lack of an API.

Attachment: signature.asc
Description: PGP signature

Reply via email to