Intel® oneAPI Data Parallel C++
Support for Intel® oneAPI DPC++ Compiler, Intel® oneAPI DPC++ Library, Intel ICX Compiler , Intel® DPC++ Compatibility Tool, and GDB*

Unhandled exception: queue(cpu_selector)

Tamer_Assad
Innovator
1,569 Views

Hi,

 

Instantiating a queue object using a device_selector object of type cpu_selector results in:

 

Release:

Unhandled exception at 0x00007FFA6543A839 in AppName.exe: Microsoft C++ exception: cl::sycl::runtime_error at memory location

 

Debug:

Unhandled exception at 0x00007FFA6609C4C8 (ucrtbase.dll) in AppName.exe: An invalid parameter was passed to a function that considers invalid parameters fatal.

 

Ref. DPC++ VecAdd example  lines #100

//default_selector device_selector;
cpu_selector device_selector;

queue device_queue(device_selector);

 

 

What could cause this error?

 

Best regards,

0 Kudos
5 Replies
RahulV_intel
Moderator
1,569 Views

Hi,

Could you specify your environment, basetoolkit version which you are currently working on?

 

Rahul

0 Kudos
Tamer_Assad
Innovator
1,569 Views

Hi Rahul,

 

This has Occurred on a windows 10 environment,

oneAPI base tool kit : w_BaseKit_b_2021.1.3.085_offline

 

Thank you for your care.

 

Best regards,

0 Kudos
Tamer_Assad
Innovator
1,569 Views

Also, please note that, the last time I tested that was couple of days ago, and it was working well, but now its not, knowing that no installation has been performed on the target machine since the last successful attempt.

 

Best regards,

0 Kudos
Tamer_Assad
Innovator
1,569 Views

Hi Rahul,

 

Thank you for your support.

Installing the latest base kit version "w_BaseKit_b_2021.1.4.423" has fixed this problem.

 

Best regards,

 

0 Kudos
RahulV_intel
Moderator
1,569 Views

Hi Tamer Assad,

Always make sure that you update to the latest version of the base toolkit https://software.intel.com/en-us/oneapi/base-kit. We are closing this thread. Feel free to reach out to us, in case you face any issues.

 

Rahul

0 Kudos
Reply