62 |
uint32_t strandSize; //!< the sizeof of the strand buffers |
uint32_t strandSize; //!< the sizeof of the strand buffers |
63 |
void *inState; |
void *inState; |
64 |
void *outState; |
void *outState; |
65 |
int *status; //!< array of strand status flags |
uint32_t *status; //!< array of strand status flags |
66 |
cl_device_id device; //!< OpenCL device |
cl_device_id device; //!< OpenCL device |
67 |
cl_context context; //!< OpenCL execution context |
cl_context context; //!< OpenCL execution context |
68 |
cl_command_queue cmdQ; //!< OpenCL command queue |
cl_command_queue cmdQ; //!< OpenCL command queue |
292 |
outArgs.name = wrld->name; |
outArgs.name = wrld->name; |
293 |
outArgs.isArray = wrld->isArray; |
outArgs.isArray = wrld->isArray; |
294 |
outArgs.numStrands = wrld->numStrands; |
outArgs.numStrands = wrld->numStrands; |
295 |
outArgs.status = (uint8_t *)(wrld->status); |
outArgs.status = wrld->status; |
296 |
outArgs.inState = wrld->outState; |
outArgs.inState = wrld->outState; |
297 |
outArgs.nDims = wrld->nDims; |
outArgs.nDims = wrld->nDims; |
298 |
outArgs.size = wrld->size; |
outArgs.size = wrld->size; |
|
outArgs.isStatusInt = true; |
|
299 |
outArgs.outputSzb = Diderot_Strands[0]->shadowStrandSzb; |
outArgs.outputSzb = Diderot_Strands[0]->shadowStrandSzb; |
300 |
if (NrrdOutputFlg) |
if (NrrdOutputFlg) |
301 |
Diderot_Output (&outArgs); |
Diderot_Output (&outArgs); |
619 |
*/ |
*/ |
620 |
wrld->inState = CheckedAlloc (wrld->strandSize); |
wrld->inState = CheckedAlloc (wrld->strandSize); |
621 |
wrld->outState = CheckedAlloc (strand->shadowStrandSzb * numStrands); |
wrld->outState = CheckedAlloc (strand->shadowStrandSzb * numStrands); |
622 |
wrld->status = NEWVEC(int, numStrands); |
wrld->status = NEWVEC(uint32_t, numStrands); |
623 |
if ((wrld->inState == 0) || (wrld->outState == 0) || (wrld->status == 0)) { |
if ((wrld->inState == 0) || (wrld->outState == 0) || (wrld->status == 0)) { |
624 |
fprintf (stderr, "unable to allocate strand states\n"); |
fprintf (stderr, "unable to allocate strand states\n"); |
625 |
exit (1); |
exit (1); |