Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ppl-compile: command not found #197

Open
Shaquille-Wu opened this issue Nov 7, 2024 · 1 comment
Open

ppl-compile: command not found #197

Shaquille-Wu opened this issue Nov 7, 2024 · 1 comment

Comments

@Shaquille-Wu
Copy link

Shaquille-Wu commented Nov 7, 2024

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
Copy link
Collaborator

HarmonyHu commented Nov 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants