Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 6/24/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

nofusion

Prevents a loop from fusing with adjacent loops.

Syntax

#pragma nofusion

Arguments

None

Description

The nofusion pragma lets you fine tune your program on a loop-by-loop basis. This pragma should be placed immediately before the loop that should not be fused.

The nofusion pragma is supported in host code only.

Examples

#define SIZE 1024

int sub () {
int B[SIZE], A[SIZE];        
  int i, j, k=0;
  for(j=0; j<SIZE; j++)
    A[j] = A[j] + B[j];

#pragma nofusion
  for (i=0; i<SIZE; i++)
    k += A[i] + 1;
  return k;
}