Skip to content

Commit f453e3f

Browse files
authored
Remove imm cmdlist workaround (#2523)
Signed-off-by: Gu, Jinghui <jinghui.gu@intel.com>
1 parent 755363a commit f453e3f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

intel_extension_for_pytorch/xpu/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@
3131
default_generators: Tuple[torch._C.Generator] = ()
3232
_device_t = Union[_device, str, int]
3333

34-
# Start of imm cmdlist workaround
35-
# Switch to immediate command list in LevelZero plugin to avoid resource leak.
36-
# The immediate command list will be default in next version of plugin.
37-
# Then, this workaround will be removed soon.
38-
import os
39-
# Enable immediate cmdlist by default
40-
os.environ['SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS']="1"
41-
# End of imm cmdlist workaround
4234

4335
def is_initialized():
4436
r"""Returns whether XPU state has been initialized."""

0 commit comments

Comments
 (0)