Clear windows branch; preserve previous contents in win-old
This commit is contained in:
1 parent
f0c881985b
commit
73994d4634
311 files changed
-57018
No files matched your search
@@ -1,16 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
// Query completion rather than trusting HIP event flags to put the CPU to
|
||||
// sleep. Never treat NOT_READY as completion, including during retirement.
|
||||
template <typename Query, typename Sleep>
|
||||
int d4r_wait_event(Query query, Sleep sleep)
|
||||
{
|
||||
constexpr int cudaNotReady = 600;
|
||||
for (;;)
|
||||
{
|
||||
const int result = query();
|
||||
if (result != cudaNotReady)
|
||||
return result;
|
||||
sleep();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user