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

« back to all changes in this revision

Viewing changes to src/GPU/pair_dipole_cut_gpu.h

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2013-11-20 22:41:36 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20131120224136-tzx7leh606fqnckm
Tags: 0~20131119.git7162cf0-1
* [e65b919] Imported Upstream version 0~20131119.git7162cf0
* [f7bddd4] Fix some problems, introduced by upstream recently.
* [3616dfc] Use wrap-and-sort script.
* [7e92030] Ignore quilt dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ----------------------------------------------------------------------
2
 
   LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
3
 
   http://lammps.sandia.gov, Sandia National Laboratories
4
 
   Steve Plimpton, sjplimp@sandia.gov
5
 
 
6
 
   Copyright (2003) Sandia Corporation.  Under the terms of Contract
7
 
   DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
8
 
   certain rights in this software.  This software is distributed under 
9
 
   the GNU General Public License.
10
 
 
11
 
   See the README file in the top-level LAMMPS directory.
12
 
------------------------------------------------------------------------- */
13
 
 
14
 
#ifdef PAIR_CLASS
15
 
 
16
 
PairStyle(dipole/cut/gpu,PairDipoleCutGPU)
17
 
 
18
 
#else
19
 
 
20
 
#ifndef LMP_PAIR_DIPOLE_CUT_GPU_H
21
 
#define LMP_PAIR_DIPOLE_CUT_GPU_H
22
 
 
23
 
#include "pair_dipole_cut.h"
24
 
 
25
 
namespace LAMMPS_NS {
26
 
 
27
 
class PairDipoleCutGPU : public PairDipoleCut {
28
 
 public:
29
 
  PairDipoleCutGPU(LAMMPS *lmp);
30
 
  ~PairDipoleCutGPU();
31
 
  void cpu_compute(int, int, int, int, int *, int *, int **);
32
 
  void compute(int, int);
33
 
  void init_style();
34
 
  double memory_usage();
35
 
 
36
 
 enum { GPU_FORCE, GPU_NEIGH, GPU_HYB_NEIGH };
37
 
 
38
 
 private:
39
 
  int gpu_mode;
40
 
  double cpu_time;
41
 
  int *gpulist;
42
 
};
43
 
 
44
 
}
45
 
#endif
46
 
#endif
47
 
 
48
 
/* ERROR/WARNING messages:
49
 
 
50
 
E: Insufficient memory on accelerator
51
 
 
52
 
There is insufficient memory on one of the devices specified for the gpu
53
 
package
54
 
 
55
 
E: Pair dipole/cut/gpu requires atom attributes q, mu, torque
56
 
 
57
 
The atom style defined does not have this attribute.
58
 
 
59
 
E: Cannot use newton pair with dipole/cut/gpu pair style
60
 
 
61
 
Self-explanatory.
62
 
 
63
 
*/