31 int main(
int argc,
const char **argv)
37 string devicelist =
"";
38 string devicename =
"cpu";
39 bool list =
false, debug =
false;
54 ap.options(
"Usage: cycles_server [options]",
57 (
"Devices to use: " + devicelist).c_str(),
60 "List information about all available devices",
63 "Number of threads to use for CPU device",
64 #ifdef WITH_CYCLES_LOGGING
67 "Enable debug logging",
70 "Set verbosity of the logger",
74 if (ap.parse(argc, argv) < 0) {
75 fprintf(stderr,
"%s\n", ap.geterror().c_str());
103 if (device_type == device.
type) {
104 device_info = device;
114 printf(
"Cycles Server with device: %s\n", device->
info.
description.c_str());
115 device->server_run();
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
static Device * create(DeviceInfo &info, Stats &stats, Profiler &profiler, bool background=true)
static vector< DeviceInfo > available_devices(uint device_type_mask=DEVICE_MASK_ALL)
static DeviceType type_from_string(const char *name)
static vector< DeviceType > available_types()
static string string_from_type(DeviceType type)
static void init(int num_threads=0)
int main(int argc, const char **argv)
Vector< CPUDevice > devices
list of all CPUDevices. for every hardware thread an instance of CPUDevice is created
ListBase threads
list of all thread for every CPUDevice in cpudevices a thread exists.
void util_logging_init(const char *argv0)
void util_logging_verbosity_set(int verbosity)
void util_logging_start()
void path_init(const string &path, const string &user_path)