38 #ifndef _MMC_HOSTCODE_CL_H 39 #define _MMC_HOSTCODE_CL_H 41 #include "mmc_cl_utils.h" 49 #ifndef CL_MEM_LOCATION_HOST_NV 50 #define CL_MEM_LOCATION_HOST_NV (1 << 0) 51 typedef cl_bitfield cl_mem_flags_NV;
54 #define RO_MEM (CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR) 55 #define WO_MEM (CL_MEM_WRITE_ONLY | CL_MEM_COPY_HOST_PTR) 56 #define RW_MEM (CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR) 57 #define RW_PTR (CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR) 58 #define NV_PIN CL_MEM_LOCATION_HOST_NV 60 #define OCL_ASSERT(x) ocl_assess((x),__FILE__,__LINE__) 62 #define RAND_SEED_WORD_LEN 4 //48 bit packed with 64bit length 64 typedef struct PRE_ALIGN(32) GPU_mcconfig {
67 cl_float tstart, tend;
68 cl_uint isreflect, issavedet, issaveexit, ismomentum, isatomic, isspecular;
104 } MCXParam POST_ALIGN(32);
106 typedef struct POST_ALIGN(32) GPU_reporter {
108 } MCXReporter POST_ALIGN(32);
This structure defines the problem settings (domain, filenames, session)
Definition: mmc_utils.h:184
Definition of the core ray-tracing functions.
const char outputtype[]
Definition: mmc_utils.c:161
Basic FEM mesh data structrure.
Definition: mmc_mesh.h:90
Definition of basic mesh data structures and inline vector operations.
Ray-tracer data structrure for pre-computed data.
Definition: mmc_mesh.h:128