Skip to content

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

Closed

Description

@diptorupd

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

Activity

  1. oleksandr-pavlyk commented on Apr 5, 2021

    @oleksandr-pavlyk
    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
    
  2. oleksandr-pavlyk commented on Apr 5, 2021

    @oleksandr-pavlyk
    Contributor

    Resolving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions