Compiler Error C3024
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C3024.
schedule(runtime)' : chunk_size expression is not allowed
A value cannot be passed to the run-time parameter of the schedule clause.
The following sample generates C3024:
// C3024.cpp
// compile with: /openmp /link vcomps.lib
#include <stdio.h>
#include "omp.h"
int main() {
int i;
#pragma omp parallel for schedule(runtime, 10) // C3024
for (i = 0; i < 10; ++i) ;
#pragma omp parallel for schedule(runtime) // OK
for (i = 0; i < 10; ++i) ;
}
Show: