Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Prerequisites

## LEMON
* https://lemon.cs.elte.hu/trac/lemon
* Get lemon. Build it by reading its INSTALL documents.
* The version (as of 2019-03-16) tested with is 1.3.1.
* In my case, I did (not system-wide install.)
* mkdir build # make build directory for cmake to work
* cd build # get inside it
* cmake -DCMAKE_INSTALL_PREFIX=$HOME/usr/lemon ..
* Install prefix is specified as above command.
* make # compile LEMON
* make install # install LEMON.
* check coloquinte/src/CMakeFiles.txt, make sure
`include_directories($ENV{HOME}/usr/lemon/include)` points to where
you configured/installed lemon.


# Compiling

Build just like other cmake projects.

* mkdir build
* cd build
* cmake -DCMAKE_INSTALL_PREFIX=$HOME/usr/etesian ..
* make # or make -j for multi-threaded build
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ set ( cpps circuit.cxx
legalizer.cxx
)
set ( coloquintecpps main.cxx )


# Make sure this points to where lemon is installed!
include_directories($ENV{HOME}/usr/lemon/include)

add_library ( coloquinte ${cpps} )
add_executable ( coloquinte.bin ${coloquintecpps})
target_link_libraries ( coloquinte.bin coloquinte )
set_property(TARGET coloquinte PROPERTY CXX_STANDARD 11)

install( TARGETS coloquinte DESTINATION lib${LIB_SUFFIX} )
install( FILES ${includes} DESTINATION include/coloquinte )
1 change: 1 addition & 0 deletions src/coloquinte/circuit_helper.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#ifndef COLOQUINTE_GP_HELPERCIRCUIT
#define COLOQUINTE_GP_HELPERCIRCUIT

#include <cmath>
#include "common.hxx"
#include "netlist.hxx"

Expand Down
1 change: 1 addition & 0 deletions src/coloquinte/optimization_subproblems.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "common.hxx"

#include <numeric>
#include <queue>
#include <vector>
#include <cassert>
Expand Down
2 changes: 1 addition & 1 deletion src/optimization_subproblems.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ std::vector<capacity_t> transport_1D(std::vector<t1D_elt> sources, std::vector<
namespace{ // Anonymous namespace to hide the transportation structures

class current_allocation{
static const index_t null_ind = std::numeric_limits<index_t>::max();
const index_t null_ind = std::numeric_limits<index_t>::max();

// Internal data structures

Expand Down
1 change: 1 addition & 0 deletions src/solvers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "coloquinte/solvers.hxx"

#include <cassert>
#include <cmath>
#include <stdexcept>

namespace coloquinte{
Expand Down