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

Support gcc12 [CUDA<12.0] & fix some bugs #54437

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

chalsliu
Copy link
Contributor

@chalsliu chalsliu commented Jun 7, 2023

PR types

Others

PR changes

Others

Description

Support gcc12 [CUDA<12.0] & fix some bugs
card-71866

@paddle-bot
Copy link

paddle-bot bot commented Jun 7, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added contributor External developers status: proposed labels Jun 7, 2023
@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Jun 8, 2023
@PaddlePaddle PaddlePaddle unlocked this conversation Jun 8, 2023
@chalsliu
Copy link
Contributor Author

chalsliu commented Jun 8, 2023

修复错误:

/home/opt/compiler/gcc-12/include/c++/12.1.0/type_traits(1431): error: type name is not allowed

/home/opt/compiler/gcc-12/include/c++/12.1.0/type_traits(1431): error: type name is not allowed

/home/opt/compiler/gcc-12/include/c++/12.1.0/type_traits(1431): error: identifier "__is_same" is undefined

/home/opt/compiler/gcc-12/lib/gcc/x86_64-pc-linux-gnu/12.1.0/include/omp.h(308): error: attribute "__malloc__" does not take arguments

/home/opt/compiler/gcc-12/lib/gcc/x86_64-pc-linux-gnu/12.1.0/include/omp.h(313): error: attribute "__malloc__" does not take arguments

/home/opt/compiler/gcc-12/lib/gcc/x86_64-pc-linux-gnu/12.1.0/include/omp.h(317): error: attribute "__malloc__" does not take arguments

/home/opt/compiler/gcc-12/lib/gcc/x86_64-pc-linux-gnu/12.1.0/include/omp.h(322): error: attribute "__malloc__" does not take arguments

/home/opt/compiler/gcc-12/lib/gcc/x86_64-pc-linux-gnu/12.1.0/include/omp.h(327): error: attribute "__malloc__" does not take arguments

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const long, std::is_same<int, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=long, _Ret=int, _CharT=char, _Base=<int>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(3972): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const long, std::is_same<long, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=long, _Ret=long, _CharT=char, _Base=<int>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(3977): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const unsigned long, std::is_same<unsigned long, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=unsigned long, _Ret=unsigned long, _CharT=char, _Base=<int>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(3982): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const long long, std::is_same<long long, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=long long, _Ret=long long, _CharT=char, _Base=<int>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(3987): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const unsigned long long, std::is_same<unsigned long long, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=unsigned long long, _Ret=unsigned long long, _CharT=char, _Base=<int>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(3992): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const float, std::is_same<float, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=float, _Ret=float, _CharT=char, _Base=<>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(3998): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const double, std::is_same<double, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=double, _Ret=double, _CharT=char, _Base=<>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(4002): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const long double, std::is_same<long double, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=long double, _Ret=long double, _CharT=char, _Base=<>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(4006): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const long, std::is_same<int, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=long, _Ret=int, _CharT=wchar_t, _Base=<int>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(4115): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const long, std::is_same<long, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=long, _Ret=long, _CharT=wchar_t, _Base=<int>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(4120): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const unsigned long, std::is_same<unsigned long, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=unsigned long, _Ret=unsigned long, _CharT=wchar_t, _Base=<int>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(4125): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const long long, std::is_same<long long, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=long long, _Ret=long long, _CharT=wchar_t, _Base=<int>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(4130): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const unsigned long long, std::is_same<unsigned long long, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=unsigned long long, _Ret=unsigned long long, _CharT=wchar_t, _Base=<int>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(4135): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const float, std::is_same<float, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=float, _Ret=float, _CharT=wchar_t, _Base=<>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(4141): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const double, std::is_same<double, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=double, _Ret=double, _CharT=wchar_t, _Base=<>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(4145): here

/home/opt/compiler/gcc-12/include/c++/12.1.0/ext/string_conversions.h(85): error: no instance of overloaded function "_Range_chk::_S_chk" matches the argument list
            argument types are: (const long double, std::is_same<long double, int>)
          detected during instantiation of "_Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT *, _CharT **, _Base...), const char *, const _CharT *, std::size_t *, _Base...) [with _TRet=long double, _Ret=long double, _CharT=wchar_t, _Base=<>]"
/home/opt/compiler/gcc-12/include/c++/12.1.0/bits/basic_string.h(4149): here

CMake Error at warprnnt_generated_rnnt_entrypoint.cu.o.Release.cmake:280 (message):
  Error generating file

Copy link
Contributor

@risemeup1 risemeup1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chalsliu chalsliu merged commit 06b8fbb into PaddlePaddle:develop Jun 9, 2023
@paddle-bot
Copy link

paddle-bot bot commented Jun 9, 2023

你的PR已合入Paddle库,请关注后续测试结果。
Your PR has been merged into the repository. An official integration test will be conducted later. Stay tuned.

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

Successfully merging this pull request may close these issues.

None yet

2 participants