summaryrefslogtreecommitdiff
path: root/src/stream_manager.h
diff options
context:
space:
mode:
authorboyealkim <[email protected]>2019-07-26 11:55:45 +0900
committerboyealkim <[email protected]>2019-07-26 11:55:45 +0900
commitb13557baa4ea6d1084bdcc9b28b9eb660c394427 (patch)
tree7449fad69416a28321c66190192bea6fb2b0cd97 /src/stream_manager.h
parent8e9f0375a6a8bed217b0634a08f7f1f0cd149744 (diff)
fix indentation
Diffstat (limited to 'src/stream_manager.h')
-rw-r--r--src/stream_manager.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/stream_manager.h b/src/stream_manager.h
index ae1af9f..eb4c6ff 100644
--- a/src/stream_manager.h
+++ b/src/stream_manager.h
@@ -163,6 +163,7 @@ public:
void print( FILE *fp ) const;
struct CUstream_st *get_stream() { return m_stream; }
void set_stream( CUstream_st *stream ) { m_stream = stream; }
+
private:
struct CUstream_st *m_stream;
@@ -178,9 +179,9 @@ private:
const char *m_symbol;
size_t m_offset;
- struct CUevent_st *m_event;
bool m_sim_mode;
kernel_info_t *m_kernel;
+ struct CUevent_st *m_event;
};
struct CUevent_st {
@@ -192,7 +193,7 @@ public:
m_updates = 0;
m_wallclock = 0;
m_gpu_tot_sim_cycle = 0;
- m_issued = 0;
+ m_issued = 0;
m_done = false;
}
void update( double cycle, time_t clk )
@@ -207,18 +208,14 @@ public:
unsigned num_updates() const { return m_updates; }
bool done() const { return m_done; }
time_t clock() const { return m_wallclock; }
- void issue(){
- m_issued++;
- }
- unsigned int num_issued() const{
- return m_issued;
- }
+ void issue(){ m_issued++; }
+ unsigned int num_issued() const{ return m_issued; }
private:
int m_uid;
bool m_blocking;
bool m_done;
int m_updates;
- unsigned int m_issued;
+ unsigned int m_issued;
time_t m_wallclock;
double m_gpu_tot_sim_cycle;
@@ -275,7 +272,7 @@ private:
CUstream_st m_stream_zero;
bool m_service_stream_zero;
pthread_mutex_t m_lock;
- std::list<struct CUstream_st*>::iterator m_last_stream;
+ std::list<struct CUstream_st*>::iterator m_last_stream;
};
#endif