#pragma nosimd

Purpose

Disables automatic generation of vector instructions. This pragma needs to be specified on a per-loop basis.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-#--pragma----nosimd-----------------------------------------><

Example

The following example shows the usage of #pragma nosimd to disable -qsimd=auto for a specific for loop:
...
#pragma nosimd
for (i=1; i<1000; i++) 
{
    /* program code */
}


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us