Why aren't unsigned OpenMP index variables allowed?

后端 未结 2 627
再見小時候
再見小時候 2021-01-03 22:30

I have a loop in my C++/OpenMP code that looks like this:

#pragma omp parallel for
for(unsigned int i=0; i
2条回答
  •  时光取名叫无心
    2021-01-03 23:01

    The Microsoft C/C++ Compiler 12.0 integrated with Visual Studio 2013 still only support OpenMP 2.5 and doesn't allow unsigned int for the loop counter.

    GCC support OpenMP 3.0 since its version 4.4 and allows unsigned int for the loop counter.

提交回复
热议问题