Comments (5)
It seem that you forgot the ..
when you build PaddlePaddle under the build directory. Because CMakeLists.txt
is under the PaddlePaddle's root directory, which is just outside your current build directory:
cmake -DWITH_GPU=OFF -DWITH_DOC=OFF ..
from paddle.
Yes. Add .. cmake works fine.
Then, I copy "make -j nproc
&& make install" in the document.
make: *** No targets specified and no makefile found. Stop.
The document should add "cd .." before make? I can build successfully outside build folder.
Or I make another mistake?
from paddle.
http://www.paddlepaddle.org/doc/build/build_from_source.html
Do you follow the build from source page and set make install path?
git clone https://github.com/baidu/Paddle paddle
cd paddle
mkdir build
cd build
- you can add build option here, such as:
cmake -DWITH_GPU=ON -DWITH_DOC=OFF -DCMAKE_INSTALL_PREFIX=<path to install> ..
make -j 'nproc' && make install
- PaddlePaddle installation path
export PATH=<path to install>/bin:$PATH
from paddle.
@wangmiao1981 seems that no Makefile's generated by cmake under the build directory.
You should check against the steps provided by @gangliao with yours, clean the repo, take the building steps again, and mind whether the Makefile's generated after cmake -DWITH_GPU=OFF -DWITH_DOC=OFF ..
and under the very build directory, just proceed:
# if one would like to install PaddlePaddle into the system,
# sudo before make install should be added
make -j `nproc` && make install
from paddle.
Yes. I built successfully once and installed it. Then, I check out a branch and try to play with it.
For that branch, I did compile again without installation. Then, I made once mistake by missing ..
in the cmake. After fix that, I type make -j
nproc`` inside build fold and saw the error above.
For some reason, Makefile is not generated. I will try again. Thanks for all your reply.
from paddle.
Related Issues (20)
- cuda12.2 安装paddlepaddle==2.61后,训练报“ Cannot use GPU because there is no GPU detected on your machine” HOT 2
- nn.functional.group_norm 在float16格式下,数据排布为NHWC且输入矩阵rank=3时报错FatalError: `Erroneous arithmetic operation` HOT 9
- API scaled_dot_product_attention 运行时出错 HOT 2
- 代码运行过程中报paddle的错误,且无对应的代码行定位,目前不清楚是哪里的问题
- 为 Paddle 框架 API 添加类型提示(Type Hints)Tracking Issue HOT 1
- test的时候报框架错误 HOT 2
- paddle多卡训练,显卡之间通信时间过长,显卡使用率低 HOT 2
- 2.5.1 adamw 自定义param_group Beta无效
- [Paddle Inference] reuse cache不生效 HOT 1
- SigmoidCrossEntropyWithLogitsInferMeta 对dims的check疑似与注释不匹配
- paddle是否支持在customdevice(比如mlu、npu)使用flashattention HOT 3
- 缺少torch.nn.utils.rnn.pad_sequence的API或者实现 HOT 2
- 在瑞芯微3568上已经部署好Fastdeploy。请问example中Yolov5的自己的onnx模型怎么使用呢? HOT 1
- paddlepaddle==2.6.0和2.6.1适配国产化与非国产化代码返回不一致问题 HOT 1
- Torch MultiHeadAttention To Paddle MultiHeadAttention Issue HOT 2
- softmax_with_cross_entropy API在软标签下label是否需要归一化 HOT 3
- 单机多卡问题 HOT 4
- Reported errors after running paddle.utils.run_check() HOT 1
- paddle.sparse.matmul两个参数都是sparse_csr_tensor时报错RuntimeError: (NotFound) The kernel `matmul_csr_csr` is not registered. HOT 2
- 这个教程代码有问题,https://www.paddlepaddle.org.cn/documentation/docs/zh/practices/nlp/transformer_in_English-to-Spanish.html
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paddle.