Merge branch 'amoeba' into amoeba-gpu
This commit is contained in:
@ -164,17 +164,15 @@ class Device {
|
||||
{ ans_queue.push(ans); }
|
||||
|
||||
/// Add "answers" (force,energies,etc.) into LAMMPS structures
|
||||
inline double fix_gpu(double **f, double **tor, double *eatom,
|
||||
double **vatom, double *virial, double &ecoul,
|
||||
int &error_flag) {
|
||||
inline double fix_gpu(double **f, double **tor, double *eatom, double **vatom,
|
||||
double *virial, double &ecoul, int &error_flag) {
|
||||
error_flag=0;
|
||||
atom.data_unavail();
|
||||
if (ans_queue.empty()==false) {
|
||||
stop_host_timer();
|
||||
double evdw=0.0;
|
||||
while (ans_queue.empty()==false) {
|
||||
evdw+=ans_queue.front()->get_answers(f,tor,eatom,vatom,virial,ecoul,
|
||||
error_flag);
|
||||
evdw += ans_queue.front()->get_answers(f,tor,eatom,vatom,virial,ecoul,error_flag);
|
||||
ans_queue.pop();
|
||||
}
|
||||
return evdw;
|
||||
@ -313,6 +311,7 @@ class Device {
|
||||
}
|
||||
|
||||
inline std::string compile_string() { return _ocl_compile_string; }
|
||||
std::string compile_string_nofast();
|
||||
inline std::string ocl_config_name() { return _ocl_config_name; }
|
||||
|
||||
template <class t>
|
||||
@ -350,7 +349,7 @@ class Device {
|
||||
int _data_in_estimate, _data_out_estimate;
|
||||
|
||||
std::string _ocl_config_name, _ocl_config_string, _ocl_compile_string;
|
||||
int set_ocl_params(std::string, std::string);
|
||||
int set_ocl_params(std::string, const std::string &);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user