Performance Pragma - 1 - 2022.2 English

Vitis HLS Messaging (UG1448)

Document ID
UG1448
Release Date
2022-12-16
Version
2022.2 English

Description

Warning: [HLS 214-344] Cannot apply performance pragma for loop 'VITIS_LOOP_8_1' in function 'top' because pipeline off pragma takes precedence (test.cpp:9:9).

Explanation

Optimization based on performance pragma uses pipeline architecture to meet target. Please remove pipeline off if you intend to let performance pragma take effect.

//////////// ORIGINAL ////////////
void top(int a[100][100],
  int b[10000][100], int n) {
  int k;
  int i;
  int j;
  for (i = 0; i < 100; i++) {
#pragma HLS performance target_ti=100
#pragma HLS pipeline off
    a[i][j] = b[i*k][j]+ b[i + k][j];
  }
}