git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10667 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -45,11 +45,13 @@ class Device {
|
||||
* - -2 if GPU not found
|
||||
* - -4 if GPU library not compiled for GPU
|
||||
* - -6 if GPU could not be initialized for use
|
||||
* - -7 if accelerator sharing is not currently allowed on system **/
|
||||
* - -7 if accelerator sharing is not currently allowed on system
|
||||
* - -11 if vendor_string has the wrong number of parameters **/
|
||||
int init_device(MPI_Comm world, MPI_Comm replica, const int first_gpu,
|
||||
const int last_gpu, const int gpu_mode,
|
||||
const double particle_split, const int nthreads,
|
||||
const int t_per_atom, const double cell_size);
|
||||
const int last_gpu, const int gpu_mode,
|
||||
const double particle_split, const int nthreads,
|
||||
const int t_per_atom, const double cell_size,
|
||||
char *vendor_string);
|
||||
|
||||
/// Initialize the device for Atom and Neighbor storage
|
||||
/** \param rot True if quaternions need to be stored
|
||||
@ -234,6 +236,8 @@ class Device {
|
||||
inline int max_bio_shared_types() const { return _max_bio_shared_types; }
|
||||
/// Architecture gpu code compiled for (returns 0 for OpenCL)
|
||||
inline double ptx_arch() const { return _ptx_arch; }
|
||||
/// Number of threads executing concurrently on same multiproc
|
||||
inline int warp_size() const { return _warp_size; }
|
||||
|
||||
// -------------------- SHARED DEVICE ROUTINES --------------------
|
||||
// Perform asynchronous zero of integer array
|
||||
@ -278,6 +282,8 @@ class Device {
|
||||
pppm_double->precompute(ago,nlocal,nall,host_x,host_type,success,charge,
|
||||
boxlo,prd);
|
||||
}
|
||||
|
||||
inline std::string compile_string() { return _ocl_compile_string; }
|
||||
|
||||
private:
|
||||
std::queue<Answer<numtyp,acctyp> *> ans_queue;
|
||||
@ -305,6 +311,9 @@ class Device {
|
||||
|
||||
int _data_in_estimate, _data_out_estimate;
|
||||
|
||||
std::string _ocl_vendor_name, _ocl_vendor_string, _ocl_compile_string;
|
||||
int set_ocl_params(char *);
|
||||
|
||||
template <class t>
|
||||
inline std::string toa(const t& in) {
|
||||
std::ostringstream o;
|
||||
|
||||
Reference in New Issue
Block a user