Swarm-NG  1.1
gpulog_log.h File Reference

Defines templates for logging system on GPU. More...

#include "gpulog_write.h"

Go to the source code of this file.

Classes

struct  gpulog::internal::dev_internals
 device internals encapsulation for log_base<> template More...
 
struct  gpulog::internal::host_internals
 host internals encapsulation for log_base<> template More...
 
struct  gpulog::internal::log_base< A >
 Log template with the write() implementations. More...
 
struct  gpulog::internal::host_log
 Host specialization, with memory management. More...
 

Namespaces

 gpulog
 class template pktsize<> and supporting classes and templates that enable the compile-time calculation of log record layout (byte offsets to which the data will be stored).
 

Constant Groups

 gpulog
 class template pktsize<> and supporting classes and templates that enable the compile-time calculation of log record layout (byte offsets to which the data will be stored).
 

Typedefs

typedef log_base< dev_internals > gpulog::internal::device_log
 Device specialization.
 

Functions

void gpulog::internal::download_device_log (device_log &log, device_log *dlog)
 Download the pointers from symbol 'name' to device_log structure on the host.
 
void gpulog::internal::download_device_log (device_log &log, const char *name)
 Download the pointers from symbol 'name' to device_log structure on the host.
 
void gpulog::internal::upload_device_log (const char *name, device_log &log)
 Uplaod the pointers from device_log structure on the host to symbol 'name'.
 
device_log * gpulog::internal::upload_device_log (device_log &log)
 Uplaod the pointers from device_log structure on the host to a new buffer.
 
__host__ void gpulog::internal::copy (host_log &to, device_log &from, int flags=0)
 Copy device log buffers and metadata from 'from' to host_log 'to'. More...
 
void gpulog::internal::copy (host_log &to, const char *from, int flags=0)
 Copy device log buffers and metadata from object stored in device symbol 'symbol', to host_log to. More...
 
void gpulog::internal::copy (host_log &to, device_log *from, int flags=0)
 Copy device log buffers and metadata from object stored in device symbol 'symbol', to host_log to. More...
 
device_log gpulog::internal::alloc_device_log (const char *symbol, size_t len)
 Setup a new log object in device symbol 'symbol'.
 
device_log * gpulog::internal::alloc_device_log (size_t len)
 Setup a new log object and return the device pointer.
 
void gpulog::internal::free_device_log (const char *symbol)
 Free the memory associated with device log in symbol 'symbol'.
 

Detailed Description

Defines templates for logging system on GPU.

Definition in file gpulog_log.h.