Downsizing Multicore Programming Skills to Take Advantage of Intel Atom

There is no doubt that Intel Atom is an attractive microprocessor. Netbooks, embedded systems, consumer electronic devices, and MIDs (Mobile Internet Devices) are using its different flavors. But can multicore programming skills be useful with these single-core CPUs?

I spent last week attending Intel Developer Forum 2009 where the most popular words were "netbooks," "Atom," "multicore," and "parallelism." I had a great interest on the new Nehalem EX with its 8 physical cores and 16 hardware threads (16 logical cores when Hyper-Threading is enabled). Nonetheless, I was also involved in finishing an application to take advantage of the power offered by a tiny Intel Atom microprocessor running on netbooks and on MIDs (Mobile Internet Devices).

Intel Atom is a very powerful microprocessor. It is a single-core CPU. However, it offers Hyper-Threading, therefore you have ttwo hardware threads, with many shared resources. I wanted to show an application using nice visual effects, displaying images with animations and extra large icons. I had read Stephen Blair-chappell's article Parallel Execution Advantage on Single Core Intel Atom. His experience with an Intel Atom netbook motivated me to design an application with parallelism in mind, trying to take advantage of two hardware threads. It was a really difficult task because I had to target Windows XP, Windows Vista, Windows 7, Moblin 2.1 and Midinux 3.0.

When you target multiple platforms, you usually lose some performance, there is always a trade-off. However, if you design an application with parallelism in mind, you will gain performance in most modern microprocessors, even on Intel Atom. I could improve the overall performance by 35% taking advantage of Hyper-Threading. However, it was not enough to create real-time animations using multiple effects. As Intel Atom also offers MMX; SSE; SSE2; SSE3 and SSSE3, I had the possibility to take advantage of these powerful additional instructions. As I was working with visual effects, I could improve the overall performance by 80%.

CPU-Z displaying the features offered by Intel Atom N270 (MMX; SSE; SSE2; SSE3; SSSE3 and 2 hardware threads).

Finally, I had the possibility to run the application on stage as part of the keynote launching the Intel Atom Developer Program.

The good news is that you can downsize your multicore and parallel programming experience to target new mobile microprocessors and you'll be able to achieve very interesting performance improvements. Besides, I believe we will see multicore Atom CPUs in the future.

No matter whether you're targeting an eight-core CPU or a tiny single-core CPU with Hyper-Threading, you can go parallel in order to take advantage of the newest micro-architectures.

Real World Parallelism Webinar Series
  • February 18, 2010
    Lock Contention, Using Intel Parallel Studio to Improve Performance
    Speaker: Vasanth Tovinkere, Software Engineer, Intel Corporation (Bio)

    Vasanth Tovinkere is a software engineer in the Developer Products Division (DPD) at Intel. His current role involves defining novel approaches to understanding and visualizing parallel performance and consulting with strategic customers to help them prepare and deliver code for the multicore world. Vasanth has been involved in the development of automatic semantic event detectors for digital sports technologies in Intel Labs. He also has been awarded three patents and has two patents pending.

    Abstract:
    Discover how easy it is to use the power of Microsoft Visual Studio and Intel Parallel Studio to find performance issues due to lock contention in threaded applications. This ensures that shipped applications can take better advantage of multicore processors. In this webcast, we provide live demonstrations that show how to identify lock contentions issues with Visual Studio and Intel Parallel Studio, an add-in to Visual Studio that helps developers create fast, reliable code on multicore processors.t.