Skip to content

Vtr log changes #1637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
May 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
9f14aba
Made changes to vpr api flow so that the vpr options are printed earl…
sfkhalid Jan 18, 2021
7ffafd6
Removed lines that printed RoutingArch options to the vpr_stdout.log …
sfkhalid Jan 18, 2021
e6ae6b1
Ran make format
sfkhalid Jan 18, 2021
0e27310
Added a header before the vpr options
sfkhalid Jan 24, 2021
a96d2bc
Merge branch 'master' into vtr_log_changes
sfkhalid Jan 27, 2021
a668cc7
Added comment saying vtr::vector generally preferable to use over vtr…
sfkhalid Feb 4, 2021
950e83e
Need to merge branch 'vtr_log_changes' of https://github.com/verilog-…
sfkhalid Feb 4, 2021
07fa349
Merge branch 'master' into vtr_log_changes
sfkhalid Feb 4, 2021
e5a783d
Merge branch 'master' into vtr_log_changes
sfkhalid Feb 11, 2021
a23df54
Merge branch 'master' into vtr_log_changes
sfkhalid Feb 18, 2021
445c2e4
Merge branch 'master' into vtr_log_changes
sfkhalid Mar 2, 2021
b2b1bef
Merge branch 'master' into vtr_log_changes
sfkhalid Mar 3, 2021
88ec833
Merge branch 'master' into vtr_log_changes
sfkhalid Mar 3, 2021
9060926
Merge branch 'master' into vtr_log_changes
sfkhalid Mar 10, 2021
6d78896
Merge branch 'master' into vtr_log_changes
sfkhalid Mar 17, 2021
61ab30e
Merge branch 'master' into vtr_log_changes
sfkhalid Mar 18, 2021
41b7960
Merge branch 'master' into vtr_log_changes
sfkhalid Apr 1, 2021
02840d0
Merge branch 'master' into vtr_log_changes
vaughnbetz May 26, 2021
0637601
Merge branch 'master' into vtr_log_changes
vaughnbetz May 27, 2021
1a382ba
Merge branch 'master' into vtr_log_changes
vaughnbetz May 28, 2021
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
4 changes: 3 additions & 1 deletion libs/libvtrutil/src/vtr_vector_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ namespace vtr {
* If you need a fully featured std::map like container without the above differences see
* vtr::linear_map.
*
* If you do not need std::map-like features see vtr::vector.
* If you do not need std::map-like features see vtr::vector. Note that vtr::vector_map is very similar
* to vtr::vector. Unless there is a specific reason that vtr::vector_map is needed, it is better to use vtr::vector.
*
* Note that it is possible to use vector_map with sparse/non-contiguous keys, but this is typically
* memory inefficient as the underlying vector will allocate space for [0..size_t(max_key)-1],
Expand All @@ -39,6 +40,7 @@ namespace vtr {
* when a given index/key before it is accessed. The exception to this are the find(), insert() and
* update() methods which handle non-existing keys gracefully.
*/

template<typename K, typename V, typename Sentinel = DefaultSentinel<V>>
class vector_map {
public: //Public types
Expand Down
7 changes: 6 additions & 1 deletion vpr/src/base/SetupVPR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "read_options.h"
#include "echo_files.h"
#include "clock_modeling.h"
#include "ShowSetup.h"

static void SetupNetlistOpts(const t_options& Options, t_netlist_opts& NetlistOpts);
static void SetupPackerOpts(const t_options& Options,
Expand Down Expand Up @@ -70,7 +71,8 @@ void SetupVPR(const t_options* Options,
int* GraphPause,
bool* SaveGraphics,
std::string* GraphicsCommands,
t_power_opts* PowerOpts) {
t_power_opts* PowerOpts,
t_vpr_setup* vpr_setup) {
using argparse::Provenance;

auto& device_ctx = g_vpr_ctx.mutable_device();
Expand Down Expand Up @@ -113,6 +115,7 @@ void SetupVPR(const t_options* Options,
device_ctx.physical_tile_types,
device_ctx.logical_block_types);
}
VTR_LOG("\n");

*user_models = Arch->models;
*library_models = Arch->model_library;
Expand Down Expand Up @@ -211,6 +214,8 @@ void SetupVPR(const t_options* Options,
}
}

ShowSetup(*vpr_setup);

/* init global variables */
vtr::out_file_prefix = Options->out_file_prefix;

Expand Down
3 changes: 2 additions & 1 deletion vpr/src/base/SetupVPR.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ void SetupVPR(const t_options* Options,
int* GraphPause,
bool* SaveGraphics,
std::string* GraphicsCommands,
t_power_opts* PowerOpts);
t_power_opts* PowerOpts,
t_vpr_setup* vpr_setup);
#endif
46 changes: 2 additions & 44 deletions vpr/src/base/ShowSetup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ static void ShowRouterOpts(const t_router_opts& RouterOpts);
static void ShowAnalysisOpts(const t_analysis_opts& AnalysisOpts);

static void ShowAnnealSched(const t_annealing_sched& AnnealSched);
static void ShowRoutingArch(const t_det_routing_arch& RoutingArch);

/******** Function Implementations ********/

Expand All @@ -40,6 +39,8 @@ void ShowSetup(const t_vpr_setup& vpr_setup) {
VTR_LOG("Analysis: %s\n", (vpr_setup.AnalysisOpts.doAnalysis ? "ENABLED" : "DISABLED"));
VTR_LOG("\n");

VTR_LOG("VPR was run with the following options:\n\n");

ShowNetlistOpts(vpr_setup.NetlistOpts);

if (vpr_setup.PackerOpts.doPacking) {
Expand All @@ -54,9 +55,6 @@ void ShowSetup(const t_vpr_setup& vpr_setup) {
if (vpr_setup.AnalysisOpts.doAnalysis) {
ShowAnalysisOpts(vpr_setup.AnalysisOpts);
}

if (DETAILED == vpr_setup.RouterOpts.route_type)
ShowRoutingArch(vpr_setup.RoutingArch);
}

void printClusteredNetlistStats() {
Expand Down Expand Up @@ -107,46 +105,6 @@ void printClusteredNetlistStats() {
num_blocks_type.clear();
}

static void ShowRoutingArch(const t_det_routing_arch& RoutingArch) {
VTR_LOG("RoutingArch.directionality: ");
switch (RoutingArch.directionality) {
case BI_DIRECTIONAL:
VTR_LOG("BI_DIRECTIONAL\n");
break;
case UNI_DIRECTIONAL:
VTR_LOG("UNI_DIRECTIONAL\n");
break;
default:
VPR_FATAL_ERROR(VPR_ERROR_UNKNOWN, "<Unknown>\n");
break;
}

VTR_LOG("RoutingArch.switch_block_type: ");
switch (RoutingArch.switch_block_type) {
case SUBSET:
VTR_LOG("SUBSET\n");
break;
case WILTON:
VTR_LOG("WILTON\n");
break;
case UNIVERSAL:
VTR_LOG("UNIVERSAL\n");
break;
case FULL:
VTR_LOG("FULL\n");
break;
case CUSTOM:
VTR_LOG("CUSTOM\n");
break;
default:
VTR_LOG_ERROR("switch block type\n");
}

VTR_LOG("RoutingArch.Fs: %d\n", RoutingArch.Fs);

VTR_LOG("\n");
}

static void ShowAnnealSched(const t_annealing_sched& AnnealSched) {
VTR_LOG("AnnealSched.type: ");
switch (AnnealSched.type) {
Expand Down
11 changes: 6 additions & 5 deletions vpr/src/base/vpr_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ void vpr_init_with_options(const t_options* options, t_vpr_setup* vpr_setup, t_a
&vpr_setup->GraphPause,
&vpr_setup->SaveGraphics,
&vpr_setup->GraphicsCommands,
&vpr_setup->PowerOpts);
&vpr_setup->PowerOpts,
vpr_setup);

/* Check inputs are reasonable */
CheckArch(*arch);
Expand Down Expand Up @@ -357,8 +358,6 @@ void vpr_init_with_options(const t_options* options, t_vpr_setup* vpr_setup, t_a
}

fflush(stdout);

ShowSetup(*vpr_setup);
}

bool vpr_flow(t_vpr_setup& vpr_setup, t_arch& arch) {
Expand Down Expand Up @@ -1140,7 +1139,8 @@ void vpr_setup_vpr(t_options* Options,
int* GraphPause,
bool* SaveGraphics,
std::string* GraphicsCommands,
t_power_opts* PowerOpts) {
t_power_opts* PowerOpts,
t_vpr_setup* vpr_setup) {
SetupVPR(Options,
TimingEnabled,
readArchFile,
Expand All @@ -1162,7 +1162,8 @@ void vpr_setup_vpr(t_options* Options,
GraphPause,
SaveGraphics,
GraphicsCommands,
PowerOpts);
PowerOpts,
vpr_setup);
}

void vpr_check_arch(const t_arch& Arch) {
Expand Down
3 changes: 2 additions & 1 deletion vpr/src/base/vpr_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ void vpr_setup_vpr(t_options* Options,
int* GraphPause,
bool* SaveGraphics,
std::string* GraphicsCommands,
t_power_opts* PowerOpts);
t_power_opts* PowerOpts,
t_vpr_setup* vpr_setup);

///@brief Check inputs are reasonable
void vpr_check_arch(const t_arch& Arch);
Expand Down