@@ -961,35 +961,15 @@ static const zeCommandListBatchConfig ZeCommandListBatchCopyConfig = [] {
961
961
return ZeCommandListBatchConfig (IsCopy{true });
962
962
}();
963
963
964
- // Temporarily check whether immediate command list env var has been set. This
965
- // affects default behavior of make_queue API.
966
- static const bool ImmediateCommandlistEnvVarIsSet = [] {
967
- const char *UrRet = std::getenv (" UR_L0_USE_IMMEDIATE_COMMANDLISTS" );
968
- const char *PiRet =
969
- std::getenv (" SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS" );
970
- return (UrRet ? std::stoi (UrRet) : (PiRet ? std::stoi (PiRet) : 0 ));
971
- }();
972
-
973
964
_pi_queue::_pi_queue (std::vector<ze_command_queue_handle_t > &ComputeQueues,
974
965
std::vector<ze_command_queue_handle_t > &CopyQueues,
975
966
pi_context Context, pi_device Device,
976
967
bool OwnZeCommandQueue,
977
968
pi_queue_properties PiQueueProperties,
978
- int ForceComputeIndex, bool OldAPI )
969
+ int ForceComputeIndex)
979
970
: Context{Context}, Device{Device}, OwnZeCommandQueue{OwnZeCommandQueue},
980
971
Properties (PiQueueProperties) {
981
-
982
- // Set the type of commandlists the queue will use.
983
- bool Default = !ImmediateCommandlistEnvVarIsSet;
984
972
UsingImmCmdLists = Device->useImmediateCommandLists ();
985
- urPrint (" ImmCmdList env var is set (%s), OldAPI (%s)\n " ,
986
- (ImmediateCommandlistEnvVarIsSet ? " YES" : " NO" ),
987
- (OldAPI ? " YES" : " NO" ));
988
-
989
- if (OldAPI && Default)
990
- // The default when called from pre-compiled binaries is to not use
991
- // immediate command lists.
992
- UsingImmCmdLists = false ;
993
973
urPrint (" ImmCmdList setting (%s)\n " , (UsingImmCmdLists ? " YES" : " NO" ));
994
974
995
975
// Compute group initialization.
@@ -2576,9 +2556,9 @@ pi_result piQueueCreate(pi_context Context, pi_device Device,
2576
2556
pi_queue_properties Properties[] = {PI_QUEUE_FLAGS, Flags, 0 };
2577
2557
return piextQueueCreate (Context, Device, Properties, Queue);
2578
2558
}
2579
- pi_result piextQueueCreateInternal (pi_context Context, pi_device Device,
2580
- pi_queue_properties *Properties ,
2581
- pi_queue *Queue, bool OldAPI ) {
2559
+
2560
+ pi_result piextQueueCreate (pi_context Context, pi_device Device ,
2561
+ pi_queue_properties *Properties, pi_queue *Queue) {
2582
2562
PI_ASSERT (Properties, PI_ERROR_INVALID_VALUE);
2583
2563
// Expect flags mask to be passed first.
2584
2564
PI_ASSERT (Properties[0 ] == PI_QUEUE_FLAGS, PI_ERROR_INVALID_VALUE);
@@ -2629,7 +2609,7 @@ pi_result piextQueueCreateInternal(pi_context Context, pi_device Device,
2629
2609
2630
2610
try {
2631
2611
*Queue = new _pi_queue (ZeComputeCommandQueues, ZeCopyCommandQueues, Context,
2632
- Device, true , Flags, ForceComputeIndex, OldAPI );
2612
+ Device, true , Flags, ForceComputeIndex);
2633
2613
} catch (const std::bad_alloc &) {
2634
2614
return PI_ERROR_OUT_OF_HOST_MEMORY;
2635
2615
} catch (...) {
@@ -2678,11 +2658,6 @@ pi_result piextQueueCreateInternal(pi_context Context, pi_device Device,
2678
2658
return PI_SUCCESS;
2679
2659
}
2680
2660
2681
- pi_result piextQueueCreate (pi_context Context, pi_device Device,
2682
- pi_queue_properties *Properties, pi_queue *Queue) {
2683
- return piextQueueCreateInternal (Context, Device, Properties, Queue, true );
2684
- }
2685
-
2686
2661
pi_result piQueueGetInfo (pi_queue Queue, pi_queue_info ParamName,
2687
2662
size_t ParamValueSize, void *ParamValue,
2688
2663
size_t *ParamValueSizeRet) {
0 commit comments