MulticoreInfo.com header image 2

Parallel Programming in Visual C++ 2010 CTP

November 7th, 2008 · No Comments




There has been a great interest in a blog post about Visual Studio 2010 CTP adding parallel computing tools. CodeGuru has an article with an actual example of using parallel_for construct that is part of the native concurrency library. Here’s an excerpt.

“The CTP build of Visual C++ 2010 includes a new library to help you write native parallel code. Writing parallel code is getting more and more important with the broad availability of quad-core CPUs at this time and the many-core CPUs that will appear in the coming years. I will only be talking about the new concurrency library for native code. Of course, writing parallel code has already been possible for a long time. However, you had to create and manage all threads by yourself and this could often be a complex task. Because of this, it requires quite a bit of time to parallelize a simple loop over multiple threads. The new native concurrency library makes this much easier.

This article will explain the parallel_for construct that is part of the native concurrency library in more detail and will briefly touch on a few other constructs.”

For the example, this article parallelizes a trivial implementation of a Mandelbrot fractal renderer. Credit to insideHPC for the link.

Full Story

  • Share/Save/Bookmark

Tags: Applications · MulticoreInfo · Programming

Like what you're reading? Come back every day for multicore news, or subscribe to RSS updates.



Stumble It!