Skip to content

The default filter selector should be based on SYCL BE settings #267

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

Closed
diptorupd opened this issue Jan 31, 2021 · 2 comments
Closed

The default filter selector should be based on SYCL BE settings #267

diptorupd opened this issue Jan 31, 2021 · 2 comments

Comments

@diptorupd
Copy link
Contributor

Currently we set the default device as opencl:gpu:0. We should change this to obey DPC++ environment settings. Refer https://github.com/intel/llvm/blob/sycl/sycl/doc/EnvironmentVariables.md

@oleksandr-pavlyk
Copy link
Contributor

Implemented in master:

(idp) [18:30:17 nuc04 dpctl]$ python -c "from dpctl import select_default_device as sdd; sdd().print_device_info()"
    Name            Intel(R) UHD Graphics [0x9bca]
    Driver version  1.0.19310
    Vendor          Intel(R) Corporation
    Profile         FULL_PROFILE
    Device type     gpu
(idp) [18:30:29 nuc04 dpctl]$ SYCL_DEVICE_FILTER=cpu python -c "from dpctl import select_default_device as sdd; sdd().print_device_info()"
    Name            Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz
    Driver version  2021.11.3.0.17_160000
    Vendor          Intel(R) Corporation
    Profile         FULL_PROFILE
    Device type     cpu
(idp) [18:30:59 nuc04 dpctl]$ SYCL_DEVICE_FILTER=opencl:gpu python -c "from dpctl import select_default_device as sdd; sdd().print_device_info()"
    Name            Intel(R) UHD Graphics [0x9bca]
    Driver version  21.11.19310
    Vendor          Intel(R) Corporation
    Profile         FULL_PROFILE
    Device type     gpu

@oleksandr-pavlyk
Copy link
Contributor

Resolving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants