| 74 | if (found++ == static_cast<size_t>(device_index)) { |
| 75 | return dev; |
| 76 | } |
| 77 | } |
| 78 | return nullptr; |
| 79 | } |
| 80 | |
| 81 | |
| 82 | #ifndef NDEBUG |
| 83 | bool backend_graph_validation_enabled() { |
| 84 | static const bool enabled = [] { |
| 85 | const char * value = std::getenv("ENGINE_VALIDATE_BACKEND_GRAPH"); |
no outgoing calls
no test coverage detected