Skip to content
This repository was archived by the owner on Dec 17, 2020. It is now read-only.

Aggregate initialization failing #23

Open
masterleinad opened this issue Nov 14, 2019 · 1 comment
Open

Aggregate initialization failing #23

masterleinad opened this issue Nov 14, 2019 · 1 comment

Comments

@masterleinad
Copy link

Apparently, HIP doesn't like aggregate initialization. It fails with errors like

In file included from kokkos/core/unit_test/serial/TestSerial_MDRange_a.cpp:46:
In file included from kokkos/core/unit_test/TestMDRange_a.hpp:44:
kokkos/core/unit_test/TestMDRange.hpp:2462:24: error: no matching constructor for initialization of 'point_type' (aka 'Array<long, rank>')
      range_type range(point_type{{0, 0, 0, 0, 0}},
                       ^         ~~~~~~~~~~~~~~~~~
kokkos/core/unit_test/TestMDRange_a.hpp:53:35: note: in instantiation of member function 'Test::(anonymous namespace)::TestMDRange_5D<Kokkos::Serial>::test_for5' requested here
  TestMDRange_5D<TEST_EXECSPACE>::test_for5(100, 10, 10, 10, 5);
                                  ^
kokkos/core/src/Kokkos_Array.hpp:113:8: note: candidate constructor (the implicit copy constructor) not viable: cannot convert initializer list argument to 'const Kokkos::Array<long, 5, void>'
struct Array {
       ^
kokkos/core/src/Kokkos_Array.hpp:113:8: note: candidate constructor (the implicit move constructor) not viable: cannot convert initializer list argument to 'Kokkos::Array<long, 5, void>'
kokkos/core/src/Kokkos_Array.hpp:113:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
@masterleinad
Copy link
Author

Might be ROCm/hip#502.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant