summaryrefslogtreecommitdiff
path: root/src/intersim2/networks
diff options
context:
space:
mode:
authorDongdong Li <[email protected]>2013-11-22 11:31:19 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:59 -0700
commit3f74773ce1ffe8ed5044a103d84459b56d4e9c20 (patch)
treef7265582ead4f320b890fa744ac6af093b9e27e0 /src/intersim2/networks
parent24f29469c042761d8b8d185c374493fbde79aca4 (diff)
Update with Booksim2.0 from Stanford
- Warning fixed - Unused file deleted - Add support for node map configuration. Code Review: Issue 93001 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 17410]
Diffstat (limited to 'src/intersim2/networks')
-rw-r--r--src/intersim2/networks/dragonfly.cpp10
-rw-r--r--src/intersim2/networks/kncube.cpp4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/intersim2/networks/dragonfly.cpp b/src/intersim2/networks/dragonfly.cpp
index b539cc6..01a2281 100644
--- a/src/intersim2/networks/dragonfly.cpp
+++ b/src/intersim2/networks/dragonfly.cpp
@@ -217,12 +217,12 @@ void DragonFlyNew::_ComputeSize( const Configuration &config )
void DragonFlyNew::_BuildNet( const Configuration &config )
{
- int _output;
- int _input;
+ int _output=-1;
+ int _input=-1;
+ int _dim_ID=-1;
+ int _num_ports_per_switch=-1;
+ int _dim_size=-1;
int c;
- int _dim_ID;
- int _num_ports_per_switch;
- int _dim_size;
ostringstream router_name;
diff --git a/src/intersim2/networks/kncube.cpp b/src/intersim2/networks/kncube.cpp
index 6915f22..03e13e7 100644
--- a/src/intersim2/networks/kncube.cpp
+++ b/src/intersim2/networks/kncube.cpp
@@ -1,4 +1,4 @@
-// $Id: kncube.cpp 5188 2012-08-30 00:31:31Z dub $
+// $Id: kncube.cpp 5516 2013-10-06 02:14:48Z dub $
/*
Copyright (c) 2007-2012, Trustees of The Leland Stanford Junior University
@@ -239,7 +239,7 @@ void KNCube::InsertRandomFaults( const Configuration &config )
num_fails = config.GetInt( "link_failures" );
- if ( num_fails ) {
+ if ( _size && num_fails ) {
prev_seed = RandomIntLong( );
RandomSeed( config.GetInt( "fail_seed" ) );