Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/lib/cl-target/main.c
ViewVC logotype

Diff of /branches/pure-cfg/src/lib/cl-target/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1517, Fri Oct 7 19:52:25 2011 UTC revision 1518, Sat Oct 8 02:39:41 2011 UTC
# Line 62  Line 62 
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
# Line 292  Line 292 
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);
# Line 620  Line 619 
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);

Legend:
Removed from v.1517  
changed lines
  Added in v.1518

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0