mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-04 15:28:40 +00:00
A fatal CUDA fault in the prompt path exits at once instead of hanging until the watchdog (#224); CMake warns when sm_120 is built with CUDA < 13.0 (#220, #224); iq_pack writes native_experts.txt under a temporary name, so a stop part-way leaves no partial pack (#172)
This commit is contained in:
1 parent
c3242f095c
commit
bb628ce12f
3 files changed
+19
-1
No files matched your search
@@ -4044,6 +4044,13 @@ int main(int argc, char** argv) {
|
||||
if (!stop_req.load()) {
|
||||
std::fprintf(stderr, "strata serve: %s\n", err.c_str());
|
||||
std::printf("ERR %s\n", err.c_str());
|
||||
// #224: a CUDA fault (an illegal address) poisons the context for the whole process, and
|
||||
// unwinding the destructors on it could hang until the 60 s watchdog: leave at once
|
||||
if (cudaPeekAtLastError() != cudaSuccess) {
|
||||
std::fflush(stdout);
|
||||
std::fflush(stderr);
|
||||
std::_Exit(1);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
cancelled = true; // stopped while reading the prompt: refill the lent slots below, then DONE cancel
|
||||
|
||||
Reference in new issue
Block a user