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

Aggregate initialization failing #23

@masterleinad

Description

@masterleinad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions