From 69f2911e04ffb1b19eef1fafb8c040af271f656e Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 15 Jul 2010 18:09:46 -0800 Subject: creating branch for adding support for CUDA 3.x and Fermi [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6829] --- src/intersim/fly.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/intersim/fly.hpp (limited to 'src/intersim/fly.hpp') diff --git a/src/intersim/fly.hpp b/src/intersim/fly.hpp new file mode 100644 index 0000000..76ebb12 --- /dev/null +++ b/src/intersim/fly.hpp @@ -0,0 +1,26 @@ +#ifndef _FLY_HPP_ +#define _FLY_HPP_ + +#include "network.hpp" + +class KNFly : public Network { + + int _k; + int _n; + + void _ComputeSize( const Configuration &config ); + void _BuildNet( const Configuration &config ); + + int _OutChannel( int stage, int addr, int port ) const; + int _InChannel( int stage, int addr, int port ) const; + +public: + KNFly( const Configuration &config ); + + int GetN( ) const; + int GetK( ) const; + + double Capacity( ) const; +}; + +#endif -- cgit v1.3