Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions samples/00_enumopencl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ static cl_int PrintPlatformInfoSummary(
CL_PLATFORM_VERSION,
platformVersion );

printf("\tName: %s\n", platformName );
printf("\tVendor: %s\n", platformVendor );
printf("\tDriver Version: %s\n", platformVersion );
printf("\tName: %s\n", platformName );
printf("\tVendor: %s\n", platformVendor );
printf("\tPlatform Version: %s\n", platformVersion );

delete [] platformName;
delete [] platformVendor;
Expand Down
6 changes: 3 additions & 3 deletions samples/00_enumopenclpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
static cl_int PrintPlatformInfoSummary(
cl::Platform platform )
{
printf("\tName: %s\n", platform.getInfo<CL_PLATFORM_NAME>().c_str() );
printf("\tVendor: %s\n", platform.getInfo<CL_PLATFORM_VENDOR>().c_str() );
printf("\tDriver Version: %s\n", platform.getInfo<CL_PLATFORM_VERSION>().c_str() );
printf("\tName: %s\n", platform.getInfo<CL_PLATFORM_NAME>().c_str() );
printf("\tVendor: %s\n", platform.getInfo<CL_PLATFORM_VENDOR>().c_str() );
printf("\tPlatform Version: %s\n", platform.getInfo<CL_PLATFORM_VERSION>().c_str() );

return CL_SUCCESS;
}
Expand Down
6 changes: 3 additions & 3 deletions samples/00_enumqueuefamilies/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ static void PrintQueueCapabilities(
static void PrintPlatformInfoSummary(
cl::Platform platform )
{
printf("\tName: %s\n", platform.getInfo<CL_PLATFORM_NAME>().c_str() );
printf("\tVendor: %s\n", platform.getInfo<CL_PLATFORM_VENDOR>().c_str() );
printf("\tDriver Version: %s\n", platform.getInfo<CL_PLATFORM_VERSION>().c_str() );
printf("\tName: %s\n", platform.getInfo<CL_PLATFORM_NAME>().c_str() );
printf("\tVendor: %s\n", platform.getInfo<CL_PLATFORM_VENDOR>().c_str() );
printf("\tPlatform Version: %s\n", platform.getInfo<CL_PLATFORM_VERSION>().c_str() );
}

static void PrintDeviceInfoSummary(
Expand Down
6 changes: 3 additions & 3 deletions samples/00_extendeddevicequeries/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ static void PrintDeviceFeatureCapabilities(
static void PrintPlatformInfoSummary(
cl::Platform platform )
{
printf("\tName: %s\n", platform.getInfo<CL_PLATFORM_NAME>().c_str() );
printf("\tVendor: %s\n", platform.getInfo<CL_PLATFORM_VENDOR>().c_str() );
printf("\tDriver Version: %s\n", platform.getInfo<CL_PLATFORM_VERSION>().c_str() );
printf("\tName: %s\n", platform.getInfo<CL_PLATFORM_NAME>().c_str() );
printf("\tVendor: %s\n", platform.getInfo<CL_PLATFORM_VENDOR>().c_str() );
printf("\tPlatform Version: %s\n", platform.getInfo<CL_PLATFORM_VERSION>().c_str() );
}

static void PrintDeviceInfoSummary(
Expand Down
6 changes: 3 additions & 3 deletions samples/00_newqueries/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ static void PrintPlatformInfoSummary(
CL_PLATFORM_VERSION,
platformVersion );

printf("\tName: %s\n", platformName );
printf("\tVendor: %s\n", platformVendor );
printf("\tDriver Version: %s\n", platformVersion );
printf("\tName: %s\n", platformName );
printf("\tVendor: %s\n", platformVendor );
printf("\tPlatform Version: %s\n", platformVersion );

// Use the query for the platform numeric version as a test for
// OpenCL 3.0 support. If this query fails then this probably
Expand Down
6 changes: 3 additions & 3 deletions samples/00_newqueriespp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
static void PrintPlatformInfoSummary(
cl::Platform platform )
{
printf("\tName: %s\n", platform.getInfo<CL_PLATFORM_NAME>().c_str() );
printf("\tVendor: %s\n", platform.getInfo<CL_PLATFORM_VENDOR>().c_str() );
printf("\tDriver Version: %s\n", platform.getInfo<CL_PLATFORM_VERSION>().c_str() );
printf("\tName: %s\n", platform.getInfo<CL_PLATFORM_NAME>().c_str() );
printf("\tVendor: %s\n", platform.getInfo<CL_PLATFORM_VENDOR>().c_str() );
printf("\tPlatform Version: %s\n", platform.getInfo<CL_PLATFORM_VERSION>().c_str() );

// Use the query for the platform numeric version as a test for
// OpenCL 3.0 support. If this query fails then this probably
Expand Down
6 changes: 3 additions & 3 deletions samples/00_spirvqueries/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ int main(
const cl::Platform& platform = platforms[p];

printf("Platform[%zu]:\n", p);
printf("\tName: %s\n", platform.getInfo<CL_PLATFORM_NAME>().c_str() );
printf("\tVendor: %s\n", platform.getInfo<CL_PLATFORM_VENDOR>().c_str() );
printf("\tDriver Version: %s\n", platform.getInfo<CL_PLATFORM_VERSION>().c_str() );
printf("\tName: %s\n", platform.getInfo<CL_PLATFORM_NAME>().c_str() );
printf("\tVendor: %s\n", platform.getInfo<CL_PLATFORM_VENDOR>().c_str() );
printf("\tPlatform Version: %s\n", platform.getInfo<CL_PLATFORM_VERSION>().c_str() );

std::vector<cl::Device> devices;
platform.getDevices(CL_DEVICE_TYPE_ALL, &devices);
Expand Down
6 changes: 3 additions & 3 deletions samples/python/00_enumopencl/enumopencl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
"source": [
"for p, platform in enumerate(cl.get_platforms()):\n",
" print(\"Platform[{}]:\".format(p))\n",
" print(\" Name: \" + platform.get_info(cl.platform_info.NAME))\n",
" print(\" Vendor: \" + platform.get_info(cl.platform_info.VENDOR))\n",
" print(\" Driver Version: \" + platform.get_info(cl.platform_info.VERSION))\n",
" print(\" Name: \" + platform.get_info(cl.platform_info.NAME))\n",
" print(\" Vendor: \" + platform.get_info(cl.platform_info.VENDOR))\n",
" print(\" Platform Version: \" + platform.get_info(cl.platform_info.VERSION))\n",
" for d, device in enumerate(platform.get_devices()):\n",
" print(\"Device[{}]:\".format(d))\n",
" print(\" Type: \" + cl.device_type.to_string(device.get_info(cl.device_info.TYPE)))\n",
Expand Down
6 changes: 3 additions & 3 deletions samples/python/00_enumopencl/enumopencl.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

for p, platform in enumerate(cl.get_platforms()):
print("Platform[{}]:".format(p))
print(" Name: " + platform.get_info(cl.platform_info.NAME))
print(" Vendor: " + platform.get_info(cl.platform_info.VENDOR))
print(" Driver Version: " + platform.get_info(cl.platform_info.VERSION))
print(" Name: " + platform.get_info(cl.platform_info.NAME))
print(" Vendor: " + platform.get_info(cl.platform_info.VENDOR))
print(" Platform Version: " + platform.get_info(cl.platform_info.VERSION))
for d, device in enumerate(platform.get_devices()):
print("Device[{}]:".format(d))
print(" Type: " + cl.device_type.to_string(device.get_info(cl.device_info.TYPE)))
Expand Down