Merge f-027-cuda (CUDA speed work: wide HC up read on sm_120, residency-biased routing on small cards, STRATA_TRACE, release-notes draft)
This commit is contained in:
commit
4abccbb360
6 files changed
+274
-10
No files matched your search
@@ -11128,7 +11128,11 @@ int main(int argc, char** argv) {
|
||||
const bool trace = std::getenv("STRATA_TRACE") != nullptr;
|
||||
auto tr = [&](const char* what, long long a = -1, long long b = -1) {
|
||||
if (!trace) return;
|
||||
std::fprintf(stderr, "strata trace: %s %lld %lld\n", what, a, b);
|
||||
static Clock::time_point t0; // process-wide: the stages run on different threads
|
||||
static bool t0_set = false;
|
||||
if (!t0_set) { t0 = Clock::now(); t0_set = true; }
|
||||
const double ms = std::chrono::duration<double, std::milli>(Clock::now() - t0).count();
|
||||
std::fprintf(stderr, "strata trace: %s %lld %lld %.1f ms\n", what, a, b, ms);
|
||||
std::fflush(stderr);
|
||||
};
|
||||
{
|
||||
@@ -17201,3 +17205,4 @@ int main(int argc, char** argv) {
|
||||
cudaFree(arena);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user