Skip to content

Commit

Permalink
Merge pull request limbo018#8 from limbo018/cell_library
Browse files Browse the repository at this point in the history
update readme and script: add big benchmark ISPD19
  • Loading branch information
wadmes authored Apr 20, 2021
2 parents e741f92 + 4295280 commit 114aed7
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
28 changes: 28 additions & 0 deletions bin/run_big.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!

# ========================================================================
# SimpleMPL Usage
# -help (false) toggle printing help message
# -in input gds file name
# -out () output gds file name
# -coloring_distance (0) a floating point number indicating number of coloring distance in nanometer
# -color_num an integer indicating number of masks (colors) < 3|4 >
# -simplify_level (3) an integer indicating graph simplification level < 0|1|2|3 >
# -thread_num (1) an integer indicating maximum thread number
# -path_layer an integer indicating layer for conflict edges
# -precolor_layer an integer indicating layer for pre-colored patterns
# -uncolor_layer an integer indicating layer for coloring
# -algo (BACKTRACK) algorithm type < ILP|BACKTRACK|LP|SDP|DL >
# -shape (RECTANGLE) shape mode < RECTANGLE|POLYGON >
# -verbose (false) toggle controlling screen messages
# -use_stitch use stitch to avoid conflict
# -gen_stitch generate stitch candidate
# -dbg_comp_id debug component id
# -weight_stitch a floating point number indicating the weight of stitch
# ========================================================================

# if the benchmark contains polygon shapes, -shape must be set to POLYGON;
# otherwise, set -shape to RECTANGLE is more memory efficient
# -remove_stitch_redundancy \
mkdir -p benchout
./OpenMPL -shape POLYGON -in big/ispd19_test4_flatten.gds -out benchout/ispd19_test4_flatten.gds -remove_stitch_redundancy -coloring_distance 500 -uncolor_layer 101 -color_num 3 -algo DL_OPT -thread_num 8 -use_stitch -gen_stitch -record 1
16 changes: 16 additions & 0 deletions src/SimpleMPL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2239,7 +2239,23 @@ double SimpleMPL::solve_graph_coloring(uint32_t comp_id, SimpleMPL::graph_type c
myfile<<m_db->input_gds().c_str()<<" "<<comp_id<<" "<<sub_comp_id <<" "<<num_vertices(sg)<<" "<<obj_value1<<" "<<runtime<<"\n";
myfile.close();
}
if(m_db->algo() == AlgorithmTypeEnum::ILP_UPDATED_GUROBI && num_vertices(sg) > 3)
{
std::string runtime = comp_timer.format(6,"%w");
std::ofstream myfile;
myfile.open("ILP_update_obj.txt", std::ofstream::app);
myfile<<m_db->input_gds().c_str()<<" "<<comp_id<<" "<<sub_comp_id <<" "<<num_vertices(sg)<<" "<<obj_value1<<" "<<runtime<<"\n";
myfile.close();
}
if(m_db->algo() == AlgorithmTypeEnum::DANCING_LINK && num_vertices(sg) > 3)
{
std::string runtime = comp_timer.format(6,"%w");
std::ofstream myfile;
myfile.open("DL_obj.txt", std::ofstream::app);
myfile<<m_db->input_gds().c_str()<<" "<<comp_id<<" "<<sub_comp_id <<" "<<num_vertices(sg)<<" "<<obj_value1<<" "<<runtime<<"\n";
myfile.close();
}
if(m_db->algo() == AlgorithmTypeEnum::DANCING_LINK_OPT && num_vertices(sg) > 3)
{
std::string runtime = comp_timer.format(6,"%w");
std::ofstream myfile;
Expand Down

0 comments on commit 114aed7

Please sign in to comment.