Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions SYCL/Basic/intel-ext-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ int main(int argc, char **argv) {
int numSlices = 0;
int numSubslices = 0;
int numEUsPerSubslice = 0;
int numHWThreadsPerEU = 0;
for (const auto &dev : plt.get_devices()) {
std::cout << "Platform #" << pltCount++ << ":" << std::endl;
if (dev.has(aspect::gpu)) {
Expand Down Expand Up @@ -90,6 +91,12 @@ int main(int argc, char **argv) {
std::cout << "Number of EUs per subslice = " << numEUsPerSubslice
<< std::endl;
}
if (dev.has(aspect::ext_intel_gpu_hw_threads_per_eu)) {
numHWThreadsPerEU =
dev.get_info<info::device::ext_intel_gpu_hw_threads_per_eu>();
std::cout << "Number of HW threads per EU = " << numHWThreadsPerEU
<< std::endl;
}
if (dev.has(aspect::ext_intel_max_mem_bandwidth)) {
// not supported yet
long m =
Expand Down