algorithmperformanceparallel.foreachoperationflops

Running massive calculation


I have a c# code like this

 Parallel.For(0, 10000, i =>
 {
   function getThePassphase(int length){
   }
 });

Use parallel method, it's capable of running my function "getThePassphase()" 10000 times per second on my i7 processor. Assume i want to run the calculation 1 quintillion times (10^18). May i ask if is there any hpc service or computer labs capable of complete such a task in a day? If most of the service use Linux & can't run c# properly, i can manage to convert it into c++


Solution

  • Assuming world's fastest computer (143.5 petaflops) and a pretty fast i7 (1 teraflop)

     10^18 / 24 / 60 / 60 /143500 < 10000 ?
     80655568 < 10000 ?
     false
    

    So, no, there is no such [single] computer today, the fastest is still ~8,000 times too slow. And even if we assume your i7 is slower and you can make the algorithm faster you'd still be unlikely to gain an 8,000x improvement.

    Can you afford the electric bill for a day of compute on such a computer?!?