#include <iostream>
#include <string>
#include <vector>
#include <array>
#include <bitset>
#include "../thread/thread.hh"
Go to the source code of this file.
|
| struct | Instruction |
| | Instruction structure. More...
|
| |
| struct | reconvergencePoint |
| |
| class | Warp |
| | Represents a GPU warpThe Warp class encapsulates the state and behavior of a GPU warp, including its ID, program counter, threads, active mask, and current instruction. A warp is a group of threads that execute instructions in lockstep. Each warp has 32 threads in this project. To be added: reconvergence stack to handle divergent control flow. More...
|
| |
|
| enum | InstructionType {
ADD
, SUB
, LOAD
, STORE
,
BRANCH
} |
| | Instruction types enumeration. More...
|
| |
| enum | WarpState { READY
, RUNNING
, STALLED
} |
| |
| enum | PipelineStage {
NOT_STARTED
, STAGE_0
, STAGE_1
, STAGE_2
,
STAGE_3
, DONE
} |
| |
◆ WARP_THREAD_COUNT
| #define WARP_THREAD_COUNT 32 |
◆ ActiveMask
◆ ThreadGroup
◆ InstructionType
Instruction types enumeration.
| Enumerator |
|---|
| ADD | |
| SUB | |
| LOAD | |
| STORE | |
| BRANCH | |
◆ PipelineStage
| Enumerator |
|---|
| NOT_STARTED | |
| STAGE_0 | |
| STAGE_1 | |
| STAGE_2 | |
| STAGE_3 | |
| DONE | |
◆ WarpState
| Enumerator |
|---|
| READY | |
| RUNNING | |
| STALLED | |