Remove OneAPI warning

This commit is contained in:
Disty0
2023-09-27 02:15:49 +03:00
parent 75c41498dd
commit c54ecbb239
-2
View File
@@ -403,8 +403,6 @@ def check_torch():
elif allow_ipex and (args.use_ipex or shutil.which('sycl-ls') is not None or shutil.which('sycl-ls.exe') is not None or os.environ.get('ONEAPI_ROOT') is not None or os.path.exists('/opt/intel/oneapi') or os.path.exists("C:/Program Files (x86)/Intel/oneAPI") or os.path.exists("C:/oneAPI")):
args.use_ipex = True # pylint: disable=attribute-defined-outside-init
log.info('Intel OneAPI Toolkit detected')
if shutil.which('sycl-ls') is None and shutil.which('sycl-ls.exe') is None:
log.error('Intel OneAPI Toolkit is not activated! Activate OneAPI manually!')
os.environ.setdefault('NEOReadDebugKeys', '1')
os.environ.setdefault('ClDeviceGlobalMemSizeAvailablePercent', '100')
if "linux" in sys.platform: