Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Deafult for chunk size

abhimodak
New Contributor I
1,425 Views
Hi

I am wondering what is the default value of chunk size? I ask this because I am wondering what would happen when schedule is runtime and through omp_set_schedule assigns a number less than unity for the chunksize (by mistake).

Abhi
0 Kudos
6 Replies
abhimodak
New Contributor I
1,425 Views
I reported this to premier support but did not get an answer to the question....

Abhi
0 Kudos
Steven_L_Intel1
Employee
1,425 Views
What is the Premier Support issue number?
0 Kudos
abhimodak
New Contributor I
1,425 Views
666229. You can see that the answer given is not what I have asked.

Abhi
0 Kudos
TimP
Honored Contributor III
1,425 Views
It may have been difficult for someone who may not be fluent in English to guess what you meant to ask. OpenMP standard dictates what default chunk sizes are; I don't think it says what happens or specifies any required diagnostic when you set a negative value at run time.
0 Kudos
abhimodak
New Contributor I
1,425 Views
Hi Tim

>>> I don't think it says what happens or specifies any required diagnostic when you set a negative value at run time.

That's why we want to know what Intel Fortran does. May be the behavior is of the type -- "at the mercy of compiler" i.e. unpredictable.

I understand the language barrier and definitely respect that. But a delay in getting answer can be difficult to explain to "management".

Abhi
0 Kudos
Steven_L_Intel1
Employee
1,425 Views
I asked the developers and received this response:

With static scheduling, chunk_size defaults to num_iters / num_threads (possibly +1).

With dynamic, chunk_size defaults to 1.

With guided, chunk_size defaults to 1, but that is just a lower bound on the actual assigned chunk size.

In our implementation, if the chunk size is < 1, we just set it to 1
0 Kudos
Reply