limbo018 / dr-cu-rl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building

Install Dependencies

  • Libtorch
wget https://download.pytorch.org/libtorch/cu101/libtorch-shared-with-deps-1.4.0.zip
unzip libtorch*.zip

You can also click here to download other versions based on your gcc and cuda.

  • benchmakrs (The benchmarks can be downloaded from the hompage of ISPD'18 Contest)
  • Boost 1.72.0 (Other versions have not been tested)
  • gcc
  • cmake

Get the source

git clone git@github.com:tyleryy/dr-cu-rl.git
git submodule sync
git submodule update --init --recursive

Build

cd dr-cu-rl
mkdir build && cd build
cmake -DCMAKE_PREFIX_PATH=path/to/libtorch
make

How to run

./dr-cu-rl -lef path/to/lef -def path/to/def/ -guide path/to/guide -output output_file_name -threads 8 -tat 200000

Example

cd build
./dr-cu-rl -lef ../dr-cu/toys/ispd18_sample/ispd18_sample.input.lef -def ../dr-cu/toys/ispd18_sample/ispd18_sample.input.def -guide ../dr-cu/toys/ispd18_sample/ispd18_sample.input.guide -output ispd18_sample.solution.def -threads 8 -tat 200000

About


Languages

Language:C++ 93.2%Language:Python 6.0%Language:CMake 0.4%Language:Shell 0.2%Language:Tcl 0.1%Language:OpenEdge ABL 0.0%Language:C 0.0%