     A negative return status means invalid <gpu_num>. **/
 {
  int i,b,f;
+ double total_flops,total_traffic_in,total_traffic_out;
  clock_t ctm;
 
  if(gpu_num >= 0 && gpu_num < MAX_GPUS_PER_NODE){

/** Tensor Algebra Library for NVidia GPU: NV-TAL (CUDA based).
AUTHOR: Dmitry I. Lyakh (Liakh): quant4me@gmail.com, liakhdi@ornl.gov
REVISION: 2019/06/12

Copyright (C) 2014-2019 Dmitry I. Lyakh (Liakh)
Copyright (C) 2014-2019 Oak Ridge National Laboratory (UT-Battelle)

//  }else{
//   printf("\n#MSG(TAL-SH::NV-TAL): Statistics on GPU #%d: GPU is OFF\n",i);
  }
 }
 if(gpu_num == -1){
  printf("\n#MSG(TAL-SH::NV-TAL): Statistics across all GPU devices:\n");
  printf(" Number of Flops processed   : %G\n",total_flops);
  printf(" Number of Bytes to GPUs     : %G\n",total_traffic_in);
  printf(" Number of Bytes from GPUs   : %G\n",total_traffic_out);
  printf(" Average arithmetic intensity: %G\n",total_flops/(total_traffic_in+total_traffic_out));
  printf("#END_MSG\n");
 }
 return 0;
}
