mboost-dp1

What's New in the .NET Framework 4.5 Developer Preview


Gå til bund
Gravatar #2 - Mamad (moveax1ret)
16. sep. 2011 14:44

Standard Template Library

As part of the added support in Visual Studio 11 Developer Preview for the C++11 specification, the Standard Template Library (STL) support in Visual Studio is extended to provide the additional programming constructs that specification requires. Highlights include the following:

Support for new headers <atomic>, <chrono>, <condition_variable>, <filesystem>, <future>, <mutex>, <ratio>, and <thread>.


<mutex> og <thread> er sweet.

Så slipper man for boost :)
Gravatar #3 - Mamad (moveax1ret)
16. sep. 2011 14:53
Auto-vectorizer. One of the biggest potential performance gains is doing things in parallel instead of sequentially. Visual Studio 11 Developer Preview provides not only parallelism on the task level, but also at the loop level, automatically. The C++ compiler will automatically vectorize loops if it is possible. Vectorization reorganizes a loop, for example, a summation loop, so that the CPU can execute multiple iterations at the same time. By using auto-vectorization, loops can be up to 8 times faster when executed on CPUs that support SIMD instructions. For example, most modern processors support SSE2 instructions, which allow the compiler to instruct the processor to do math operations on 4 numbers at a time.

Because the compiler recognizes loops that can be vectorized when you compile your code, this occurs automatically. Note that this differs from parallelization, which is described in the next list item.

Auto-parallelizer. Visual Studio 11 Developer Preview is improving the way you can take advantage of multiprocessor and multi-core hardware. With the the auto-parallelizer, a loop is reorganized so that it can be executed on multiple threads at the same time. This means that your application can take advantage of multi-core CPUs and multiprocessors to distribute chunks of the work to all available processors. The parallelizer automatically reorganizes loops and executes multiple tasks, all without the need for you to add any new code to your application. You can tell the compiler which loops to parallelize with the #pragma parallelize directive.

There are some key differences between auto-vectorization and auto-parallelization. First, auto-vectorization is always on and requires no user interaction, while auto-parallelization requires the programmer to decide which loops will be parallelized. Also, vectorization improves the performance of loops on single-core CPUs that support SIMD instructions, while parallelization improves the performance of the loop on multiple CPUs and multi-core CPUs. The two features can work together so that a vectorized loop is then parallelized across multiple processors.


Det lyder godt nok smart, det vil jeg gerne læse mere om
Gravatar #4 - Mamad (moveax1ret)
16. sep. 2011 14:58
Nu har jeg fået læst det hele, damn jeg glæder mig til visual studio 11- hvornår kan vi få fat i den?

evt. beta.


Fandt den, men den kræver login

http://msdn.microsoft.com/en-us/subscriptions/defa...
Gravatar #5 - Windcape
16. sep. 2011 17:28
Mamad (moveax1ret) (4) skrev:
Fandt den, men den kræver login
Indtil i morgen :)

(Du kan også downloade Windows 8 hvor den er pre-installeret)
Gravatar #6 - markjensen
17. sep. 2011 13:02
Det der "auto-parallellisering" er da set før. Eller kan dette her noget nyt?
Gravatar #7 - Windcape
18. sep. 2011 12:46
Windcape (5) skrev:
Indtil i morgen :)
http://www.microsoft.com/download/en/details.aspx?id=27543
Gravatar #8 - Ildhesten
18. sep. 2011 13:55
Mamad (moveax1ret) (3) skrev:
Auto-vectorizer. One of the biggest potential performance gains is doing things in parallel instead of sequentially. Visual Studio 11 Developer Preview provides not only parallelism on the task level, but also at the loop level, automatically. The C++ compiler will automatically vectorize loops if it is possible. Vectorization reorganizes a loop, for example, a summation loop, so that the CPU can execute multiple iterations at the same time. By using auto-vectorization, loops can be up to 8 times faster when executed on CPUs that support SIMD instructions. For example, most modern processors support SSE2 instructions, which allow the compiler to instruct the processor to do math operations on 4 numbers at a time.

Because the compiler recognizes loops that can be vectorized when you compile your code, this occurs automatically. Note that this differs from parallelization, which is described in the next list item.

Auto-parallelizer. Visual Studio 11 Developer Preview is improving the way you can take advantage of multiprocessor and multi-core hardware. With the the auto-parallelizer, a loop is reorganized so that it can be executed on multiple threads at the same time. This means that your application can take advantage of multi-core CPUs and multiprocessors to distribute chunks of the work to all available processors. The parallelizer automatically reorganizes loops and executes multiple tasks, all without the need for you to add any new code to your application. You can tell the compiler which loops to parallelize with the #pragma parallelize directive.

There are some key differences between auto-vectorization and auto-parallelization. First, auto-vectorization is always on and requires no user interaction, while auto-parallelization requires the programmer to decide which loops will be parallelized. Also, vectorization improves the performance of loops on single-core CPUs that support SIMD instructions, while parallelization improves the performance of the loop on multiple CPUs and multi-core CPUs. The two features can work together so that a vectorized loop is then parallelized across multiple processors.


Det lyder godt nok smart, det vil jeg gerne læse mere om


Hvis du gerne vil lege med teknikkerne bag skidtet, kan du hente en trial af Intel Parallel Studio XE. Mener C++ compileren deri har haft vectorization support i et stykke tid, og visse features til at autoparallelisere.
Gravatar #9 - lorenzen
18. sep. 2011 14:10
Mamad (moveax1ret) (2) skrev:

Standard Template Library

As part of the added support in Visual Studio 11 Developer Preview for the C++11 specification, the Standard Template Library (STL) support in Visual Studio is extended to provide the additional programming constructs that specification requires. Highlights include the following:

Support for new headers <atomic>, <chrono>, <condition_variable>, <filesystem>, <future>, <mutex>, <ratio>, and <thread>.


<mutex> og <thread> er sweet.

Så slipper man for boost :)


Hvorfor er det fedt at slippe for boost?
Gravatar #10 - Mamad (moveax1ret)
18. sep. 2011 14:36
lorenzen skrev:
Hvorfor er det fedt at slippe for boost?


Mindre konfiguration og linking........
Gravatar #11 - arne_v
18. sep. 2011 21:12
markjensen (6) skrev:
Det der "auto-parallellisering" er da set før. Eller kan dette her noget nyt?


Det er nyt i MS VC++.

Men ja, man har set det i Fortran compilere i 20+ år og i andre C compilere i 10+ år.
Gravatar #12 - arne_v
18. sep. 2011 21:21
Windcape (7) skrev:
http://www.microsoft.com/download/en/details.aspx?id=27543


$@%!$%@!$%!

Det er en opdatering til 4.0 - ikke en parallel med 4.0 installering.

Gå til top

Opret dig som bruger i dag

Det er gratis, og du binder dig ikke til noget.

Når du er oprettet som bruger, får du adgang til en lang række af sidens andre muligheder, såsom at udforme siden efter eget ønske og deltage i diskussionerne.

Opret Bruger Login