D
D
deus_vin2017-07-24 14:41:58
C++ / C#
deus_vin, 2017-07-24 14:41:58

OpenMP + Visual C++ is it really that simple?

Is it really enough to simply add in the code before the for loop: And it will automatically calculate it by cores. How can I check if this works in visual studio 2015. Where can I see how many threads?
#pragma omp parallel for

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2017-07-24
@gbg

Open the task manager while computing and see.
In addition to this directive, some adaptation of the algorithm may be required - it depends on the task.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question