| 281 | } |
| 282 | |
| 283 | bool one_token_self_commit() { |
| 284 | #if defined(STRATA_USE_HIP) |
| 285 | return false; |
| 286 | #else |
| 287 | static const bool on = [] { |
| 288 | const char* v = std::getenv("STRATA_ONE_TOKEN_COMMIT"); |
| 289 | return v == nullptr || std::atoi(v) != 0; |
| 290 | }(); |
| 291 | return on; |
| 292 | #endif |
| 293 | } |
| 294 | |
| 295 | // True when the GPU runs under the i915 kernel driver (Arc Alchemist: A310-A770), read from sysfs. |
| 296 | bool intel_i915_gpu() { return strata::intel_gpu_driver() == "i915"; } |
no outgoing calls
no test coverage detected