GPUOcelot
Classes | Public Types | Public Member Functions | Public Attributes

util::ExtractedDeviceState Class Reference

#include <ExtractedDeviceState.h>

Collaboration diagram for util::ExtractedDeviceState:
Collaboration graph
[legend]

List of all members.

Classes

class  Application
class  GlobalAllocation
class  KernelLaunch
class  MemoryAllocation
class  Module

Public Types

typedef std::map< std::string,
ir::Texture * > 
TextureMap
typedef std::map< std::string,
GlobalAllocation * > 
GlobalVariableMap
typedef std::map< const void
*, MemoryAllocation * > 
GlobalAllocationMap
typedef std::map< std::string,
Module * > 
ModuleMap

Public Member Functions

 ExtractedDeviceState (std::istream &in)
 constructs from an istream - input must be JSON document
 ExtractedDeviceState ()
 ~ExtractedDeviceState ()
void serialize (std::ostream &out) const
 store data in host memory to file
void deserialize (std::istream &in)
 load data from JSON file to host memory
void clear ()
 clear all data structures
void clearData ()

Public Attributes

Application application
 data specific to an application
ModuleMap modules
 maps module names onto structure capturing module state
GlobalAllocationMap globalAllocations
 values of global allocations before kernel launch
GlobalVariableMap globalVariables
 values of global variables before the kernel launch
GlobalAllocationMap postLaunchGlobalAllocations
 values of global allocations after kernel launch
GlobalVariableMap postLaunchGlobalVariables
 values of global variables after the kernel launch
KernelLaunch launch
 parameters of CUDA launch

Member Typedef Documentation

typedef std::map<std::string, Module*> util::ExtractedDeviceState::ModuleMap
typedef std::map<std::string, ir::Texture*> util::ExtractedDeviceState::TextureMap

Constructor & Destructor Documentation

util::ExtractedDeviceState::ExtractedDeviceState ( std::istream &  in)

constructs from an istream - input must be JSON document

util::ExtractedDeviceState::ExtractedDeviceState ( )
util::ExtractedDeviceState::~ExtractedDeviceState ( )

Member Function Documentation

void util::ExtractedDeviceState::clear ( )

clear all data structures

void util::ExtractedDeviceState::clearData ( )
void util::ExtractedDeviceState::deserialize ( std::istream &  in)

load data from JSON file to host memory

void util::ExtractedDeviceState::serialize ( std::ostream &  out) const

store data in host memory to file


Member Data Documentation

data specific to an application

values of global allocations before kernel launch

values of global variables before the kernel launch

parameters of CUDA launch

maps module names onto structure capturing module state

values of global allocations after kernel launch

values of global variables after the kernel launch


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