Skip to content
/ otm-mpi Public

Distributed simulation of traffic networks with OTM.

License

Notifications You must be signed in to change notification settings

ggomes/otm-mpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed simulation of traffic networks with Open Traffic Models.

Installation

Java

$ java -version
java version "11.0.5" 2019-10-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.5+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.5+10-LTS, mixed mode)
cd $HOME
gunzip -c openmpi-4.0.5.tar.gz | tar xf -
cd openmpi-4.0.5
./configure --enable-mpi-java --with-jdk-bindir=$JAVA_HOME/bin --with-jdk-headers=$JAVA_HOME/include --prefix=$HOME/openmpi-4.0.5   
make all install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/openmpi-4.0.5/lib
export PATH=$HOME/openmpi-4.0.5/bin:$PATH
export OPENMPIJAVA=$HOME/openmpi-4.0.5/ompi/mpi/java
sudo apt update
sudo apt install metis

Build OTM-MPI

  • Download the latest OTM jar file. This is the most recent file of the form otm-sim-1.0-YYYYMMDD.HHMMSS-N-jar-with-dependencies.jar.
  • Assign the location of the jar file to environment variable OTMSIMJAR. For example,
export OTMSIMJAR=$HOME/Downloads/otm-sim-1.0-20190924.222012-1-jar-with-dependencies.jar

Usage

  1. Create a scenario configuration file, for example from OSM using otm-tools.
  2. Split the network (script). This script generates a series of XML files corresponding to each of the subnetworks. These should be made available to the machines that will run the MPI processes.
  3. Run (script).
  4. Load the results into Python using otm-tools.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •