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

SCM Repository

[diderot] Diff of /branches/vis12/src/include/Diderot/clinfo.h
ViewVC logotype

Diff of /branches/vis12/src/include/Diderot/clinfo.h

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

branches/vis12/src/lib/cl-target/clinfo.h revision 2074, Fri Nov 2 22:13:59 2012 UTC branches/vis12/src/include/Diderot/clinfo.h revision 2075, Sat Nov 3 13:27:02 2012 UTC
# Line 11  Line 11 
11  #ifndef _CLINFO_H_  #ifndef _CLINFO_H_
12  #define _CLINFO_H_  #define _CLINFO_H_
13    
14  #include "Diderot/diderot.h"  #include "Diderot/config.h"
15  # ifdef HAVE_CL_CL_H  # ifdef HAVE_CL_CL_H
16  #   include <CL/cl.h>  #   include <CL/cl.h>
17  # elif defined(HAVE_OPENCL_CL_H)  # elif defined(HAVE_OPENCL_CL_H)
# Line 19  Line 19 
19  # else  # else
20  #   error no cl.h  #   error no cl.h
21  # endif  # endif
22    #include <stdio.h>
23    #include <stdbool.h>
24    
25  typedef struct {  typedef struct {
26        unsigned short  index[2];           //!< the platform/device index of the device
27      char            *name;              //!< name of device      char            *name;              //!< name of device
28      char            *vendor;            //!< device vendor      char            *vendor;            //!< device vendor
29      int             majorVersion;       //!< major OpenCL version number supported by the device      int             majorVersion;       //!< major OpenCL version number supported by the device
# Line 69  Line 72 
72  /*! \brief return information about the OpenCL support of the system.  /*! \brief return information about the OpenCL support of the system.
73   *  \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.
74   */   */
75  CLInfo_t *GetCLInfo ();  CLInfo_t *Diderot_GetCLInfo ();
76    
77    /*! \brief return the device with the given index.
78     */
79    DeviceInfo_t *Diderot_GetDeviceByIndex (CLInfo_t *clinfo, unsigned int platIdx, unsigned int devIdx);
80    
81  /*! \brief print the CL profile information to an output stream.  /*! \brief print the CL profile information to an output stream.
82   */   */
83  void PrintCLInfo (FILE *outS, CLInfo_t *clinfo);  void Diderot_PrintCLInfo (FILE *outS, CLInfo_t *clinfo);
84    
85  /*! \brief check to see if a device is a GPU */  /*! \brief check to see if a device is a GPU */
86  STATIC_INLINE bool isGPUDevice (DeviceInfo_t *dev)  STATIC_INLINE bool isGPUDevice (DeviceInfo_t *dev)

Legend:
Removed from v.2074  
changed lines
  Added in v.2075

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