Coder Social home page Coder Social logo

Comments (3)

risemeup1 avatar risemeup1 commented on September 27, 2024

这个是C++17标准的用法,std::clamp,检查下你编译的时候是不是用的C++14?

from paddle.

DongBaiYue avatar DongBaiYue commented on September 27, 2024

@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.

danleifeng avatar danleifeng commented on September 27, 2024

CINN目前开源的代码还未支持DCU编译,后续功能会开源,请关注,谢谢

from paddle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.