Thanks to visit codestin.com
Credit goes to github.com

Skip to content

KokkosBatched::SerialSVD::invoke(..) hang in Kokkos v4.6 #2650

@amk227

Description

@amk227

Hi,

I'm seeing a hang (infinite loop) in SerialSVD in Kokkos v4.6:

TEST(KokkosSerialSVD, does_not_solve2)
{
  Kokkos::View<double[3][6], Kokkos::HostSpace> A(Kokkos::ViewAllocateWithoutInitializing("A"));
  Kokkos::View<double[3][3], Kokkos::HostSpace> U(Kokkos::ViewAllocateWithoutInitializing("U"));
  Kokkos::View<double[6][6], Kokkos::HostSpace> V(Kokkos::ViewAllocateWithoutInitializing("V"));
  Kokkos::View<double[3], Kokkos::HostSpace> S(Kokkos::ViewAllocateWithoutInitializing("S"));
  Kokkos::View<double[30], Kokkos::HostSpace> work(Kokkos::ViewAllocateWithoutInitializing("work"));

  A(0, 0) = -2.3588494081694974e-03;
  A(0, 1) = -2.3602176428346553e-03;
  A(0, 2) = -3.3360574050870077e-03;
  A(0, 3) = -2.3589487578561312e-03;
  A(0, 4) = -3.3359167956075490e-03;
  A(0, 5) = -3.3378517656821728e-03;
  A(1, 0) = 3.3359168246290603e-03;
  A(1, 1) = 3.3378518006490351e-03;
  A(1, 3) = 3.3360573263032968e-03;
  A(2, 0) = -2.3588494081695022e-03;
  A(2, 1) = -2.3602176428346587e-03;
  A(2, 2) = 3.3360574050869769e-03;
  A(2, 3) = -2.3589487578561286e-03;
  A(2, 4) = 3.3359167956075399e-03;
  A(2, 5) = 3.3378517656821581e-03;

  KokkosBatched::SerialSVD::invoke(KokkosBatched::SVD_USV_Tag{}, A, U, S, V, work, 1e-12);
}

Compiler:

gcc-12.3.0

Thanks,
-Alec

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