diff --git a/programming_examples/basic/eltwise_exp/Makefile b/programming_examples/basic/eltwise_exp/Makefile index ae116330b1..ed0779e23c 100644 --- a/programming_examples/basic/eltwise_exp/Makefile +++ b/programming_examples/basic/eltwise_exp/Makefile @@ -16,10 +16,10 @@ all: build/final.xclbin build/insts.txt build/exp.o: ${KERNELLIB}/bf16_exp.cc mkdir -p ${@D} - cd ${@D} && xchesscc_wrapper ${CHESSCCWRAP2_FLAGS} -I${INSTALL_ROOT}/mlir_aie/aie_runtime_lib/AIE2 -c $< -o ${@F} + cd ${@D} && xchesscc_wrapper ${CHESSCCWRAP2_FLAGS} -I${INSTALL_ROOT}/aie_runtime_lib/AIE2 -c $< -o ${@F} -build/lut_based_ops.o: ${INSTALL_ROOT}/mlir_aie/aie_runtime_lib/AIE2/lut_based_ops.cpp - cd ${@D} && xchesscc_wrapper ${CHESSCCWRAP2_FLAGS} -I${INSTALL_ROOT}/mlir_aie/aie_runtime_lib/AIE2 -c $< -o ${@F} +build/lut_based_ops.o: ${INSTALL_ROOT}/aie_runtime_lib/AIE2/lut_based_ops.cpp + cd ${@D} && xchesscc_wrapper ${CHESSCCWRAP2_FLAGS} -I${INSTALL_ROOT}/aie_runtime_lib/AIE2 -c $< -o ${@F} build/kernels.a: build/exp.o build/lut_based_ops.o ar rvs $@ $+ diff --git a/programming_examples/basic/eltwise_exp/run.lit b/programming_examples/basic/eltwise_exp/run.lit index bd3098543c..f2db79ab6a 100644 --- a/programming_examples/basic/eltwise_exp/run.lit +++ b/programming_examples/basic/eltwise_exp/run.lit @@ -10,4 +10,4 @@ // RUN: %python aiecc.py --xbridge --aie-generate-cdo --aie-generate-ipu --no-compile-host --xclbin-name=aie.xclbin --ipu-insts-name=insts.txt ./aie.mlir // RUN: g++-13 %S/test.cpp -o test.exe -std=c++23 -Wall -I%S/../../../runtime_lib/test_lib %S/../../../runtime_lib/test_lib/test_utils.cpp %xrt_flags -lrt -lstdc++ -lboost_program_options -lboost_filesystem // RUN: %run_on_ipu ./test.exe -x aie.xclbin -k MLIR_AIE -i insts.txt | FileCheck %s -// CHECK: PASS! \ No newline at end of file +// CHECK: PASS! diff --git a/programming_examples/makefile-common b/programming_examples/makefile-common index bca449a071..5ab55c2e08 100644 --- a/programming_examples/makefile-common +++ b/programming_examples/makefile-common @@ -1,5 +1,7 @@ # Contains common definitions used across the Makefiles of ipu-xrt tests. REPO_ROOT ?= $(shell realpath $(dir $(shell which aie-opt))/../../..) +INSTALL_ROOT ?= $(shell realpath $(dir $(shell which aie-opt))/..) + # VITIS related variables VITIS_ROOT ?= $(shell realpath $(dir $(shell which vitis))/../)