Latest from Embedded

Dreamstime_Josepalbert13_200048283
dreamstime_data__josepalbert13_200048283
ID 107786319 © Pakphipat Charoenrach - Dreamstime.com
id_107786319__pakphipat_charoenrach__dreamstime
ID 318454663 © BiancoBlue - Dreamstime.com
Fighter airplane
ID 86392130 © Belish - Dreamstime.com
promo__id_86392130__belish__dreamstime
ID 124110546 © Maciek905 | Dreamstime.com
code_dreamstime_l_124110546
ID 23655199 © Pere Sanz | Dreamstime.com
oscilloscope_dreamstime_l_23655199
Leandro DRS
image
Dreamstime_Prostockstudio_371930154
dreamstime_ai__prostockstudio_371930154
100269668 © Ronstik | Dreamstime.com
promo_100269668__ronstik__dreamstime

Choosing a Parallelization Technique: What’s the Best Path? (.PDF Download)

Nov. 20, 2018
Choosing a Parallelization Technique: What’s the Best Path? (.PDF Download)

Most of the legacy code that needs porting to newer systems is serial code, meaning that the code runs on a single processor with only one instruction executing at a time. Modern OpenVPX boards incorporate powerful, multicore processors such as the Intel Xeon-D. The inefficiency of running serial code on these high-performance processors increases the number of boards required in your system, negatively impacting your SWaP-C. General-purpose GPUs (GPGPUs) are also becoming more common in OpenVPX systems due to their massively parallel architecture that consists of thousands of cores designed to process multiple tasks simultaneously.

To modernize your serial code for parallel execution, you must first identify the individual sections that can be executed concurrently, and then optimize those sections for simultaneous execution on different cores and/or processors. Parallel programs must also employ some type of control mechanism for coordination, synchronization, and data realignment. To aid in parallelization, numerous open standard tools are available in the form of language extensions, compiler extensions, and libraries.

So, which method or path is right for you? Let’s explore a few options.

Most of the options have evolved from pthreads, a “C” library defined by the IEEE as POSIX 1003.1 standard, which started circa 1995. POSIX is short for Portable Operating System Interface for UniX. Being a mature technology, pthreads is available on most CPU-based platforms. Remember, a thread is a procedure that runs independently from its main program. Scheduling procedures to run simultaneously and/or independently is a “multi-threaded” program.