File tree Expand file tree Collapse file tree 9 files changed +27
-27
lines changed
Expand file tree Collapse file tree 9 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,9 @@ static cl_int PrintPlatformInfoSummary(
9090 CL_PLATFORM_VERSION,
9191 platformVersion );
9292
93- printf (" \t Name: %s\n " , platformName );
94- printf (" \t Vendor: %s\n " , platformVendor );
95- printf (" \t Driver Version: %s\n " , platformVersion );
93+ printf (" \t Name: %s\n " , platformName );
94+ printf (" \t Vendor: %s\n " , platformVendor );
95+ printf (" \t Platform Version: %s\n " , platformVersion );
9696
9797 delete [] platformName;
9898 delete [] platformVendor;
Original file line number Diff line number Diff line change 1313static cl_int PrintPlatformInfoSummary (
1414 cl::Platform platform )
1515{
16- printf (" \t Name: %s\n " , platform.getInfo <CL_PLATFORM_NAME>().c_str () );
17- printf (" \t Vendor: %s\n " , platform.getInfo <CL_PLATFORM_VENDOR>().c_str () );
18- printf (" \t Driver Version: %s\n " , platform.getInfo <CL_PLATFORM_VERSION>().c_str () );
16+ printf (" \t Name: %s\n " , platform.getInfo <CL_PLATFORM_NAME>().c_str () );
17+ printf (" \t Vendor: %s\n " , platform.getInfo <CL_PLATFORM_VENDOR>().c_str () );
18+ printf (" \t Platform Version: %s\n " , platform.getInfo <CL_PLATFORM_VERSION>().c_str () );
1919
2020 return CL_SUCCESS;
2121}
Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ static void PrintQueueCapabilities(
6666static void PrintPlatformInfoSummary (
6767 cl::Platform platform )
6868{
69- printf (" \t Name: %s\n " , platform.getInfo <CL_PLATFORM_NAME>().c_str () );
70- printf (" \t Vendor: %s\n " , platform.getInfo <CL_PLATFORM_VENDOR>().c_str () );
71- printf (" \t Driver Version: %s\n " , platform.getInfo <CL_PLATFORM_VERSION>().c_str () );
69+ printf (" \t Name: %s\n " , platform.getInfo <CL_PLATFORM_NAME>().c_str () );
70+ printf (" \t Vendor: %s\n " , platform.getInfo <CL_PLATFORM_VENDOR>().c_str () );
71+ printf (" \t Platform Version: %s\n " , platform.getInfo <CL_PLATFORM_VERSION>().c_str () );
7272}
7373
7474static void PrintDeviceInfoSummary (
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ static void PrintDeviceFeatureCapabilities(
3838static void PrintPlatformInfoSummary (
3939 cl::Platform platform )
4040{
41- printf (" \t Name: %s\n " , platform.getInfo <CL_PLATFORM_NAME>().c_str () );
42- printf (" \t Vendor: %s\n " , platform.getInfo <CL_PLATFORM_VENDOR>().c_str () );
43- printf (" \t Driver Version: %s\n " , platform.getInfo <CL_PLATFORM_VERSION>().c_str () );
41+ printf (" \t Name: %s\n " , platform.getInfo <CL_PLATFORM_NAME>().c_str () );
42+ printf (" \t Vendor: %s\n " , platform.getInfo <CL_PLATFORM_VENDOR>().c_str () );
43+ printf (" \t Platform Version: %s\n " , platform.getInfo <CL_PLATFORM_VERSION>().c_str () );
4444}
4545
4646static void PrintDeviceInfoSummary (
Original file line number Diff line number Diff line change @@ -93,9 +93,9 @@ static void PrintPlatformInfoSummary(
9393 CL_PLATFORM_VERSION,
9494 platformVersion );
9595
96- printf (" \t Name: %s\n " , platformName );
97- printf (" \t Vendor: %s\n " , platformVendor );
98- printf (" \t Driver Version: %s\n " , platformVersion );
96+ printf (" \t Name: %s\n " , platformName );
97+ printf (" \t Vendor: %s\n " , platformVendor );
98+ printf (" \t Platform Version: %s\n " , platformVersion );
9999
100100 // Use the query for the platform numeric version as a test for
101101 // OpenCL 3.0 support. If this query fails then this probably
Original file line number Diff line number Diff line change 1515static void PrintPlatformInfoSummary (
1616 cl::Platform platform )
1717{
18- printf (" \t Name: %s\n " , platform.getInfo <CL_PLATFORM_NAME>().c_str () );
19- printf (" \t Vendor: %s\n " , platform.getInfo <CL_PLATFORM_VENDOR>().c_str () );
20- printf (" \t Driver Version: %s\n " , platform.getInfo <CL_PLATFORM_VERSION>().c_str () );
18+ printf (" \t Name: %s\n " , platform.getInfo <CL_PLATFORM_NAME>().c_str () );
19+ printf (" \t Vendor: %s\n " , platform.getInfo <CL_PLATFORM_VENDOR>().c_str () );
20+ printf (" \t Platform Version: %s\n " , platform.getInfo <CL_PLATFORM_VERSION>().c_str () );
2121
2222 // Use the query for the platform numeric version as a test for
2323 // OpenCL 3.0 support. If this query fails then this probably
Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ int main(
5656 const cl::Platform& platform = platforms[p];
5757
5858 printf (" Platform[%zu]:\n " , p);
59- printf (" \t Name: %s\n " , platform.getInfo <CL_PLATFORM_NAME>().c_str () );
60- printf (" \t Vendor: %s\n " , platform.getInfo <CL_PLATFORM_VENDOR>().c_str () );
61- printf (" \t Driver Version: %s\n " , platform.getInfo <CL_PLATFORM_VERSION>().c_str () );
59+ printf (" \t Name: %s\n " , platform.getInfo <CL_PLATFORM_NAME>().c_str () );
60+ printf (" \t Vendor: %s\n " , platform.getInfo <CL_PLATFORM_VENDOR>().c_str () );
61+ printf (" \t Platform Version: %s\n " , platform.getInfo <CL_PLATFORM_VERSION>().c_str () );
6262
6363 std::vector<cl::Device> devices;
6464 platform.getDevices (CL_DEVICE_TYPE_ALL, &devices);
Original file line number Diff line number Diff line change 6969 "source" : [
7070 " for p, platform in enumerate(cl.get_platforms()):\n " ,
7171 " print(\" Platform[{}]:\" .format(p))\n " ,
72- " print(\" Name: \" + platform.get_info(cl.platform_info.NAME))\n " ,
73- " print(\" Vendor: \" + platform.get_info(cl.platform_info.VENDOR))\n " ,
74- " print(\" Driver Version: \" + platform.get_info(cl.platform_info.VERSION))\n " ,
72+ " print(\" Name: \" + platform.get_info(cl.platform_info.NAME))\n " ,
73+ " print(\" Vendor: \" + platform.get_info(cl.platform_info.VENDOR))\n " ,
74+ " print(\" Platform Version: \" + platform.get_info(cl.platform_info.VERSION))\n " ,
7575 " for d, device in enumerate(platform.get_devices()):\n " ,
7676 " print(\" Device[{}]:\" .format(d))\n " ,
7777 " print(\" Type: \" + cl.device_type.to_string(device.get_info(cl.device_info.TYPE)))\n " ,
Original file line number Diff line number Diff line change 88
99for p , platform in enumerate (cl .get_platforms ()):
1010 print ("Platform[{}]:" .format (p ))
11- print (" Name: " + platform .get_info (cl .platform_info .NAME ))
12- print (" Vendor: " + platform .get_info (cl .platform_info .VENDOR ))
13- print (" Driver Version: " + platform .get_info (cl .platform_info .VERSION ))
11+ print (" Name: " + platform .get_info (cl .platform_info .NAME ))
12+ print (" Vendor: " + platform .get_info (cl .platform_info .VENDOR ))
13+ print (" Platform Version: " + platform .get_info (cl .platform_info .VERSION ))
1414 for d , device in enumerate (platform .get_devices ()):
1515 print ("Device[{}]:" .format (d ))
1616 print (" Type: " + cl .device_type .to_string (device .get_info (cl .device_info .TYPE )))
You can’t perform that action at this time.
0 commit comments