GPUOcelot
Public Member Functions | Public Attributes

executive::CTAContext Class Reference

#include <CTAContext.h>

Collaboration diagram for executive::CTAContext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CTAContext (const EmulatedKernel *kernel=0, CooperativeThreadArray *cta=0)
 ~CTAContext ()
bool predicated (int threadID, const ir::PTXInstruction &instr)
boost::dynamic_bitset predicateMask (const ir::PTXInstruction &instr)

Public Attributes

int PC
bool running
boost::dynamic_bitset active
const EmulatedKernelkernel
CooperativeThreadArraycta

Constructor & Destructor Documentation

executive::CTAContext::CTAContext ( const EmulatedKernel kernel = 0,
executive::CooperativeThreadArray c = 0 
)
executive::CTAContext::~CTAContext ( )

Member Function Documentation

bool executive::CTAContext::predicated ( int  threadID,
const ir::PTXInstruction instr 
)

Given a thread's ID, determine if the instruction should execute

boost::dynamic_bitset executive::CTAContext::predicateMask ( const ir::PTXInstruction instr)

Get the active mask after predication


Member Data Documentation

boost::dynamic_bitset executive::CTAContext::active

Thread mask with a 1 indicating activity

Pointer to owning CTA

Pointer to owning kernel

Program counter - index into PTXInstruction vector

Indicates whether the block is still running


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines