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

MSVC: Compilation of <tuple> issues in VS 2017 and VS 2019 #955

Closed
wmaxey opened this issue Nov 17, 2020 · 3 comments
Closed

MSVC: Compilation of <tuple> issues in VS 2017 and VS 2019 #955

wmaxey opened this issue Nov 17, 2020 · 3 comments
Assignees
Labels
libcu++ For all items related to libcu++

Comments

@wmaxey
Copy link
Member

wmaxey commented Nov 17, 2020

Build failures by VC version:

Executed with: lit -sv .\test\std\utilities\tuple\ -Dcompute_archs=70

VS 2017 Compilers: 19.11, 19.12, 19.13, 19.14

Failing tests seem related to type conversions

struct A
{
    int id_;
    __host__ __device__ explicit constexpr A(int i) : id_(i) {}
};

constexpr cuda::std::tuple<A, A> t(3, 2);
C:/Users/wmaxey/temp/libcudacxx/.upstream-tests/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/UTypes.pass.cpp(153): error C2664: 'cuda::std::__3::tuple<A,A>::tuple(cuda::std::__3::tuple<A,A> &&)': cannot convert argument 1 from 'int' to 'const A &'
C:/Users/wmaxey/temp/libcudacxx/.upstream-tests/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/UTypes.pass.cpp(153): note: Reason: cannot convert from 'int' to 'const A'
C:/Users/wmaxey/temp/libcudacxx/.upstream-tests/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/UTypes.pass.cpp(153): note: Constructor for struct 'A' is declared 'explicit'
Failing Tests (17):
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.assign/convert_copy.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.assign/convert_move.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.assign/copy.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.assign/move.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/PR22806_constrain_tuple_like_ctor.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/PR23256_constrain_UTypes_ctor.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/UTypes.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_move.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/convert_copy.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/move.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.creation/forward_as_tuple.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.creation/tuple_cat.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.elem/get_const_rv.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.elem/get_rv.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.special/non_member_swap.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.swap/member_swap.pass.cpp

VS 2019 Compilers: 19.20, 19.21, 19.22, 19.23, 19.24, 19.25

Failing tests below are caused by an ICE, cause is still unknown, but I believe is related to this construct __tuple#L486

Failing Tests (55):
  • libcu++ :: std/utilities/tuple/tuple.general/ignore.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.general/tuple.smartptr.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/TupleFunction.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.apply/apply.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.apply/apply_extended_types.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.assign/const_pair.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.assign/convert_copy.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.assign/convert_move.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.assign/copy.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.assign/move.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.assign/move_pair.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/PR20855_tuple_ref_binding_diagnostics.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/PR22806_constrain_tuple_like_ctor.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/PR23256_constrain_UTypes_ctor.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/UTypes.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_UTypes.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_const_Types.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_const_pair.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_convert_copy.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_convert_move.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_copy.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_move.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_move_pair.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/const_Types.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/const_pair.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/convert_copy.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/convert_move.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/copy.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/default.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/move.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/move_pair.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/nothrow_cnstr.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.cnstr/tuple_array_template_depth.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.creation/forward_as_tuple.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.creation/make_tuple.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.creation/tie.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.creation/tuple_cat.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.elem/get_const.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.elem/get_const_rv.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.elem/get_non_const.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.elem/get_rv.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.helper/tuple.include.array.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.helper/tuple_element.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_incomplete.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_v.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_value_sfinae.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.rel/eq.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.rel/lt.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.special/non_member_swap.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.swap/member_swap.pass.cpp
  • libcu++ :: std/utilities/tuple/tuple.tuple/tuple.traits/uses_allocator.pass.cpp

Known good VS 2017:

  • 19.15
  • 19.16

Known good VS 2019:

  • 19.26
  • 19.27
  • 19.28
@wmaxey wmaxey changed the title MSVC: Tuple causes NVCC to produce code that MSVC ICEs MSVC: Tuple causes NVCC to produce code that MSVC ICEs with Nov 17, 2020
@brycelelbach
Copy link
Collaborator

We won't be able to fix this for 1.4.0, but I'll leave the issue on 1.4.0 so that we remember to release note it.

@wmaxey wmaxey changed the title MSVC: Tuple causes NVCC to produce code that MSVC ICEs with MSVC: Compilation of <tuple> issues in VS 2017 and VS 2019 Dec 2, 2020
@wmaxey
Copy link
Member Author

wmaxey commented Dec 2, 2020

I updated the issue to encompass all the errors that remain and provide which compilers are known to be working.

@brycelelbach brycelelbach reopened this Dec 4, 2020
@jrhemstad jrhemstad added the libcu++ For all items related to libcu++ label Feb 22, 2023
@wmaxey
Copy link
Member Author

wmaxey commented Feb 23, 2023

Current status: We need to document known issues with MSVC. There isn't anything we can do to triage the ICEs on several years old compilers by now.

@github-project-automation github-project-automation bot moved this to Todo in CCCL Nov 8, 2023
@jarmak-nv jarmak-nv transferred this issue from NVIDIA/libcudacxx Nov 8, 2023
@wmaxey wmaxey closed this as completed Nov 20, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in CCCL Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libcu++ For all items related to libcu++
Projects
Archived in project
Development

No branches or pull requests

3 participants