Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
inline assembly not allowed directly within a parallel region
Remarks
An omp parallel region cannot contain inline assembly instructions.
Example
The following example generates C3011:
// C3011.cpp
// compile with: /openmp
// processor: /x86
int main() {
int n = 0;
#pragma omp parallel
{
_asm mov eax, n // Delete this line to resolve this error.
} // C3011
}