Skip to content

Commit 8dfdee0

Browse files
[SYCL] Print device aspects in "sycl-ls --verbose"
1 parent 23978b4 commit 8dfdee0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sycl/tools/sycl-ls/sycl-ls.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ static void printDeviceInfo(const device &Device, bool Verbose,
6969
std::cout << Prepend << "Name : " << DeviceName << std::endl;
7070
std::cout << Prepend << "Vendor : " << DeviceVendor << std::endl;
7171
std::cout << Prepend << "Driver : " << DeviceDriverVersion << std::endl;
72+
73+
std::cout << Prepend << "Aspects :";
74+
#define __SYCL_ASPECT(ASPECT, ID) \
75+
if (Device.has(aspect::ASPECT)) \
76+
std::cout << " " << #ASPECT;
77+
#include <sycl/info/aspects.def>
78+
std::cout << std::endl;
7279
} else {
7380
std::cout << Prepend << ", " << DeviceName << " " << DeviceVersion << " ["
7481
<< DeviceDriverVersion << "]" << std::endl;

0 commit comments

Comments
 (0)