Changeset 224
- Timestamp:
- 05/02/10 23:42:45 (6 years ago)
- Files:
-
- 25 deleted
- 16 edited
- 8 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
mpimystic/Make.mm
r222 r224 1 1 # -*- Makefile -*- 2 2 3 PROJECT = pyina3 PROJECT = mpimystic 4 4 5 5 BUILD_DIRS = \ 6 pyinamodule \ 7 pyina \ 8 tools \ 9 applications \ 6 mpimystic \ 10 7 11 8 OTHER_DIRS = \ … … 13 10 examples \ 14 11 examples_other \ 15 examples_raw \16 examples_ezmap \17 12 18 13 RECURSE_DIRS = $(BUILD_DIRS) $(OTHER_DIRS) -
mpimystic/examples/Make.mm
r222 r224 1 1 # -*- Makefile -*- 2 2 3 PROJECT = pyina3 PROJECT = mpimystic 4 4 PACKAGE = examples 5 5 -
mpimystic/examples/ezmap_desolve.py
r205 r224 23 23 24 24 from mystic.differential_evolution import DifferentialEvolutionSolver2 as DESolve 25 from pyina.differential_evolution_ezmap import ezDESolver as pDESolve25 from mpimystic.differential_evolution_ezmap import ezDESolver as pDESolve 26 26 from pyina.launchers import mpirun_launcher 27 27 from pyina.mappers import equalportion_mapper -
mpimystic/examples/ezmap_desolve_rosen.py
r205 r224 23 23 24 24 from mystic.differential_evolution import DifferentialEvolutionSolver2 as DESolve 25 from pyina.differential_evolution_ezmap import ezDESolver as pDESolve25 from mpimystic.differential_evolution_ezmap import ezDESolver as pDESolve 26 26 from pyina.launchers import mpirun_launcher 27 27 from pyina.mappers import equalportion_mapper -
mpimystic/examples_other/Make.mm
r222 r224 1 1 # -*- Makefile -*- 2 2 3 PROJECT = pyina3 PROJECT = mpimystic 4 4 PACKAGE = examples_other 5 5 6 PROJ_TIDY += xx.*7 PROJ_CLEAN +=6 PROJ_TIDY += *.log *.png *.dat *.out.X *.out.Y *out.V tmp* 7 PROJ_CLEAN = 8 8 9 all: export 9 #-------------------------------------------------------------------------- 10 11 #all: export 12 all: clean 10 13 11 14 release: tidy … … 21 24 #EXPORT_PYTHON_MODULES = \ 22 25 EXPORT_BINS = \ 23 hello.py \ 24 pypi.py \ 25 nodes.py 26 test1.py \ 27 test2.py \ 28 test3.py \ 29 test_pmap.py \ 30 test_parallelmap.py \ 31 logging.py \ 32 test_ports.py \ 33 test_mogi_bcast.py \ 34 # test_mogi_future.py \ 26 parallel_desolve.py \ 27 pyre_differential_evolution.py \ 28 test_mpimogi.py \ 29 test_mpimogi2.py \ 30 test_mpimogi3.py \ 31 # test_br8_mpi.py \ 32 # test_tg3.py \ 35 33 36 34 … … 39 37 40 38 41 42 39 # End of file 43 40 -
mpimystic/examples_other/parallel_desolve.py
r222 r224 22 22 """ % { 'file' : __file__, 'launchers' : launchers.getstr({'file':__file__, 'timelimit':'00:05'}) } 23 23 24 from pyina.differential_evolution import DifferentialEvolutionSolver2 as DESolve24 from mpimystic.differential_evolution import DifferentialEvolutionSolver2 as DESolve 25 25 from pyina.parallel_map2 import parallel_map 26 26 from mystic.termination import ChangeOverGeneration, VTR -
mpimystic/examples_other/pyre_differential_evolution.py
r222 r224 11 11 This script will demo a Chebyshev8 fit (also see mystic/examples/test_ffit). 12 12 """ 13 from pyina.differential_evolution_app import *13 from mpimystic.differential_evolution_app import * 14 14 from mystic.termination import ChangeOverGeneration, VTR 15 15 from mystic.tools import VerboseSow -
mpimystic/examples_other/test_mpimogi.py
r222 r224 19 19 """ 20 20 21 from pyina.differential_evolution_app import PyreDifferentialEvolutionSolver221 from mpimystic.differential_evolution_app import PyreDifferentialEvolutionSolver2 22 22 from mystic.termination import ChangeOverGeneration, VTR 23 23 from mystic.tools import VerboseSow -
mpimystic/examples_other/test_mpimogi2.py
r222 r224 5 5 """ 6 6 7 from pyina.differential_evolution_app import PyreDifferentialEvolutionSolver27 from mpimystic.differential_evolution_app import PyreDifferentialEvolutionSolver2 8 8 from mystic.termination import ChangeOverGeneration, VTR 9 9 from mystic.tools import VerboseSow -
mpimystic/examples_other/test_mpimogi3.py
r222 r224 25 25 """ % { 'launchers' : launchers.getstr({'timelimit' : '00:05','nodes':'6'}) } 26 26 27 from pyina.differential_evolution import DifferentialEvolutionSolver2 as DESolve27 from mpimystic.differential_evolution import DifferentialEvolutionSolver2 as DESolve 28 28 from pyina.parallel_map2 import parallel_map 29 29 from mystic.termination import ChangeOverGeneration, VTR -
mpimystic/mpimystic/Make.mm
r207 r224 1 1 # -*- Makefile -*- 2 2 3 PROJECT = pyina4 PACKAGE = pyina3 PROJECT = mpimystic 4 PACKAGE = mpimystic 5 5 6 6 BUILD_DIRS = \ … … 26 26 EXPORT_PYTHON_MODULES = \ 27 27 __init__.py \ 28 mpiconsts.py \29 28 differential_evolution.py \ 30 29 differential_evolution_app.py \ 31 30 differential_evolution_ezmap.py \ 32 parallel_map.py \33 parallel_map2.py \34 ez_map.py \35 launchers.py \36 mappers.py \37 tools.py \38 31 39 32 -
mpimystic/mpimystic/README
r196 r224 2 2 of the mystic inversion framework. The core launcher uses mpi. 3 3 4 This package was adapted from the pyina CVS 2008-07-07. 5 It requires: 6 - numpy 4 This package was adapted from the pyina CVS 2008-07-07. Pyina's 5 "map-reduce" core has been splintered off and now is part of pathos. 6 The remaining parts are mystic solvers, modified for parallel computing. 7 This package requires: 7 8 - mystic 8 - pyre.mpi (built from svn@danse.us/pyre/branches/mpi-lib) 9 - journal (part of pythia-0.8; see http://danse.us/trac/pyre) 10 - dill (part of pathos; see http://dev.danse.us/trac/pathos) 9 - pyina 11 10 12 pyina/differential_evolution.py is an "incorrect" implementation13 pyina/differential_evolution_ezmap.py hides mpi within "map" and "launcher"14 - ez_map: writes cost functo temporary sourcefile (.py)15 - ez_map2: writes cost functo temporary picklefile (.pik)11 mpimystic/differential_evolution.py is an "incorrect" implementation 12 mpimystic/differential_evolution_ezmap.py hides mpi within "map" and "launcher" 13 - ez_map: writes cost_function to temporary sourcefile (.py) 14 - ez_map2: writes cost_function to temporary picklefile (.pik) 16 15 17 16 … … 22 21 you _must_ copy some files from mystic/examples. 23 22 24 * Change to the pyinaroot directory23 * Change to the mpimystic root directory 25 24 $ cd .. 26 25 * Copy the files: … … 31 30 32 31 WARNING: 33 To run pyinacode, you _must_ have your console configured for MPI.32 To run mpimystic code, you _must_ have your console configured for MPI. 34 33 * Start mpd 35 34 $ mpd & -
mpimystic/mpimystic/__init__.py
r196 r224 11 11 12 12 """ 13 A Simple Model-Independent Inversion Framework. 13 mpimystic: a Simple Model-Independent Inversion Framework (MPI version) 14 14 """ 15 15 16 from mpiconsts import mpi 17 18 # launchers 19 20 # mappers 21 import parallel_map, parallel_map2 16 from pyina.mpiconsts import mpi 22 17 23 18 # solvers 24 19 import differential_evolution 25 #import differential_evolution_ezmap20 import differential_evolution_ezmap 26 21 27 22 # strategies, termination conditions 28 23 29 24 # monitors, function wrappers, and other tools 30 from tools import *31 25 32 26 -
mpimystic/mpimystic/differential_evolution.py
r150 r224 59 59 from pyina._pyina import bcastString, sendString, receiveString 60 60 61 import mpiconsts61 from pyina import mpiconsts 62 62 MPI_ANY_SOURCE = mpiconsts.mpi.MPI_ANY_SOURCE 63 63 MPI_ANY_TAG = mpiconsts.mpi.MPI_ANY_TAG -
mpimystic/mpimystic/differential_evolution_app.py
r141 r224 41 41 42 42 # MPI ######### 43 import mpiconsts43 from pyina import mpiconsts 44 44 MPI_ANY_SOURCE = mpiconsts.mpi.MPI_ANY_SOURCE 45 45 MPI_ANY_TAG = mpiconsts.mpi.MPI_ANY_TAG -
mpimystic/mpimystic/differential_evolution_ezmap.py
r221 r224 130 130 #------------------------------------------------------------- 131 131 132 #from ez_map import ez_map # sourced function133 from ez_map import ez_map2 as ez_map # pickled function132 #from pyina.ez_map import ez_map # sourced function 133 from pyina.ez_map import ez_map2 as ez_map # pickled function 134 134 135 135 import signal -
mpimystic/mystic_files.py
r222 r224 7 7 8 8 target_dir = os.curdir+os.sep+PATH_1+os.sep 9 destination_dir = os.curdir+os.sep+"examples_ raw"+os.sep9 destination_dir = os.curdir+os.sep+"examples_other"+os.sep 10 10 11 11 def copy(): -
mpimystic/setup.py
r222 r224 4 4 # 5 5 # Patrick Hung & Mike McKerns, Caltech 6 # (C) 1998-20 09All Rights Reserved6 # (C) 1998-2010 All Rights Reserved 7 7 # 8 8 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ … … 13 13 import os 14 14 15 mpi_incdir = os.environ['MPI_INCDIR'] 16 mpi_libdir = os.environ['MPI_LIBDIR'] 17 18 if platform[:3] == 'win': 19 MPILIBS = [] 20 module1 = Extension('_pyina', 21 ['pyinamodule\\dummy.cc', 22 'pyinamodule\_pyina.cc'], 23 include_dirs=['pyinamodule', mpi_incdir], 24 libraries=MPILIBS, 25 library_dirs=[mpi_libdir], 26 ) 27 else: #platform = linux or mac 28 MPILIBS = [] 29 #if platform[:6] == 'darwin': 30 #MPILIBS.remove('...') 31 #MPILIBS.append('...') 32 33 module1 = Extension('_pyina', 34 ['pyinamodule/dummy.cc', 35 'pyinamodule/_pyina.cc'], 36 include_dirs=['pyinamodule', mpi_incdir], 37 libraries=MPILIBS, 38 library_dirs=[mpi_libdir], 39 ) 40 41 setup(name="pyina", 42 version="0.2", 15 setup(name="mpimystic", 16 version="0.01", 43 17 maintainer="Mike McKerns", 44 18 maintainer_email="mmckerns@caltech.edu", 45 19 license="BSD", 46 20 platforms=["any"], 47 description=" InteractiveParallel-Mapping Inversion Analysis Framework",21 description="MPI version of Parallel-Mapping Inversion Analysis Framework", 48 22 classifiers=( 49 23 "Intended Audience :: Developers", … … 52 26 "Topic :: Physics Programming"), 53 27 54 packages=['pyina','pyina.tools','pyina.applications'], 55 package_dir={'pyina':'pyina','pyina.tools':'tools','pyina.applications':'applications'}, 56 ext_modules=[module1], 57 28 packages=['mpimystic'], 29 package_dir={'mpimystic':'mpimystic'}, 58 30 scripts=[]) 59 31 -
mpimystic/tests/Make.mm
r88 r224 2 2 # 3 3 4 PROJECT = pyina4 PROJECT = mpimystic 5 5 PACKAGE = tests 6 6 … … 10 10 PROJ_CPPTESTS = 11 11 PROJ_TESTS = $(PROJ_PYTESTS) # $(PROJ_CPPTESTS) 12 PROJ_LIBRARIES = -L$(BLD_LIBDIR) # -l pyina12 PROJ_LIBRARIES = -L$(BLD_LIBDIR) # -lmpimystic 13 13 14 14 #-------------------------------------------------------------------------- -
mystic/mystic/README
r133 r224 3 3 Storn and Price differential evolution solver in python. 4 4 5 The parallel framework implementation is being developed in the pyina branch. 5 If 'pyina' is installed, the global optimizers can launched in parallel 6 mode using MPI. Pyina is part of the pathos package, available here: 7 http://dev.danse.us/trac/pathos 8 6 9 7 10 # end of file -
mystic/mystic/__init__.py
r144 r224 4 4 # 5 5 # Patrick Hung & Mike McKerns, Caltech 6 # (C) 1997-20 08All Rights Reserved6 # (C) 1997-2010 All Rights Reserved 7 7 # 8 8 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note: See TracChangeset
for help on using the changeset viewer.