Allows construction of instances with non-blocking initialization occurring on a given execution space instance. Also useful when multiple instances of a device are available, in which case the execution space argument is used to select a device.
For #8032
I created a unit test that should test the new feature without duplicating any existing tests. However, since it's impossible to compare pools directly, the test is indirect. I'm open to suggestions for better tests.
The repository is checked out at /workspace/repo. Work only on production
source code. Do not modify tests, CMake registration, CI configuration, or the
grading environment. Network access is unavailable and git history contains
only the base revision, so do not spend time looking for upstream commits or
pull requests. Diagnose from the local source, make a production-code change,
and use the smallest relevant target in the existing build tree for local
verification.