-
Notifications
You must be signed in to change notification settings - Fork 795
[SYCL] [L0] Recycle immediate command lists for queues in a context. #9409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: smaslov-intel <[email protected]>
test(sycl::property_list{}); | ||
|
||
// CHECK: [getZeQueue]: create queue {{.*}} priority = Normal | ||
// CHECK-STD: [getZeQueue]: create queue {{.*}} priority = Normal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please either add a CHECK-IMM or a comment why it shouldn't be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CHECK-IMM is not needed here precisely because of IMM recycling.
I've added a comment saying so.
// RUN: env ZE_DEBUG=1 env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-STD | ||
// RUN: env ZE_DEBUG=1 env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-IMM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// RUN: env ZE_DEBUG=1 env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-STD | |
// RUN: env ZE_DEBUG=1 env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-IMM | |
// RUN: env ZE_DEBUG=1 SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-STD | |
// RUN: env ZE_DEBUG=1 SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-IMM | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
intel#9409 Signed-off-by: Jaime Arteaga <[email protected]>
intel#9409 Signed-off-by: Jaime Arteaga <[email protected]>
Cache immediate command lists in a context when a queue is released, Then reuse them for other queues created in that context.
Waiting until context deletion to delete immediate command lists could possibly exhaust device memory when many queues are created and destroyed within the same context.