0

I am running a C++ code which contains a Matrix multiplication of 2048 X 2048 matrices. Is there a library or a package or a software which can give me the Raw time and FLOPs for my program?

2
  • What is "raw time" for you? CPU time?
    – Robert
    Jan 14 at 14:43
  • Yes it is CPU time
    – user78439
    Jan 14 at 14:44
0

On Linux, you could use the time(1) and perf(1) command and use related functions documented in time(7), in particular clock_gettime(2).

The RefPerSys open source software uses these.

With a recent C++ compiler (e.g. GCC) use also <chrono> defined functions.

My opinion is that on most dekstop, server, or laptop computers in 2022, the FLOPS is not very significant or meaningful. What about OpenCL and GPGPUs?

Contact me by email at basile@starynkevitch.net (near Paris in France) for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.