Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Saidani__Tarik
Beginner
305 Views

support for Intel® Iris® Plus Graphics 640

Hi,

 

Is DPC++ supported on Intel® Iris® Plus Graphics 640?

 

When I run the following code:

#include <iostream>
#include <CL/sycl.hpp>

int main()
{

    cl::sycl::queue q(cl::sycl::gpu_selector{});

    auto device = q.get_device();

    std::cout << "device name is: " << device.get_info<cl::sycl::info::device::name>() << std::endl;

}

 

I get

terminate called after throwing an instance of 'cl::sycl::runtime_error'

  what():  No device of requested type available. 0 (CL_SUCCESS)

Aborted

Tags (1)
0 Kudos
4 Replies
RahulV_intel
Moderator
305 Views

Hi,

Thanks for reaching out to us. We will get back to you soon.

 

Rahul

JyotsnaK_Intel
Moderator
305 Views

Hi Tarik,

Please could you send output of "lspci" command for more details. 

Best regards,

 

Saidani__Tarik
Beginner
305 Views

Hi Jyotsna,

Just to be more specific I'm trying to run the program from within a intel/oneapi-hpckit Docker container. The reason being that I'm running it from my MacBook Pro (13-inch, 2017). There is no MacOS package for intel oneAPI at the moment, so that's the workaround I found. From the lspci output (see below) I can tell that the GPU is not detected in the container. Do you have any idea of a Docker run option that makes the GPU driver available ?

 

Many Thanks,

 

Tarik

 

lspci

00:00.0 Host bridge: Network Appliance Corporation Device 1275

00:01.0 Ethernet controller: Red Hat, Inc. Virtio network device

00:02.0 SATA controller: Intel Corporation 82801HR/HO/HH (ICH8R/DO/DH) 6 port SATA Controller [AHCI mode]

00:03.0 Ethernet controller: Red Hat, Inc. Device 103f

00:04.0 SATA controller: Intel Corporation 82801HR/HO/HH (ICH8R/DO/DH) 6 port SATA Controller [AHCI mode]

00:05.0 SATA controller: Intel Corporation 82801HR/HO/HH (ICH8R/DO/DH) 6 port SATA Controller [AHCI mode]

00:06.0 SATA controller: Intel Corporation 82801HR/HO/HH (ICH8R/DO/DH) 6 port SATA Controller [AHCI mode]

00:07.0 Network and computing encryption device: Red Hat, Inc. Virtio RNG

00:1f.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]

 

Sravani_K_Intel
Employee
305 Views

Hi Tarik,

The docker run option  "--device=/dev/dri" enables the GPU(if available) as mentioned in the Get Started with the Intel® oneAPI Toolkits for Linux* . 

Let us know if you still see the issue. 

Reply