| 568 | } |
| 569 | |
| 570 | bool one_token_self_commit() { |
| 571 | #if defined(STRATA_USE_HIP) |
| 572 | static const bool on = [] { |
| 573 | const char* v = std::getenv("STRATA_ONE_TOKEN_COMMIT"); // HIP: opt-in (=1) |
| 574 | return v != nullptr && std::atoi(v) != 0; |
| 575 | }(); |
| 576 | return on; |
| 577 | #else |
| 578 | static const bool on = [] { |
| 579 | const char* v = std::getenv("STRATA_ONE_TOKEN_COMMIT"); |
| 580 | return v == nullptr || std::atoi(v) != 0; |
| 581 | }(); |
| 582 | return on; |
| 583 | #endif |
| 584 | } |
| 585 | |
| 586 | bool mapped(size_t bytes, void** h, void** d) { |
| 587 | #if defined(STRATA_USE_HIP) |
no outgoing calls
no test coverage detected