Supercomputer...

Status
Not open for further replies.

lobobo

Ars Scholae Palatinae
778
Hello all,

Suppose there is a program which utilizes an algorithm with an exponential time complexity and suppose that there is no known polynomial time algorithm to substitute for the exponential time algorithm. Suppose that this program takes days or maybe even years with large sets of data, almost entirely impractical.

But given that these times are based on running the program on something similar to your average desktop dual core processor such as a Core2Duo, how much of a difference would be expected when running this on a Unix-based supercomputer (I apologize for not having the exact model of the supercomputer)?

I'm also curious how much of an effort would need to be made to harness the full power of the supercomputer? Based on the information in the link https://computing.llnl.gov/tutorials/parallel_comp/ it appears serial code must be parallelized to gain advantages according to Amdahl's Law. Realistically, would a supercomputer speed up serial code such that what would usually take years can turn into days, hours or even minutes even without parallelizing a program?
 

topham

Ars Legatus Legionis
13,756
Subscriptor
lobobo":2p2i108j said:
Hello all,

Suppose there is a program which utilizes an algorithm with an exponential time complexity and suppose that there is no known polynomial time algorithm to substitute for the exponential time algorithm. Suppose that this program takes days or maybe even years with large sets of data, almost entirely impractical.

But given that these times are based on running the program on something similar to your average desktop dual core processor such as a Core2Duo, how much of a difference would be expected when running this on a Unix-based supercomputer (I apologize for not having the exact model of the supercomputer)?

I'm also curious how much of an effort would need to be made to harness the full power of the supercomputer? Based on the information in the link https://computing.llnl.gov/tutorials/parallel_comp/ it appears serial code must be parallelized to gain advantages according to Amdahl's Law. Realistically, would a supercomputer speed up serial code such that what would usually take years can turn into days, hours or even minutes even without parallelizing a program?

You won't find a significantly faster computer based on serial algorithms. Even double, or triple; heck, even tens times faster than the fastest desktop/server isn't much of a speed improvement for such an algorithm.

Look at it this way, if it takes 1,000 years on the fastest Intel server today, but your super computer is 10 times faster you're still looking at 100 years.
 

Jonathon

Ars Legatus Legionis
17,645
Subscriptor
Just to put current day supercomputing into perspective, the current fastest supercomputer in the world (in terms of operations per second) is the Tianhe-1A in China. It's composed of about 14,000 Intel Xeon processors and about 7,000 NVidia Tesla GPUs.

Those are all basically consumer-level parts: for a serial/single-threaded workload, you're not going to get any performance benefit from running your application on the supercomputer over your desktop with a similar processor (except that which you might get from the faster I/O system on the supercomputer). You don't see the benefits of the supercomputer (the massive number of processing units, between the 6-core Xeon processors and the many-core stream processing units of the GPUs) until you've got massively parallel code, either by using algorithms that can be parallelized, or by breaking up your workload into smaller pieces that can be run in parallel (or both).
 

swest

Seniorius Lurkius
10
As far as I know, automatic parallelization has not yet been very successful. There are a few small instances where it may work, but in general you have to do the hard-work of restructuring your algorithm to be parallel.

That being said, if you can do so, you can start chipping away at that constant factor of your exponential-time algorithm. This can often be a huge savings of time, if you have the hardware to run it on (and the parallel-part of your algorithm is significant).
 

MilleniX

Ars Tribunus Angusticlavius
8,138
Subscriptor++
I'm a Computer Science PhD student working with these supercomputers day in and day out, trying to find better ways to program them. There's no magic to be had here. The fastest supercomputer cores (IBM's POWER7, which incidentally will be running Linux in the premier Blue Waters system) are maybe 3 times faster (in instructions per second) than a high end desktop. The strength of a supercomputer comes in the tightly coupled agglomeration of many of those cores with a fast interconnection network and substantial IO resources. If your algorithm isn't parallelized, it's not going noticeably faster.

Note that if the exponential time algorithm can be executed with exponential parallelism (a rare occurrence, sadly), then it could be made to run many thousands of times faster than it would have on a desktop. If that brings your time to completion from years to days, then it's well within reach of the machines that people use today.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
also note that more supercomputer systems which are highly parallel focus considerable amounts of their effort on being fast at floating point. If your problem cannot be expressed in floating point terms then it is not likely to be especially fast even on one of the individual cores of the high end super computers, indeed it may be slower.

Exponential time algorithms often have 'nice' decompositions into a series of semi independant tests of potential solutions (the classic non deterministic polynomial turing machine). If the tests are too dependant then sometimes approaches like dynamic programming can mean that the actual complexity is not exponential. Assuming this doesn't apply it still might be the case that there is considerable benefit to sharing some of the intermediate results. As such a high end super computer with extremely fast interconnects and sizable shared memory may still significantly outperform the simplistic 'distribute a section of the solution space to loads of independent machines and wait for the results'. IT won't change the overall complexity class though. Nor give you much more than constant factors of improvement.

One key aspect to look at when solving a problem this way (throwing a *lot* of hardware and money at it) is: will someone just up the input complexity up in response to my doing this?
The whole point of some non polynomial polynomial (or indeed just very high order polynomial algorithms) is often to allow a relatively cheap cost to the user doing the initial operation (so from working with 256bit numbers to 512bit ones) verses the other people who are forced into doing the O(n^x) or O(x^n) who go to needing much more work. This is the classic crypto arms race, and why in theory a strong scheme can be tuned to have a solution space such that, under various assumptions, the number of solutions to test is more than the number of stoms in the visible universe whilst still being feasible to do the calculation when you know the actual solution.

Essentially the question you ask is actually very complex, nuanced, and depends heavily on both the problem domain and the evolution of the system within its environment.
Care to tell us more? It's often quite interesting...
 

BitPoet

Ars Legatus Legionis
21,805
Moderator
I work in the HPC industry as well, but on the storage/transport side of things.

As others have mentioned introducing parallelism into your code can give you some serious boosts in performance, especially as the problem set grows larger. Though even if you have an inherently sequential series of steps, you may be able to parallelize portions of it (like I/O) across multiple machines.

Imagine you've got 10 large (multi GB) chunks of data to process. You need to finish n before you move to n+1.

You can pre-stage all 10 chunks on different compute nodes, and pass off control of the process to each node as the previous one completes. Using a method like that, you reduce time spent doing I/O to a constant, and you're performing work on a node 100% of the time. And don't kid yourself, I/O time is significant.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
And don't kid yourself, I/O time is significant.

This is very true. We've regularly found hardware/OS level limits/bugs which kick in well below the theoretical threshold of your network transmission throughput/disk IO rates.

When you're compute cluster hits a certain size or more it's a nice big DDoS attack for your internal systems :/

Interestingly the databases are not normally the problem (though we replicate like crazy) when I thought it would be.
 

BitPoet

Ars Legatus Legionis
21,805
Moderator
actually, the larger your cluster becomes the more inherently random your I/O patterns become, so everything slows down. So if every client is behaving perfectly linearly, you're OK up to 16 or 32 threads, but you get up to 128, 256, etc. and all that linearity starts looking random on all your drives. At that point, you start having to do things like use SSDs or more spindles.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
Obviously as concurrent requests go up the probability of synchronicity of access goes down in a non linear fashion, we get that, an accept it (there are quite a lot of SAS disks in these) and for places where the access is known to be very random anyway it's on things like FusionIO cards.

I was referring to things like the disk controller stopping bothering to do reads when there are lots of concurrent reads but only a small number of writes.
This at least was traceable (and the provider in question got right on replicating it and then sorting it out)

The best one was a supplier of a distributed file system which would, instead of failing fast 'sorry I cannae take it any more captain' instead would randomly corrupt the streams as they were being read. Niiiice, we stopped using them.
 

BitPoet

Ars Legatus Legionis
21,805
Moderator
The best one was a supplier of a distributed file system which would, instead of failing fast 'sorry I cannae take it any more captain' instead would randomly corrupt the streams as they were being read. Niiiice, we stopped using them.

Haven't encountered one like that before (thank goodness!) Weirdest I've seen has been an issue that was traceable down to a tracing in a motherboard design. One of the lines going to a memory bank was just a bit different enough from the others that under severe load the whole machine fell over and died. HPC can be pretty rough on hardware.
 

dezzroy

Ars Scholae Palatinae
604
One of the lines going to a memory bank was just a bit different enough from the others that under severe load the whole machine fell over and died. HPC can be pretty rough on hardware.

That's outrageous! The manufacturer should stress test all hardware components!

Just the kind of thing that might have a programmer decide it was a software issue and waste days looking for a software solution.
 

kperrier

Ars Legatus Legionis
21,507
BitPoet":1rcj0yve said:
HPC can be pretty rough on hardware.
Back in the early 2000s I worked at geophysical data processing company, managing a 190 node Linux Networx cluster. It was pretty cool, since this was before blade servers, the nodes were vertical in the rack, fitting 7 nodes in 4U of rack space. The door was solid plexiglass, with their logo on it and around the edge was slots for air flow. We would constantly lose nodes because of memory errors. (The company finally just sent us 50 sticks of RAM and we only has to send the failed units back when we had swapped out all 50 sticks.) I was using the motherboard temperature sensors to trend temperatures and I decided to take the door off of one of the racks to see what happened. The temperatures dropped by 5 degrees (it's been a long time, I don't remember the exact amount) and we did not lose any nodes in that rack over the week of my experiment. We lost at least one node in all of the other racks during that time frame. So I took the doors off of all the racks, and cluster stability was much, much better.

Sorry, this has nothing to do with the OP, but I had to share.... ;)
 
Status
Not open for further replies.