Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
libgluon/include/galois/cuda/Context.h File Reference

Contains definition of CUDA context structures. More...

#include <cuda.h>
#include "gg.h"
#include "galois/cuda/HostDecls.h"

Go to the source code of this file.

Classes

struct  CUDA_Context_Shared
 
struct  CUDA_Context_Common
 
struct  CUDA_Context_Field< Type >
 

Functions

bool init_CUDA_context_common (struct CUDA_Context_Common *ctx, int device)
 
void load_graph_CUDA_common (struct CUDA_Context_Common *ctx, MarshalGraph &g, unsigned num_hosts)
 
size_t mem_usage_CUDA_common (MarshalGraph &g, unsigned num_hosts)
 
template<typename Type >
void load_graph_CUDA_field (struct CUDA_Context_Common *ctx, struct CUDA_Context_Field< Type > *field, unsigned num_hosts)
 
template<typename Type >
size_t mem_usage_CUDA_field (struct CUDA_Context_Field< Type > *field, MarshalGraph &g, unsigned num_hosts)
 

Detailed Description

Contains definition of CUDA context structures.

Function Documentation

bool init_CUDA_context_common ( struct CUDA_Context_Common ctx,
int  device 
)
void load_graph_CUDA_common ( struct CUDA_Context_Common ctx,
MarshalGraph g,
unsigned  num_hosts 
)
template<typename Type >
void load_graph_CUDA_field ( struct CUDA_Context_Common ctx,
struct CUDA_Context_Field< Type > *  field,
unsigned  num_hosts 
)
size_t mem_usage_CUDA_common ( MarshalGraph g,
unsigned  num_hosts 
)
template<typename Type >
size_t mem_usage_CUDA_field ( struct CUDA_Context_Field< Type > *  field,
MarshalGraph g,
unsigned  num_hosts 
)