Skip to content

Mesh File Version Check is Not Hit When Compiled with Kokkos OpenMP Backend #180

@Fuad-HH

Description

@Fuad-HH

OMEGA_H_CHECK(version <= latest_version);

This line gets hit when I want to read a mesh of version 11 without kokkos with an older Omega_h (it tried commit 09a5171) in release build.

assertion version <= latest_version failed at /users/hasanm4/lore/wsources/omega_h_scorec/src/Omega_h_file.cpp +441
Aborted (core dumped)

But when I build the same Omega_h with Kokkos (with OpenMP backend), it does not hit the check. It terminates with a std::bad_alloc error.

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

Although if I build it in debug mode, it hits that check as expected:

describe: omega_h_scorec/src/Omega_h_file.cpp:441: void Omega_h::binary::read(std::istream&, Omega_h::Mesh*, Omega_h::I32): Assertion `version <= latest_version' failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfile i/o

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions