sophgo / tpu-mlir

Machine learning compiler based on MLIR for Sophgo TPU.
Other
609 stars 154 forks source link

ppl-compile: command not found #197

Open Shaquille-Wu opened 1 week ago

Shaquille-Wu commented 1 week ago

hello, sophgo experts I encounter build error when I compile tpu-mlir I found my terminal throw error during "installing", it throw error like this:

-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.doc
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.doc/utils
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.doc/include
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.doc/src
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.doc/src/common
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.doc/src/parser
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.doc/src/generator
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.doc/definition
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.web
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.web/utils
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.web/files
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.web/data
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.web/src
-- Up-to-date: /workspace/tpu-mlir/install/python/PerfAI/PerfAI.web/templates
-- Installing: /workspace/tpu-mlir/install/lib/libTPUMLIRBM1690Dialect.a
-- Installing: /workspace/tpu-mlir/install/lib/libTPUMLIRCodegenPass.a
-- Installing: /workspace/tpu-mlir/install/lib/libTPUMLIRTilingInterfaceTestPasses.a
-- Installing: /workspace/tpu-mlir/install/lib/libTPUDialect.a
+++ dirname lib/PplBackend/build.sh
++ cd lib/PplBackend
++ pwd
+ DIR=/workspace/tpu-mlir/lib/PplBackend
+ pushd /workspace/tpu-mlir/lib/PplBackend
/workspace/tpu-mlir/lib/PplBackend /workspace/tpu-mlir
+ CACHE_PATH=
+ '[' x = x ']'
+ CACHE_PATH=/root/.ppl/cache
+ rm -rf /root/.ppl/cache
+ mkdir -p build
+ cd build
++ ls ../src/fattention.pl
+ for file in `ls ../src/*.pl`
+ ppl-compile ../src/fattention.pl --I /inc --desc --O2 --o .
lib/PplBackend/build.sh: line 21: ppl-compile: command not found

it tell me "ppl-compile: command not found" at last

I've followed the compile step in README.md, and build it in docker(sophgo/tpuc_dev:v3.2) why it tell me error? is there anyone would like to tell me the reason?

HarmonyHu commented 1 day ago

ppl-compile is in the path third_party/ppl/ppl-compiler,please check whether it is executable after source ./envsetup.sh? @Shaquille-Wu