Multi-thread?

Multi-thread?

Return to topic list

Sun Apr 10 00:24:47 2016   by   Mark
Hi,

I have a 16 Core CPU and a Graphics card that has no problem rendering extremely large images damn quickly. However... while this might be the case, the map program seems to only use one core and that seems a shame and a bit of a bottle neck to speed.

Would there be a possibility to adjust the program to use multiple cores? (say 4 or 8) for 64bit machines?
 
Mon Apr 11 09:09:09 2016   by   Torben
The program is fairly old, so was not written with parallelism in mind.  I do not have any experience with coding multi-threading in C (which I imagine is a nightmare), and I fear that I would lose portability if I add multi-core support.

That said, I don't think it would be terribly difficult.  For the most part, pixels are generated independently, so the main loop could fairly easily be split over a number of cores.  The optimisation that stores part of the calculation from the previous pixel would need to be modified to be thread-safe, though.
 

Return to topic list



New message:
Topic:
Posted by:

Type the values of the dice shown below:

Return to topic list