OpenCL host code for OpenCL based MMC simulations. More...
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "mmc_cl_host.h"
#include "mmc_const.h"
#include "mmc_tictoc.h"
Macros | |
#define | IPARAM_TO_MACRO(macro, a, b) sprintf(macro+strlen(macro)," -Dgcfg%s=%u ", #b,(a.b)) |
#define | FPARAM_TO_MACRO(macro, a, b) sprintf(macro+strlen(macro)," -Dgcfg%s=%.10ef ",#b,(a.b)) |
Functions | |
void | mmc_run_cl (mcconfig *cfg, tetmesh *mesh, raytracer *tracer) |
Variables | |
const char * | sourceflag [] |
cl_event | kernelevent |
OpenCL host code for OpenCL based MMC simulations.
const char* sourceflag[] |
In this unit, we first launch a master thread and initialize the necessary data structures. This include the command line options (cfg), tetrahedral mesh (mesh) and the ray-tracer precomputed data (tracer).