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

[Feature Request] support -std=c++17 #755

Closed
njzjz opened this issue Jun 16, 2021 · 4 comments · Fixed by #805
Closed

[Feature Request] support -std=c++17 #755

njzjz opened this issue Jun 16, 2021 · 4 comments · Fixed by #805

Comments

@njzjz
Copy link
Member

njzjz commented Jun 16, 2021

Summary

When add -std=c++17 to CXXFLAGS (this is the default environment variables of conda compilers), CUDA files will throw the following errors (CPU version works well). It works after changing -std=c++17 to -std=c++11.

It's not a bug, but I hope -std=c++17 can be supported on some day.

UPDATE: I am not sure whether it's a bug. Maybe CMake should set the proper C++ standard option?

Detailed Description

2021-06-15T23:36:35.3222435Z   [  1%] Building NVCC (Device) object lib/src/cuda/CMakeFiles/deepmd_op_cuda.dir/deepmd_op_cuda_generated_tabulate.cu.o
2021-06-15T23:36:35.3438702Z   nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
2021-06-15T23:36:36.4755310Z   nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
2021-06-15T23:36:37.9274712Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(165): error: "conjunction_v" is not a function or static data member
2021-06-15T23:36:37.9275291Z 
2021-06-15T23:36:37.9276049Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(165): error: "constexpr" is not valid here
2021-06-15T23:36:37.9276621Z 
2021-06-15T23:36:37.9277433Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(168): error: "disjunction_v" is not a function or static data member
2021-06-15T23:36:37.9277978Z 
2021-06-15T23:36:37.9278833Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(168): error: "constexpr" is not valid here
2021-06-15T23:36:37.9279223Z 
2021-06-15T23:36:37.9279996Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(171): error: "negation_v" is not a function or static data member
2021-06-15T23:36:37.9280384Z 
2021-06-15T23:36:37.9281115Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(171): error: "constexpr" is not valid here
2021-06-15T23:36:37.9281477Z 
2021-06-15T23:36:37.9400520Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2479): error: "is_swappable_v" is not a function or static data member
2021-06-15T23:36:37.9404438Z 
2021-06-15T23:36:37.9410572Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2479): error: "constexpr" is not valid here
2021-06-15T23:36:37.9415418Z 
2021-06-15T23:36:37.9421086Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2484): error: "is_nothrow_swappable_v" is not a function or static data member
2021-06-15T23:36:37.9426981Z 
2021-06-15T23:36:37.9434292Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2484): error: "constexpr" is not valid here
2021-06-15T23:36:37.9440036Z 
2021-06-15T23:36:37.9445911Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2563): error: "is_swappable_with_v" is not a function or static data member
2021-06-15T23:36:37.9454393Z 
2021-06-15T23:36:37.9455739Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2563): error: "constexpr" is not valid here
2021-06-15T23:36:37.9456288Z 
2021-06-15T23:36:37.9521076Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2568): error: "is_nothrow_swappable_with_v" is not a function or static data member
2021-06-15T23:36:37.9521592Z 
2021-06-15T23:36:37.9522354Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2568): error: "constexpr" is not valid here
2021-06-15T23:36:37.9522747Z 
2021-06-15T23:36:37.9523529Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2700): error: "is_invocable_v" is not a function or static data member
2021-06-15T23:36:37.9523935Z 
2021-06-15T23:36:37.9524634Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2700): error: "constexpr" is not valid here
2021-06-15T23:36:37.9524981Z 
2021-06-15T23:36:37.9525995Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2704): error: "is_nothrow_invocable_v" is not a function or static data member
2021-06-15T23:36:37.9526393Z 
2021-06-15T23:36:37.9527108Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2704): error: "constexpr" is not valid here
2021-06-15T23:36:37.9527462Z 
2021-06-15T23:36:37.9528244Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2709): error: "is_invocable_r_v" is not a function or static data member
2021-06-15T23:36:37.9528633Z 
2021-06-15T23:36:37.9529326Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2709): error: "constexpr" is not valid here
2021-06-15T23:36:37.9529692Z 
2021-06-15T23:36:37.9530467Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2714): error: "is_nothrow_invocable_r_v" is not a function or static data member
2021-06-15T23:36:37.9530888Z 
2021-06-15T23:36:37.9531585Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2714): error: "constexpr" is not valid here
2021-06-15T23:36:37.9532007Z 
2021-06-15T23:36:37.9532766Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2721): error: "is_void_v" is not a function or static data member
2021-06-15T23:36:37.9533162Z 
2021-06-15T23:36:37.9533857Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2721): error: "constexpr" is not valid here
2021-06-15T23:36:37.9534360Z 
2021-06-15T23:36:37.9535115Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2723): error: "is_null_pointer_v" is not a function or static data member
2021-06-15T23:36:37.9535495Z 
2021-06-15T23:36:37.9536187Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2723): error: "constexpr" is not valid here
2021-06-15T23:36:37.9536647Z 
2021-06-15T23:36:37.9537403Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2725): error: "is_integral_v" is not a function or static data member
2021-06-15T23:36:37.9537795Z 
2021-06-15T23:36:37.9538465Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2725): error: "constexpr" is not valid here
2021-06-15T23:36:37.9538819Z 
2021-06-15T23:36:37.9539559Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2727): error: "is_floating_point_v" is not a function or static data member
2021-06-15T23:36:37.9540195Z 
2021-06-15T23:36:37.9541499Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2727): error: "constexpr" is not valid here
2021-06-15T23:36:37.9541868Z 
2021-06-15T23:36:37.9542713Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2729): error: "is_array_v" is not a function or static data member
2021-06-15T23:36:37.9543085Z 
2021-06-15T23:36:37.9543781Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2729): error: "constexpr" is not valid here
2021-06-15T23:36:37.9544119Z 
2021-06-15T23:36:37.9545688Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2731): error: "is_pointer_v" is not a function or static data member
2021-06-15T23:36:37.9546336Z 
2021-06-15T23:36:37.9547923Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2731): error: "constexpr" is not valid here
2021-06-15T23:36:37.9548348Z 
2021-06-15T23:36:37.9549299Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2733): error: "is_lvalue_reference_v" is not a function or static data member
2021-06-15T23:36:37.9549703Z 
2021-06-15T23:36:37.9550374Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2733): error: "constexpr" is not valid here
2021-06-15T23:36:37.9550711Z 
2021-06-15T23:36:37.9552042Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2736): error: "is_rvalue_reference_v" is not a function or static data member
2021-06-15T23:36:37.9552454Z 
2021-06-15T23:36:37.9553242Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2736): error: "constexpr" is not valid here
2021-06-15T23:36:37.9553579Z 
2021-06-15T23:36:37.9554337Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2739): error: "is_member_object_pointer_v" is not a function or static data member
2021-06-15T23:36:37.9554753Z 
2021-06-15T23:36:37.9555427Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2739): error: "constexpr" is not valid here
2021-06-15T23:36:37.9556600Z 
2021-06-15T23:36:37.9557483Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2742): error: "is_member_function_pointer_v" is not a function or static data member
2021-06-15T23:36:37.9557908Z 
2021-06-15T23:36:37.9558592Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2742): error: "constexpr" is not valid here
2021-06-15T23:36:37.9558928Z 
2021-06-15T23:36:37.9560648Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2745): error: "is_enum_v" is not a function or static data member
2021-06-15T23:36:37.9561714Z 
2021-06-15T23:36:37.9563248Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2745): error: "constexpr" is not valid here
2021-06-15T23:36:37.9563608Z 
2021-06-15T23:36:37.9564894Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2747): error: "is_union_v" is not a function or static data member
2021-06-15T23:36:37.9565309Z 
2021-06-15T23:36:37.9566541Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2747): error: "constexpr" is not valid here
2021-06-15T23:36:37.9566919Z 
2021-06-15T23:36:37.9567729Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2749): error: "is_class_v" is not a function or static data member
2021-06-15T23:36:37.9568585Z 
2021-06-15T23:36:37.9569349Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2749): error: "constexpr" is not valid here
2021-06-15T23:36:37.9569687Z 
2021-06-15T23:36:37.9570440Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2751): error: "is_function_v" is not a function or static data member
2021-06-15T23:36:37.9570930Z 
2021-06-15T23:36:37.9571654Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2751): error: "constexpr" is not valid here
2021-06-15T23:36:37.9571988Z 
2021-06-15T23:36:37.9572715Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2753): error: "is_reference_v" is not a function or static data member
2021-06-15T23:36:37.9573113Z 
2021-06-15T23:36:37.9573783Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2753): error: "constexpr" is not valid here
2021-06-15T23:36:37.9574136Z 
2021-06-15T23:36:37.9574865Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2755): error: "is_arithmetic_v" is not a function or static data member
2021-06-15T23:36:37.9575241Z 
2021-06-15T23:36:37.9575936Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2755): error: "constexpr" is not valid here
2021-06-15T23:36:37.9576269Z 
2021-06-15T23:36:37.9577021Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2757): error: "is_fundamental_v" is not a function or static data member
2021-06-15T23:36:37.9577514Z 
2021-06-15T23:36:37.9578181Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2757): error: "constexpr" is not valid here
2021-06-15T23:36:37.9578505Z 
2021-06-15T23:36:37.9579201Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2759): error: "is_object_v" is not a function or static data member
2021-06-15T23:36:37.9580098Z 
2021-06-15T23:36:37.9581230Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2759): error: "constexpr" is not valid here
2021-06-15T23:36:37.9581638Z 
2021-06-15T23:36:37.9582475Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2761): error: "is_scalar_v" is not a function or static data member
2021-06-15T23:36:37.9583017Z 
2021-06-15T23:36:37.9584652Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2761): error: "constexpr" is not valid here
2021-06-15T23:36:37.9585201Z 
2021-06-15T23:36:37.9586262Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2763): error: "is_compound_v" is not a function or static data member
2021-06-15T23:36:37.9586814Z 
2021-06-15T23:36:37.9587515Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2763): error: "constexpr" is not valid here
2021-06-15T23:36:37.9587852Z 
2021-06-15T23:36:37.9588592Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2765): error: "is_member_pointer_v" is not a function or static data member
2021-06-15T23:36:37.9588997Z 
2021-06-15T23:36:37.9589718Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2765): error: "constexpr" is not valid here
2021-06-15T23:36:37.9590070Z 
2021-06-15T23:36:37.9590790Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2767): error: "is_const_v" is not a function or static data member
2021-06-15T23:36:37.9591284Z 
2021-06-15T23:36:37.9592005Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2767): error: "constexpr" is not valid here
2021-06-15T23:36:37.9592339Z 
2021-06-15T23:36:37.9593086Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2769): error: "is_volatile_v" is not a function or static data member
2021-06-15T23:36:37.9593462Z 
2021-06-15T23:36:37.9594215Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2769): error: "constexpr" is not valid here
2021-06-15T23:36:37.9594553Z 
2021-06-15T23:36:37.9595438Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2771): error: "is_trivial_v" is not a function or static data member
2021-06-15T23:36:37.9595816Z 
2021-06-15T23:36:37.9596473Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2771): error: "constexpr" is not valid here
2021-06-15T23:36:37.9596814Z 
2021-06-15T23:36:37.9597540Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2773): error: "is_trivially_copyable_v" is not a function or static data member
2021-06-15T23:36:37.9597915Z 
2021-06-15T23:36:37.9598585Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2773): error: "constexpr" is not valid here
2021-06-15T23:36:37.9598909Z 
2021-06-15T23:36:37.9599992Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2776): error: "is_standard_layout_v" is not a function or static data member
2021-06-15T23:36:37.9600359Z 
2021-06-15T23:36:37.9601031Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2776): error: "constexpr" is not valid here
2021-06-15T23:36:37.9601355Z 
2021-06-15T23:36:37.9602048Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2778): error: "is_pod_v" is not a function or static data member
2021-06-15T23:36:37.9602505Z 
2021-06-15T23:36:37.9603181Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2778): error: "constexpr" is not valid here
2021-06-15T23:36:37.9603522Z 
2021-06-15T23:36:37.9604237Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2780): error: "is_literal_type_v" is not a function or static data member
2021-06-15T23:36:37.9604598Z 
2021-06-15T23:36:37.9605336Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2780): error: "constexpr" is not valid here
2021-06-15T23:36:37.9605672Z 
2021-06-15T23:36:37.9606389Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2782): error: "is_empty_v" is not a function or static data member
2021-06-15T23:36:37.9606747Z 
2021-06-15T23:36:37.9607417Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2782): error: "constexpr" is not valid here
2021-06-15T23:36:37.9607739Z 
2021-06-15T23:36:37.9608464Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2784): error: "is_polymorphic_v" is not a function or static data member
2021-06-15T23:36:37.9608827Z 
2021-06-15T23:36:37.9609472Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2784): error: "constexpr" is not valid here
2021-06-15T23:36:37.9609897Z 
2021-06-15T23:36:37.9610624Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2786): error: "is_abstract_v" is not a function or static data member
2021-06-15T23:36:37.9611008Z 
2021-06-15T23:36:37.9611661Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2786): error: "constexpr" is not valid here
2021-06-15T23:36:37.9611982Z 
2021-06-15T23:36:37.9612698Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2788): error: "is_final_v" is not a function or static data member
2021-06-15T23:36:37.9613051Z 
2021-06-15T23:36:37.9613718Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2788): error: "constexpr" is not valid here
2021-06-15T23:36:37.9614047Z 
2021-06-15T23:36:37.9614762Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2790): error: "is_signed_v" is not a function or static data member
2021-06-15T23:36:37.9615117Z 
2021-06-15T23:36:37.9615774Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2790): error: "constexpr" is not valid here
2021-06-15T23:36:37.9616116Z 
2021-06-15T23:36:37.9616820Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2792): error: "is_unsigned_v" is not a function or static data member
2021-06-15T23:36:37.9617194Z 
2021-06-15T23:36:37.9617844Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2792): error: "constexpr" is not valid here
2021-06-15T23:36:37.9618272Z 
2021-06-15T23:36:37.9618985Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2794): error: "is_constructible_v" is not a function or static data member
2021-06-15T23:36:37.9619337Z 
2021-06-15T23:36:37.9620215Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2794): error: "constexpr" is not valid here
2021-06-15T23:36:37.9620643Z 
2021-06-15T23:36:37.9621410Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2797): error: "is_default_constructible_v" is not a function or static data member
2021-06-15T23:36:37.9621775Z 
2021-06-15T23:36:37.9622407Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2797): error: "constexpr" is not valid here
2021-06-15T23:36:37.9622746Z 
2021-06-15T23:36:37.9623452Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2800): error: "is_copy_constructible_v" is not a function or static data member
2021-06-15T23:36:37.9623829Z 
2021-06-15T23:36:37.9624457Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2800): error: "constexpr" is not valid here
2021-06-15T23:36:37.9624776Z 
2021-06-15T23:36:37.9625501Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2803): error: "is_move_constructible_v" is not a function or static data member
2021-06-15T23:36:37.9625860Z 
2021-06-15T23:36:37.9626505Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2803): error: "constexpr" is not valid here
2021-06-15T23:36:37.9626904Z 
2021-06-15T23:36:37.9627631Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2806): error: "is_assignable_v" is not a function or static data member
2021-06-15T23:36:37.9627980Z 
2021-06-15T23:36:37.9628607Z   /home/conda/feedstock_root/build_artifacts/deepmd-kit_1623798550400/_build_env/x86_64-conda-linux-gnu/include/c++/8.4.0/type_traits(2806): error: "constexpr" is not valid here
2021-06-15T23:36:37.9628945Z 
2021-06-15T23:36:37.9629137Z   Error limit reached.
2021-06-15T23:36:37.9629667Z   100 errors detected in the compilation of "/tmp/pip-req-build-e_47mazw/source/lib/src/cuda/tabulate.cu".

Further Information, Files, and Links

@njzjz
Copy link
Member Author

njzjz commented Jun 16, 2021

I just found the reason: CUDA 10.1 doesn't support C++ 17.

@njzjz njzjz closed this as completed Jun 16, 2021
@njzjz njzjz added the wontfix label Jun 16, 2021
njzjz added a commit to njzjz/deepmd-kit that referenced this issue Jun 16, 2021
cuda<=10 doesn't support `-std=c++17`, but conda compilers will add
it into the flag. We can friendly remove such flag to prevent users
go here and ask deepmodeling#428.

fix deepmodeling#755.
amcadmus pushed a commit that referenced this issue Jun 17, 2021
cuda<=10 doesn't support `-std=c++17`, but conda compilers will add
it into the flag. We can friendly remove such flag to prevent users
go here and ask #428.

fix #755.
@y1xiaoc
Copy link
Contributor

y1xiaoc commented Jun 20, 2021

It seems that CUDA 11.1 does not support c++17 either. I was building with gcc 8.4 and cudatoolkit 11.1 and got the same error. Changing it to std=c++11 solved the problem.

@njzjz
Copy link
Member Author

njzjz commented Jun 20, 2021

It seems that CUDA 11.1 does not support c++17 either. I was building with gcc 8.4 and cudatoolkit 11.1 and got the same error. Changing it to std=c++11 solved the problem.

I can reproduce

@njzjz njzjz reopened this Jun 20, 2021
@njzjz
Copy link
Member Author

njzjz commented Jun 20, 2021

NVIDIA announced CUDA 11 supports c++17. I don't know why it still doesn't work.

@njzjz njzjz removed the wontfix label Jun 25, 2021
@njzjz njzjz linked a pull request Jun 30, 2021 that will close this issue
@njzjz njzjz closed this as completed Jul 1, 2021
njzjz added a commit to njzjz/deepmd-kit that referenced this issue Jul 17, 2021
CUDA 11 has included cub, so we don't need to include it any more.
cub can be upgraded along with the CUDA Toolkit to obtain bugfixes.
See https://github.com/NVIDIA/cub#releases.
See also https://github.com/NVIDIA/cub/blob/main/CHANGELOG.md.

P.S. It's still unclear to me that which version of C++ it supports.
From the changelog, maybe C++ 17 is supported in CUDA 11.2? (deepmodeling#755)
njzjz added a commit to njzjz/deepmd-kit that referenced this issue Jul 17, 2021
CUDA 11 has included cub, so we don't need to include it any more.
cub can be upgraded along with the CUDA Toolkit to obtain bugfixes.
See https://github.com/NVIDIA/cub#releases.
See also https://github.com/NVIDIA/cub/blob/main/CHANGELOG.md.

P.S. It's still unclear to me that which version of C++ it supports.
From the changelog, maybe C++ 17 is supported in CUDA 11.2? (deepmodeling#755)
amcadmus pushed a commit that referenced this issue Jul 19, 2021
CUDA 11 has included cub, so we don't need to include it any more.
cub can be upgraded along with the CUDA Toolkit to obtain bugfixes.
See https://github.com/NVIDIA/cub#releases.
See also https://github.com/NVIDIA/cub/blob/main/CHANGELOG.md.

P.S. It's still unclear to me that which version of C++ it supports.
From the changelog, maybe C++ 17 is supported in CUDA 11.2? (#755)
gzq942560379 pushed a commit to HPC-AI-Team/deepmd-kit that referenced this issue Sep 1, 2021
cuda<=10 doesn't support `-std=c++17`, but conda compilers will add
it into the flag. We can friendly remove such flag to prevent users
go here and ask deepmodeling#428.

fix deepmodeling#755.
gzq942560379 pushed a commit to HPC-AI-Team/deepmd-kit that referenced this issue Sep 2, 2021
CUDA 11 has included cub, so we don't need to include it any more.
cub can be upgraded along with the CUDA Toolkit to obtain bugfixes.
See https://github.com/NVIDIA/cub#releases.
See also https://github.com/NVIDIA/cub/blob/main/CHANGELOG.md.

P.S. It's still unclear to me that which version of C++ it supports.
From the changelog, maybe C++ 17 is supported in CUDA 11.2? (deepmodeling#755)
njzjz added a commit to njzjz/deepmd-kit that referenced this issue Sep 21, 2023
)

fix compatibility as the key was changed in the dpdispatcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants