Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80579798
compute_temp_partial_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, Sep 1, 12:08
Size
2 KB
Mime Type
text/x-c
Expires
Tue, Sep 3, 12:08 (2 d)
Engine
blob
Format
Raw Data
Handle
20101169
Attached To
rLAMMPS lammps
compute_temp_partial_cuda.h
View Options
/* -*- c++ -*- ----------------------------------------------------------
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 COMPUTE_CLASS
ComputeStyle(temp/partial/cuda,ComputeTempPartialCuda)
#else
#ifndef LMP_COMPUTE_TEMP_PARTIAL_CUDA_H
#define LMP_COMPUTE_TEMP_PARTIAL_CUDA_H
#include "compute.h"
#include "cuda_data.h"
namespace LAMMPS_NS {
class ComputeTempPartialCuda : public Compute {
public:
ComputeTempPartialCuda(class LAMMPS *, int, char **);
~ComputeTempPartialCuda();
void init() {}
void setup();
double compute_scalar();
void compute_vector();
int dof_remove(int);
void remove_bias(int, double *);
void remove_bias_all();
void restore_bias(int, double *);
void restore_bias_all();
double memory_usage();
private:
class Cuda *cuda;
int xflag,yflag,zflag;
int fix_dof;
double tfactor;
void dof_compute();
double t_vector[6];
double t_scalar;
cCudaData<double , ENERGY_CFLOAT , x>* cu_t_scalar;
cCudaData<double , ENERGY_CFLOAT , x>* cu_t_vector;
cCudaData<double, V_CFLOAT, yx>* cu_vbiasall;
};
}
#endif
#endif
Event Timeline
Log In to Comment