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

SCM Repository

[diderot] Diff of /branches/vis12-cl/src/include/Diderot/ocl-support.h
ViewVC logotype

Diff of /branches/vis12-cl/src/include/Diderot/ocl-support.h

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

revision 3117, Sun Mar 22 08:30:03 2015 UTC revision 3118, Mon Mar 23 18:05:45 2015 UTC
# Line 73  Line 73 
73      Diderot_PlatformInfo_t *platforms;  //!< array of supported platforms.      Diderot_PlatformInfo_t *platforms;  //!< array of supported platforms.
74  } Diderot_OCLInfo_t;  } Diderot_OCLInfo_t;
75    
76    // sizes of the various GPU-side data structures
77    // Note: this structure must match the definition in cl-target/fragments/cl-sizes.in
78    //
79    typedef struct {
80        cl_uint     schedSzB;       // size of SchedState_t
81        cl_uint     strandBlkSzB;   // size of StrandBlock_t
82        cl_uint     globSzB;        // size of globals buffer
83        cl_uint     stateSzB;       // size of strand type
84    } Diderot_Sizes_t;
85    
86    // extension of the WorldPrefix_t struct with common OpenCL components
87    typedef struct {
88    STRUCT_WORLD_PREFIX
89        Diderot_OCLInfo_t   *oclInfo;
90        cl_int              gpuDevId;
91        Diderot_DeviceInfo_t *device;
92        uint32_t            nWorkers;
93        Diderot_Sizes_t     oclSizes;
94        cl_program          prog;
95        cl_command_queue    cmdQ;
96        cl_context          context;
97    } OCLWorldPrefix_t;
98    
99  /*! \brief return information about the OpenCL support of the system.  /*! \brief return information about the OpenCL support of the system.
100   *  \return pointer to a CLInfo_t structure or 0 if there is an error.   *  \return pointer to a CLInfo_t structure or 0 if there is an error.
101   */   */
# Line 110  Line 133 
133   */   */
134  const char *Diderot_OCLErrorString (cl_int sts);  const char *Diderot_OCLErrorString (cl_int sts);
135    
136    /***** CPU-side image initialization routines *****/
137    
138    bool Diderot_LoadGPUImage1D (OCLWorldPrefix_t *wrld, cl_mem globals, const char *imgName, cl_kernel initKern, cl_mem *objOut);
139    bool Diderot_LoadGPUImage2D (OCLWorldPrefix_t *wrld, cl_mem globals, const char *imgName, cl_kernel initKern, cl_mem *objOut);
140    bool Diderot_LoadGPUImage3D (OCLWorldPrefix_t *wrld, cl_mem globals, const char *imgName, cl_kernel initKern, cl_mem *objOut);
141    
142  #endif /* !_OCL_SUPPORT_ */  #endif /* !_OCL_SUPPORT_ */

Legend:
Removed from v.3117  
changed lines
  Added in v.3118

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