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/clinfo.h
ViewVC logotype

Diff of /branches/pure-cfg/src/lib/cl-target/clinfo.h

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

revision 1378, Thu Jun 23 01:24:20 2011 UTC revision 1379, Thu Jun 23 14:48:07 2011 UTC
# Line 24  Line 24 
24      char            *name;              //!< name of device      char            *name;              //!< name of device
25      cl_device_id    id;                 //!< the device ID      cl_device_id    id;                 //!< the device ID
26      cl_device_type  ty;                 //!< the type of the device      cl_device_type  ty;                 //!< the type of the device
27        cl_bool         isAvail;            //!< true, if the device is available
28      cl_uint         addrBits;           //!< number of address bits on device (32 or 64)      cl_uint         addrBits;           //!< number of address bits on device (32 or 64)
29      cl_bool         littleEndian;       //!< true if device is little endian      cl_bool         littleEndian;       //!< true if device is little endian
30      cl_uint         numCUs;             //!< number of compute units      cl_uint         numCUs;             //!< number of compute units
# Line 54  Line 55 
55   */   */
56  CLInfo_t *GetCLInfo ();  CLInfo_t *GetCLInfo ();
57    
58    /*! \brief print the CL profile information to an output stream.
59     */
60    void PrintCLInfo (FILE *outS, CLInfo_t *clinfo);
61    
62    /*! \brief check to see if a device is a GPU */
63    STATIC_INLINE bool isGPUDevice (DeviceInfo_t *dev)
64    {
65        return ((dev->ty & CL_DEVICE_TYPE_GPU) != 0);
66    }
67    
68    /*! \brief check to see if a device is a CPU */
69    STATIC_INLINE bool isCPUDevice (DeviceInfo_t *dev)
70    {
71        return ((dev->ty & CL_DEVICE_TYPE_CPU) != 0);
72    }
73    
74  #endif /* !_CLINFO_H_ */  #endif /* !_CLINFO_H_ */

Legend:
Removed from v.1378  
changed lines
  Added in v.1379

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