27 #include "../common.hpp"
32 namespace swarm {
namespace log {
59 gpulog::host_log hlog;
61 gpulog::device_log* pdlog;
67 static const int default_buffer_size = 50*1024*1024;
70 enum { memory = 0x01, if_full = 0x02 };
78 void init(
const config&,
int host_buffer_size = default_buffer_size,
int device_buffer_size = default_buffer_size);
85 void flush(
int flags = memory);
90 gpulog::device_log* get_gpulog() {
return pdlog; }
91 gpulog::host_log* get_hostlog() {
return &hlog; }
92 Pwriter get_writer() {
return log_writer; }
100 typedef shared_ptr<manager> Pmanager;