Intel® Advisor XE

Multiple Parallel Sites

You may be able to introduce parallelism independently in more than one place in a program.

For example, consider a C/C++ program with the general structure:

initialize(data);
while (!done) {
    display_on_screen(data);
    update(data);
}

You might be able to parallelize the display and update operations independently:

Basic OpenMP Atomic Operations

Use OpenMP atomic operations to allow multiple threads to safely update a shared numeric variable, such as on hardware platforms that support atomic operation use. An atomic operation applies only to the single assignment statement that immediately follows it, so atomic operations are useful for code that requires fine-grain synchronization.

Before the statement to be protected, use:

Iscriversi a Intel® Advisor XE