Comments (3)
这个是C++17标准的用法,std::clamp,检查下你编译的时候是不是用的C++14?
from paddle.
@risemeup1 确实是因为c++版本,不过改成c++17还是出错。
原因在cmake/hip.cmake
if(WITH_CINN)
list(APPEND HIP_CXX_FLAGS -std=c++14)
else()
list(APPEND HIP_CXX_FLAGS -std=c++17)
endif()
改成-std=c++17,出现了另一个错误:
[ 97%] Building CXX object paddle/fluid/inference/analysis/passes/CMakeFiles/convert_to_mixed_precision.dir/convert_to_mixed_precision.cc.o
/usr/bin/ld: ../../../../libcinnapi.so: undefined reference to `absl::lts_20210324::strings_internal::CalculateBase64EscapedLenInternal(unsigned long, bool)'
/usr/bin/ld: ../../../../libcinnapi.so: undefined reference to `absl::lts_20210324::raw_logging_internal::RawLog(absl::lts_20210324::LogSeverity, char const*, int, char const*, ...)'
/usr/bin/ld: ../../../../libcinnapi.so: undefined reference to `absl::lts_20210324::strings_internal::kBase64Chars'
/usr/bin/ld: ../../../../libcinnapi.so: undefined reference to `absl::lts_20210324::strings_internal::Base64EscapeInternal(unsigned char const*, unsigned long, char*, unsigned long, char const*, bool)'
/usr/bin/ld: ../../../../libcinnapi.so: undefined reference to `absl::lts_20210324::strings_internal::EncodeUTF8Char(char*, char32_t)
from paddle.
CINN目前开源的代码还未支持DCU编译,后续功能会开源,请关注,谢谢
from paddle.
Related Issues (20)
- 请教:paddlepaddle的源码能编译支持国产银河麒麟ARM架构+英伟达显卡的硬件环境吗?哪一个版本的代码开始支持? HOT 16
- 寒武纪飞桨基础健康检查报错libmluops.so.1: cannot open shared object file: No such file or directory HOT 4
- x2paddle.convert.onnx2paddle没有生成任何东西 HOT 6
- [CodeStyle][Ruff] Ruff 新 rule 引入计划(第二期) HOT 13
- 昇腾910上taskflow调用UTC推理速度特别慢 HOT 8
- Multiple discrepancies in paddle==2.6.1 vs numpy in python 3.10 HOT 3
- 单机多卡模型在训练过程中使用SyncBatchNorm报错 HOT 17
- test_jit_save_load failure on Paddle v2.6.1 HOT 1
- float 减tensor 计算结果不对 HOT 1
- 【GPU矩阵乘法精度损失】与PyTorch和Numpy对比测试 HOT 4
- 【PyTorch模型迁移】Conv2D前向精度损失
- paddle inference library for CUDA11.8 link not working HOT 2
- 屏幕截图出来的字,黑字白底,60像素高,非常清晰,但paddle除识别出本字以外,还会有各种多余的字 HOT 1
- PaddlePaddle安装PaddlePaddle,使用import paddle导入出现Illegal instruction HOT 8
- 【Conv2D的前向结果在CPU和GPU上存在差异】 HOT 5
- Paddle Build error
- 树莓派5编译失败
- collate_fn函数什么时候支持GPU操作
- FatalError: `Process abort signal` is detected by the operating system. HOT 3
- DataLoader加载MNIST数据集后,label值出现错误,什么原因? HOT 4
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.