Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80128476
atom_vec_atomic_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
Fri, Aug 30, 01:15
Size
2 KB
Mime Type
text/x-c
Expires
Sun, Sep 1, 01:15 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20258199
Attached To
rLAMMPS lammps
atom_vec_atomic_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.
------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is distributed under
the GNU General Public License.
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
#ifdef ATOM_CLASS
AtomStyle(atomic/cuda,AtomVecAtomicCuda)
#else
#ifndef LMP_ATOM_VEC_ATOMIC_CUDA_H
#define LMP_ATOM_VEC_ATOMIC_CUDA_H
#include "atom_vec_atomic.h"
#include "cuda_data.h"
namespace LAMMPS_NS {
class AtomVecAtomicCuda : public AtomVecAtomic {
public:
AtomVecAtomicCuda(class LAMMPS *, int, char **);
virtual ~AtomVecAtomicCuda() {}
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