git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6997 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -28,17 +28,17 @@ namespace GPU_EXTRA {
|
|||||||
MPI_Allreduce(&error_flag, &all_success, 1, MPI_INT, MPI_MIN, world);
|
MPI_Allreduce(&error_flag, &all_success, 1, MPI_INT, MPI_MIN, world);
|
||||||
if (all_success != 0) {
|
if (all_success != 0) {
|
||||||
if (all_success == -1)
|
if (all_success == -1)
|
||||||
error->all("Accelerated style in input script but no fix gpu.");
|
error->all("Accelerated style in input script but no fix gpu");
|
||||||
else if (all_success == -2)
|
else if (all_success == -2)
|
||||||
error->all("Could not find/initialize a specified accelerator device.");
|
error->all("Could not find/initialize a specified accelerator device");
|
||||||
else if (all_success == -3)
|
else if (all_success == -3)
|
||||||
error->all("Insufficient memory on accelerator.");
|
error->all("Insufficient memory on accelerator");
|
||||||
else if (all_success == -4)
|
else if (all_success == -4)
|
||||||
error->all("GPU library not compiled for this accelerator.");
|
error->all("GPU library not compiled for this accelerator");
|
||||||
else if (all_success == -5)
|
else if (all_success == -5)
|
||||||
error->all("Double precision is not supported on this accelerator.");
|
error->all("Double precision is not supported on this accelerator");
|
||||||
else
|
else
|
||||||
error->all("Unknown error in GPU library.");
|
error->all("Unknown error in GPU library");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
// every LAMMPS class inherits from Pointers to access lammps.h ptrs
|
// every LAMMPS class inherits from Pointers to access lammps.h ptrs
|
||||||
// these variables are auto-initialized by Pointer class constructor
|
// these variables are auto-initialized by Pointer class constructor
|
||||||
// *& variables are really pointers to the pointers in lammps.h
|
// *& variables are really pointers to the pointers in lammps.h
|
||||||
// & enables them to be accessed directly in any class, e.g. error->all()
|
// & enables them to be accessed directly in any class, e.g. atom->x
|
||||||
|
|
||||||
#ifndef LMP_POINTERS_H
|
#ifndef LMP_POINTERS_H
|
||||||
#define LMP_POINTERS_H
|
#define LMP_POINTERS_H
|
||||||
|
|||||||
Reference in New Issue
Block a user