Bernard Gingold
Bernard Gingold
Why you designed your solution as a C code? I wonder if you are making transition from FORTRAN 77 or from C to C++. You should at least try to...
@wuwentao , @zhangxiaojingCAN , @sunnycase Can anyone answer my question!!
> ```c > uint64_t get_cpu_times(void) > { > uint64_t value; > __asm__ __volatile__("rdtime %0" : "=r"(value)); > return value; > } > > uint64_t get_cpu_cycles(void) > { > uint64_t value;...
@wuwentao @wycwyhwyq @zhangxiaojingCAN @sunnycase Dear all, Can [finally] anyone (of above-mentioned) answer my question? Please offer a helping hand!! Best regards Bernard
Hi @ivan-pi You should use a timing method of the highest achievable precision and that means either the RDTSCP instruction or the fixed performance event: CPU_CLK_UNHALTED.THREAD. You may try to...