- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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;
}
}
}
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, the setvars.sh was not being sourced.
It is working now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page