Skip to content

Commit 5e4dfb9

Browse files
authored
Change the argument type to cl_platform_info.
Although both `cl_platform_info` and `cl_device_info` are defined as macro `cl_uint`, it needs to use `cl_platform_info` to get the platform information.
1 parent 47ae5f1 commit 5e4dfb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/src/ocl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5528,7 +5528,7 @@ struct PlatformInfo::Impl
55285528
getDevices(devices, handle);
55295529
}
55305530

5531-
String getStrProp(cl_device_info prop) const
5531+
String getStrProp(cl_platform_info prop) const
55325532
{
55335533
char buf[1024];
55345534
size_t sz=0;

0 commit comments

Comments
 (0)