Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
613 Discussions

Unable to view Intel Xeon 4th Gen in list of available oneAPI devices

Yojan1
Beginner
1,256 Views

The code below does not display Intel Xeon 4th Gen CPU (Intel(R) Xeon(R) Platinum 8480+) in the list of available devices when executed.

Able to see the same under cat /proc/cpuinfo.

#include <sycl/sycl.hpp>

int main()
{
for (auto platform : sycl::platform::get_platforms())
{
std::cout << "Platform: "
<< platform.get_info<sycl::info::platform::name>()
<< std::endl;

for (auto device : platform.get_devices())
{
std::cout << "\tDevice: "
<< device.get_info<sycl::info::device::name>()
<< std::endl;
}
}
}

0 Kudos
5 Replies
NoorjahanSk_Intel
Moderator
1,199 Views

Hi,

 

Thanks for posting in Intel Communities.

 

We've successfully tested the provided sample code on Ubuntu 20.04 with the icpx compiler version 2024.0, and the CPU is displaying correctly. Please refer to the below screenshot for more details.

NoorjahanSk_Intel_0-1702990769363.png

 

Please provide us with the following information:

1. Details about your operating system.

2. Output of the 'sycl-ls' command.

3. If there's any specific error during the code build, please share the exact error message.

 

Thanks & Regards,

Noorjahan.

 

0 Kudos
Yojan1
Beginner
1,171 Views

1) Rocky Linux 9.2 (Blue Onyx) - Kernel : 5.14.0-284.25.1.el9_2.x86_64

2) No devices displayed on sycl-ls

[user1@gs6 SYCL]$ sycl-ls
[user1@gs6 SYCL]$

3) No errors during compile of the code.

 

OneAPI version 2023.0.0

0 Kudos
NoorjahanSk_Intel
Moderator
1,126 Views

Hi,

 

Thanks for providing the details.

 

Please uninstall the older versions of oneAPI and try with latest oneAPI version 2024.0 and let us know if the issue still persists?

 

Before building the code please source the setvar.sh file to set the oneAPI Environment using below command.

>>source /opt/intel/oneapi/setvars.sh

 

Also please provide us the output after running/executing the code and "sycl-ls --verbose " output.

 

Thanks & Regards,

Noorjahan.

0 Kudos
Yojan1
Beginner
1,076 Views

Thank you, the setvars.sh was not being sourced.
It is working now.

0 Kudos
NoorjahanSk_Intel
Moderator
1,059 Views

Hi,


>>It is working now.

Thanks for the confirmation and glad to know that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks & Regards,

Noorjahan.


0 Kudos
Reply