~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to lib/gpu/geryon/ocl_device.h

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
  inline bool double_precision(const int i) 
186
186
    {return _properties[i].double_precision;}
187
187
   
188
 
  /// Get the number of cores in the current device
189
 
  inline unsigned cores() { return cores(_device); }
190
 
  /// Get the number of cores
191
 
  inline unsigned cores(const int i) 
192
 
    { if (device_type(i)==UCL_CPU) return _properties[i].compute_units;
193
 
      else return _properties[i].compute_units*8; }
194
 
  
 
188
  /// Get the number of compute units on the current device
 
189
  inline unsigned cus() { return cus(_device); }
 
190
  /// Get the number of compute units
 
191
  inline unsigned cus(const int i) 
 
192
    { return _properties[i].compute_units; }
 
193
 
195
194
  /// Get the gigabytes of global memory in the current device
196
195
  inline double gigabytes() { return gigabytes(_device); }
197
196
  /// Get the gigabytes of global memory