1#ifndef SRC_THREAD_THREAD_HH_
2#define SRC_THREAD_THREAD_HH_
11#define THREAD_REGISTER_COUNT 64
49 void setId(
int threadId);
Represents a GPU threadThe Thread class encapsulates the state and behavior of a GPU thread,...
Definition thread.hh:32
ThreadState getState() const
Definition thread.cc:19
int getRegisterValue(int index) const
Definition thread.cc:24
int getId() const
Definition thread.cc:15
RegisterFile registers
Definition thread.hh:36
void setId(int threadId)
Definition thread.cc:30
void setState(ThreadState threadState)
Definition thread.cc:34
Thread()
Definition thread.cc:3
ThreadState state
Definition thread.hh:35
void setRegisters(const RegisterFile ®s)
Definition thread.cc:39
int id
Definition thread.hh:34
void setRegisterValue(int index, int value)
Definition thread.cc:43
std::array< int, THREAD_REGISTER_COUNT > RegisterFile
Definition thread.hh:13
ThreadState
Definition thread.hh:15
@ ACTIVE
Definition thread.hh:16
@ INACTIVE
Definition thread.hh:17