Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91397794
atom_vec_charge_cuda.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Nov 10, 17:34
Size
1 KB
Mime Type
text/x-c
Expires
Tue, Nov 12, 17:34 (2 d)
Engine
blob
Format
Raw Data
Handle
22237061
Attached To
rLAMMPS lammps
atom_vec_charge_cuda.h
View Options
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
Original Version:
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
See the README file in the top-level LAMMPS directory.
-----------------------------------------------------------------------
USER-CUDA Package and associated modifications:
https://sourceforge.net/projects/lammpscuda/
Christian Trott, christian.trott@tu-ilmenau.de
Lars Winterfeld, lars.winterfeld@tu-ilmenau.de
Theoretical Physics II, University of Technology Ilmenau, Germany
See the README file in the USER-CUDA directory.
This software is distributed under the GNU General Public License.
------------------------------------------------------------------------- */
#ifdef ATOM_CLASS
AtomStyle
(
charge
/
cuda
,
AtomVecChargeCuda
)
#else
#ifndef LMP_ATOM_VEC_CHARGE_CUDA_H
#define LMP_ATOM_VEC_CHARGE_CUDA_H
#include "atom_vec_charge.h"
#include "cuda_data.h"
namespace
LAMMPS_NS
{
class
AtomVecChargeCuda
:
public
AtomVecCharge
{
public:
AtomVecChargeCuda
(
class
LAMMPS
*
);
virtual
~
AtomVecChargeCuda
()
{}
void
grow_copylist
(
int
n
);
void
grow_send
(
int
n
,
double
**
buf_send
,
int
flag
);
void
grow_both
(
int
n
);
int
pack_comm
(
int
,
int
*
,
double
*
,
int
,
int
*
);
int
pack_comm_vel
(
int
,
int
*
,
double
*
,
int
,
int
*
);
void
unpack_comm
(
int
,
int
,
double
*
);
void
unpack_comm_vel
(
int
,
int
,
double
*
);
int
pack_reverse
(
int
,
int
,
double
*
);
void
unpack_reverse
(
int
,
int
*
,
double
*
);
int
pack_border
(
int
,
int
*
,
double
*
,
int
,
int
*
);
int
pack_border_vel
(
int
,
int
*
,
double
*
,
int
,
int
*
);
void
unpack_border
(
int
,
int
,
double
*
);
void
unpack_border_vel
(
int
,
int
,
double
*
);
int
pack_exchange
(
int
,
double
*
);
int
unpack_exchange
(
double
*
);
private:
class
Cuda
*
cuda
;
bool
cuda_init_done
;
int
*
copylist
;
int
*
copylist2
;
cCudaData
<
int
,
int
,
xx
>*
cu_copylist
;
int
max_nsend
;
};
}
#endif
#endif
Event Timeline
Log In to Comment