-
Notifications
You must be signed in to change notification settings - Fork 30
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
ONEAPI_DEVICE_SELECTOR not working under sub-process #1406
Comments
Please be aware that The $ ONEAPI_DEVICE_SELECTOR=level_zero:gpu:0 sycl-ls to only show one device, while the syntax used in your script to show all devices, because the incorrectly formed string is ignored: $ ONEAPI_DEVICE_SELECTOR=level_zero:0 sycl-ls |
Maybe you don't have test the usage of $ ONEAPI_DEVICE_SELECTOR=level_zero:gpu:0 sycl-ls
Warning: ONEAPI_DEVICE_SELECTOR environment variable is set to level_zero:gpu:0.
To see the correct device id, please unset ONEAPI_DEVICE_SELECTOR.
SYCL Exception encountered: Error parsing selector string "level_zero:gpu:0" Too many colons (:) $ ONEAPI_DEVICE_SELECTOR=level_zero:gpu:1,3 sycl-ls
Warning: ONEAPI_DEVICE_SELECTOR environment variable is set to level_zero:gpu:1,3.
To see the correct device id, please unset ONEAPI_DEVICE_SELECTOR.
SYCL Exception encountered: Error parsing selector string "level_zero:gpu:1,3" Too many colons (:) |
Do you ever use the environment variable |
@oleksandr-pavlyk I faced a similar situation, when modifying ONEAPI_DEVICE_SELECTOR after import dpctl, the recalling of get_devices doesn't respect the modified filter.
|
My environment:
And I have following codes in file
test_multi_process.py
:Running
test_multi_process.py
With following logs:
In the main process, I want to use
GPU ID [1,2,3,4,5]
, and create 5 process to use one of the GPUs in each process.My question is that:
I have set the environment variable
ONEAPI_DEVICE_SELECTOR
in each sub-process with using only one GPU, but the sub-process could still can see the 6 GPUs.Is that need reload the dpcpp in python codes?
Or that
ONEAPI_DEVICE_SELECTOR
withdpctl
can't be used in nested case?Or that
ONEAPI_DEVICE_SELECTOR
should work with commandsyc-ls
?The text was updated successfully, but these errors were encountered: