Fixed bugs with _tep and _fieldp to allow mixed-precision builds, being defensive with acctyp for these variables

This commit is contained in:
Trung Nguyen
2021-09-20 11:38:50 -05:00
parent 0228867d8e
commit 4e88cd158e
3 changed files with 72 additions and 72 deletions

View File

@ -52,7 +52,7 @@ int amoeba_gpu_init(const int ntypes, const int max_amtype, const int max_amclas
int gpu_rank=AMOEBAMF.device->gpu_rank();
int procs_per_gpu=AMOEBAMF.device->procs_per_gpu();
tep_size=sizeof(PRECISION);
tep_size=sizeof(ACC_PRECISION); // tep_size=sizeof(PRECISION);
AMOEBAMF.device->init_message(screen,"amoeba",first_gpu,last_gpu);