Skip to content

Commit

Permalink
Remove explicit AIENGINE and AIEARCH defines from kernels (#1982)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgmelber authored Dec 17, 2024
1 parent aa6d84e commit 066e514
Show file tree
Hide file tree
Showing 18 changed files with 1 addition and 35 deletions.
2 changes: 0 additions & 2 deletions aie_kernels/aie2/add.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
//
//===----------------------------------------------------------------------===//

#define __AIENGINE__ 2
#define NOCPP
#define __AIEARCH__ 20

#include <stdint.h>
#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion aie_kernels/aie2/addWeighted.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
//
//===----------------------------------------------------------------------===//

// #define __AIENGINE__ 1
#define NOCPP

#include <stdint.h>
Expand Down
1 change: 0 additions & 1 deletion aie_kernels/aie2/bitwiseAND.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
//
//===----------------------------------------------------------------------===//

// #define __AIENGINE__ 1
#define NOCPP

#include <stdint.h>
Expand Down
1 change: 0 additions & 1 deletion aie_kernels/aie2/bitwiseOR.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
//
//===----------------------------------------------------------------------===//

// #define __AIENGINE__ 1
#define NOCPP

#include <stdint.h>
Expand Down
2 changes: 0 additions & 2 deletions aie_kernels/aie2/cascade_mm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
//
//===----------------------------------------------------------------------===//

#define __AIENGINE__ 2
#define NOCPP
#define __AIEARCH__ 20

#include <stdint.h>
#include <stdio.h>
Expand Down
3 changes: 0 additions & 3 deletions aie_kernels/aie2/conv2dk1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
//
//===----------------------------------------------------------------------===//

// #define __AIENGINE__ 1
#define __AIENGINE__ 2
#define NOCPP
#define __AIEARCH__ 20

#include <stdint.h>
#include <stdio.h>
Expand Down
3 changes: 0 additions & 3 deletions aie_kernels/aie2/conv2dk1_i8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
//
//===----------------------------------------------------------------------===//

// #define __AIENGINE__ 1
#define __AIENGINE__ 2
#define NOCPP
#define __AIEARCH__ 20

#include <stdint.h>
#include <stdio.h>
Expand Down
3 changes: 0 additions & 3 deletions aie_kernels/aie2/conv2dk1_skip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
//
//===----------------------------------------------------------------------===//

// #define __AIENGINE__ 1
#define __AIENGINE__ 2
#define NOCPP
#define __AIEARCH__ 20

#include <stdint.h>
#include <stdio.h>
Expand Down
3 changes: 0 additions & 3 deletions aie_kernels/aie2/conv2dk1_skip_init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
//
//===----------------------------------------------------------------------===//

// #define __AIENGINE__ 1
#define __AIENGINE__ 2
#define NOCPP
#define __AIEARCH__ 20

#include <stdint.h>
#include <stdio.h>
Expand Down
3 changes: 0 additions & 3 deletions aie_kernels/aie2/conv2dk3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
//
//===----------------------------------------------------------------------===//

// #define __AIENGINE__ 1
#define __AIENGINE__ 2
#define NOCPP
#define __AIEARCH__ 20

#include <stdint.h>
#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion aie_kernels/aie2/filter2d.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
//
//===----------------------------------------------------------------------===//

// #define __AIENGINE__ 1
#define NOCPP

#include <stdint.h>
Expand Down
2 changes: 0 additions & 2 deletions aie_kernels/aie2/mm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
//
//===----------------------------------------------------------------------===//

#define __AIENGINE__ 2
#define NOCPP
#define __AIEARCH__ 20

#include <stdint.h>
#include <stdio.h>
Expand Down
2 changes: 0 additions & 2 deletions aie_kernels/aie2/mm_b_col_maj.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
// transposed B matrix (or, equivalently, a B matrix that is stored in column-
// major format). A remains row-major.

#define __AIENGINE__ 2
#define NOCPP
#define __AIEARCH__ 20

#include <stdint.h>
#include <stdio.h>
Expand Down
2 changes: 0 additions & 2 deletions aie_kernels/aie2/mv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
//
//===----------------------------------------------------------------------===//

#define __AIENGINE__ 2
#define NOCPP
#define __AIEARCH__ 20

#include <stdint.h>
#include <stdio.h>
Expand Down
2 changes: 0 additions & 2 deletions aie_kernels/aie2/relu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
//
//===----------------------------------------------------------------------===//

#define __AIENGINE__ 2
#define NOCPP
#define __AIEARCH__ 20

#include <stdint.h>
#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion aie_kernels/aie2/threshold.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
//
//===----------------------------------------------------------------------===//

// #define __AIENGINE__ 1
#define NOCPP

#include <stdint.h>
Expand Down
2 changes: 1 addition & 1 deletion programming_examples/makefile-common
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AIEOPT_DIR ?= $(shell realpath $(dir $(shell which aie-opt))/..)
WARNING_FLAGS = -Wno-parentheses -Wno-attributes -Wno-macro-redefined

CHESSCC1_FLAGS = -f -p me -P ${AIE_INCLUDE_DIR} -I ${AIETOOLS_DIR}/include
CHESSCC2_FLAGS = -f -p me -P ${AIE2_INCLUDE_DIR} -I ${AIETOOLS_DIR}/include -D__AIENGINE__=2 -D__AIEARCH__=20
CHESSCC2_FLAGS = -f -p me -P ${AIE2_INCLUDE_DIR} -I ${AIETOOLS_DIR}/include
CHESS_FLAGS = -P ${AIE_INCLUDE_DIR}

CHESSCCWRAP1_FLAGS = aie -I ${AIETOOLS_DIR}/include
Expand Down
2 changes: 0 additions & 2 deletions programming_examples/ml/softmax/softmax.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
//
//===----------------------------------------------------------------------===//

#define __AIENGINE__ 2
#define NOCPP
#define __AIEARCH__ 20

#include <stdint.h>
#include <stdio.h>
Expand Down

0 comments on commit 066e514

Please sign in to comment.