25#ifndef _chemistry_qc_lmp2_dgemminfo_h
26#define _chemistry_qc_lmp2_dgemminfo_h
37 static inline void microtime(
unsigned *lo,
unsigned *hi) {
39 ".byte 0x0f; .byte 0x31; movl %%edx,%0; movl %%eax,%1"
40 :
"=g" (*hi),
"=g" (*lo) ::
"eax",
"edx");
43 static inline double cpu_walltime(
void) {
46 unsigned long long ticks = lo + (((
unsigned long long)hi)<<32);
47 double secs = ticks*(1.0/(1496.612*1.0e6));
54 static inline double cpu_walltime(
void) {
57 return tod.tv_sec + 0.000001 * tod.tv_usec;
Contains all MPQC code up to version 3.
Definition mpqcin.h:14
void count_dgemm(int n, int l, int m, double t)
Records information about the time take to perform a DGEMM operation.