P4 to Git Change 1053268 by gandryey@gera-dev-w7 on 2014/07/08 15:08:51

ECR #304775 - Device enqueuing
	- Add printing of the waiting events
	- Add early exit in the scheduler if nothing to launch

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuschedcl.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#321 edit
This commit is contained in:
foreman
2014-07-08 15:30:04 -04:00
parent 19cae20ac8
commit 977f314094
2 changed files with 19 additions and 10 deletions
+6 -9
View File
@@ -388,15 +388,12 @@ scheduler(
continue;
}
// Check if the command has any the wait events
if (disp->wait_num != 0) {
// Check if the wait list is COMPLETE
launch = checkWaitEvents(
(__global AmdEvent**)(disp->wait_list), disp->wait_num);
}
else {
launch = 1;
}
// Check if the wait list is COMPLETE
launch = checkWaitEvents(
(__global AmdEvent**)(disp->wait_list), disp->wait_num);
if (launch == 0) continue;
uint tmp = 0;
if (atomic_compare_exchange_strong_explicit(
(__global atomic_uint*)&param->launch, &tmp, launch,