Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/abk-openroad/RePlAce
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/abk-openroad/RePlAce:
  Update README.md
  Update README.md
  fix command errors
  Add Docker section to the README
  first version of a Dockerized RePlAce
  • Loading branch information
mgwoo committed Mar 4, 2019
2 parents 969b3a7 + 0993298 commit d033df8
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.gitignore
.gitmodules
Dockerfile
README.md
doc
prerequisite
35 changes: 35 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM centos:7
LABEL maintainer="Abdelrahman Hosny <[email protected]>"

# install gcc 7
RUN yum -y install centos-release-scl && \
yum -y install devtoolset-7 devtoolset-7-libatomic-devel
ENV CC=/opt/rh/devtoolset-7/root/usr/bin/gcc \
CPP=/opt/rh/devtoolset-7/root/usr/bin/cpp \
CXX=/opt/rh/devtoolset-7/root/usr/bin/g++ \
PATH=/opt/rh/devtoolset-7/root/usr/bin:$PATH

# install dependencies
RUN yum update -y && \
yum install -y wget libstdc++-devel libstdc++-static libX11-devel \
boost-devel zlib-devel tcl-devel autoconf automake swig flex libtool \
libtool-ltdl gmp-devel mpfr-devel libmpc-devel bison byacc ctags \
ImageMagick ImageMagick-devel

# install Intel MKL and IPP
RUN yum-config-manager --add-repo https://yum.repos.intel.com/setup/intelproducts.repo && \
rpm --import https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB && \
yum install -y intel-mkl-2018.2-046 intel-ipp-2018.4-057

# add source code
COPY . RePlAce

# install RePlAce
RUN cd RePlAce && \
make clean && \
make && \
make install

# test installation
RUN cd RePlAce/test && \
./run.sh
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@
|:--:|
| *Visualized examples from ISPD 2006 contest; adaptec2.inf* |

## Getting Started

## Run using Docker
1. Install Docker on [Windows](https://docs.docker.com/docker-for-windows/), [Mac](https://docs.docker.com/docker-for-mac/) or [Linux](https://docs.docker.com/install/).
2. Navigate to the directory where you have the input files.
3. Run RePlAce container:

docker run -it -v $(pwd):/data openroad/replace bash

4. From the interactive bash terminal, use RePlAce scripts which reside under `/RePlAce`. You can read input files from `/data` directory inside the docker container - which mirrors the host machine directory you are in.

* The Docker image is self-contained and includes everything that RePlAce needs to work properly.

## Install on a bare-metal machine

### Pre-requisite
* Intel MKL and IPP package [Link](https://software.intel.com/en-us/articles/free-ipsxe-tools-and-libraries) >= 2016.3.210
* GCC compiler and libstdc++ static library >= 5.4.0
Expand Down

0 comments on commit d033df8

Please sign in to comment.