@artv3 mentioned in #213 that resources have inconsistent behavior when different resources fail to allocate. Some like cuda/hip throw an exception while Host returns a nullptr. Let's think about what would be best. If we always throw an exception that would at least be consistent.
@artv3 mentioned in #213 that resources have inconsistent behavior when different resources fail to allocate. Some like cuda/hip throw an exception while Host returns a nullptr. Let's think about what would be best. If we always throw an exception that would at least be consistent.