Advanced Computing Platform for Theoretical Physics

commit大文件会使得服务器变得不稳定,请大家尽量只commit代码,不要commit大的文件。

Commit b3a642d7 authored by rbabich's avatar rbabich
Browse files

quda: spinorGiB is now set to correct value, rather than zero


git-svn-id: http://lattice.bu.edu/qcdalg/cuda/quda@614 be54200a-260c-0410-bdd7-ce6af2a381ab
parent 15bfc7cc
......@@ -322,11 +322,11 @@ void invertQuda(void *h_x, void *h_b, QudaInvertParam *param)
checkPrecision(param->cpu_prec);
int slenh = cudaGaugePrecise.volume*spinorSiteSize;
param->spinorGiB = (double)slenh*(param->cuda_prec == QUDA_DOUBLE_PRECISION) ? sizeof(double): sizeof(float);
param->spinorGiB = (double)slenh * (param->cuda_prec == QUDA_DOUBLE_PRECISION ? sizeof(double) : sizeof(float));
if (param->preserve_source == QUDA_PRESERVE_SOURCE_NO)
param->spinorGiB *= (param->inv_type == QUDA_CG_INVERTER ? 5 : 7)/(1<<30);
param->spinorGiB *= (param->inv_type == QUDA_CG_INVERTER ? 5 : 7)/(double)(1<<30);
else
param->spinorGiB *= (param->inv_type == QUDA_CG_INVERTER ? 8 : 9)/(1<<30);
param->spinorGiB *= (param->inv_type == QUDA_CG_INVERTER ? 8 : 9)/(double)(1<<30);
param->secs = 0;
param->gflops = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment