clinfo
7 years agoMake UNUSED macro function-style
Giuseppe Bilotta [Fri, 10 Feb 2017 10:09:08 +0000 (11:09 +0100)] 
Make UNUSED macro function-style

This should hopefully allow us to extend it better to other compilers.

7 years agoAlso check default devices in clCreateContextFromType
Giuseppe Bilotta [Thu, 9 Feb 2017 22:44:54 +0000 (23:44 +0100)] 
Also check default devices in clCreateContextFromType

7 years agoVersion 2.1.17.02.09 2.1.17.02.09
Giuseppe Bilotta [Thu, 9 Feb 2017 15:56:08 +0000 (16:56 +0100)] 
Version 2.1.17.02.09

7 years agoWaive copyrights via CC0
Giuseppe Bilotta [Thu, 9 Feb 2017 15:44:14 +0000 (16:44 +0100)] 
Waive copyrights via CC0

Public domain licensing isn't necessarily allowed everywhere, so waive
any copyright using the Creative Commons 0 formulation, which is the
closest thing with a parvence of formal legality.

This fixes GitHub Issue #16.

7 years agoCL_DEVICE_PRINTF_BUFFER_SIZE is a size_t
Giuseppe Bilotta [Thu, 9 Feb 2017 15:07:14 +0000 (16:07 +0100)] 
CL_DEVICE_PRINTF_BUFFER_SIZE is a size_t

So device a new printer or size_t-sized memory values. This fixes Debian
Bug #848182.

7 years agoGlobal memory cache size is a memory size
Giuseppe Bilotta [Thu, 9 Feb 2017 14:59:40 +0000 (15:59 +0100)] 
Global memory cache size is a memory size

Use the device_info_mem to report it.

This also fixes Debian Bug #848171.

7 years agoMemory suffix tuning
Giuseppe Bilotta [Thu, 9 Feb 2017 14:48:35 +0000 (15:48 +0100)] 
Memory suffix tuning

A cl_ulong can represent up to 16EiB, so let's extend the suffix table
up to that, and in fact beyond, down the YiB.

It is now technically impossible for strbuf_mem to move beyond the end
of the array (cf. Debian Bug #848177) since no memory amount that can be
represented will trigger the off-by-one, but let's fix the logic anyway.

7 years agoGET_STRING2 macro to get strings
Giuseppe Bilotta [Thu, 9 Feb 2017 14:28:30 +0000 (15:28 +0100)] 
GET_STRING2 macro to get strings

Refactor the common "get size, resize, get value" idiom for string into
a GET_STRING2 macro. This is one of the last things that weren't
converted with the property table refactoring.

7 years agoRealloc bufsz only if no error
Giuseppe Bilotta [Thu, 9 Feb 2017 13:06:59 +0000 (14:06 +0100)] 
Realloc bufsz only if no error

If the size query call didn't return CL_SUCCESS, there is no need to
resize the buffer, since we're not going to use its value anyway. Plus,
the new size might actually be completely bogus and cause issues.

This should fix Debian Bug #848169.

7 years agoThe dynamic linker is needed everywhere
Giuseppe Bilotta [Thu, 9 Feb 2017 12:06:07 +0000 (13:06 +0100)] 
The dynamic linker is needed everywhere

Link to it unconditionally.

7 years agoAdd travis control file
Giuseppe Bilotta [Fri, 20 Jun 2014 08:55:32 +0000 (10:55 +0200)] 
Add travis control file

7 years agoSupport cl_intel_planar_yuv
Giuseppe Bilotta [Fri, 20 Jan 2017 19:44:15 +0000 (20:44 +0100)] 
Support cl_intel_planar_yuv

7 years agoSupport cl_intel_device_side_avc_motion_estimation
Giuseppe Bilotta [Fri, 20 Jan 2017 19:28:57 +0000 (20:28 +0100)] 
Support cl_intel_device_side_avc_motion_estimation

7 years agoFix erroneous use of long rather than size_t for CL_DEVICE_PROFILING_TIMER_RESOLUTION...
Sam McKelvie [Tue, 1 Nov 2016 20:39:18 +0000 (13:39 -0700)] 
Fix erroneous use of long rather than size_t for CL_DEVICE_PROFILING_TIMER_RESOLUTION--breaks on 32-bit host

7 years agoUnbreak Darwin build
Giuseppe Bilotta [Thu, 27 Oct 2016 18:58:09 +0000 (20:58 +0200)] 
Unbreak Darwin build

-lOpenCL should be removed from LDLIBS on Darwin. Use a trick similar
to the one used for OS-specific inclusions to remove the unwated
include.

7 years agoRewrite build system
Giuseppe Bilotta [Tue, 25 Oct 2016 22:28:53 +0000 (00:28 +0200)] 
Rewrite build system

This should allow building on BSD systems without requiring GNU make.

7 years agoWork-group kernel: don't clobber strbuf
Giuseppe Bilotta [Wed, 5 Oct 2016 05:03:23 +0000 (07:03 +0200)] 
Work-group kernel: don't clobber strbuf

Othewise the log would appear in the work-size multiple output. Shadow
the variables instead.

Also flush stdout and stderr as appropriate.

7 years agoSupport cl_arm_shared_virtual_memory
Giuseppe Bilotta [Sat, 16 Jul 2016 17:19:01 +0000 (19:19 +0200)] 
Support cl_arm_shared_virtual_memory

7 years agoSupport cl_intel_required_subgroup_size
Giuseppe Bilotta [Sat, 16 Jul 2016 16:16:53 +0000 (18:16 +0200)] 
Support cl_intel_required_subgroup_size

7 years agoMinor whitespace
Giuseppe Bilotta [Sat, 16 Jul 2016 16:10:36 +0000 (18:10 +0200)] 
Minor whitespace

8 years agoDon't get preferred wg size multiple if compiler is not available
Giuseppe Bilotta [Sun, 22 May 2016 14:35:31 +0000 (16:35 +0200)] 
Don't get preferred wg size multiple if compiler is not available

8 years agoCleanly compile with pedantic
Giuseppe Bilotta [Fri, 22 Apr 2016 16:03:03 +0000 (18:03 +0200)] 
Cleanly compile with pedantic

8 years agoVersion 2.1.16.01.12 2.1.16.01.12
Giuseppe Bilotta [Tue, 12 Jan 2016 10:51:23 +0000 (11:51 +0100)] 
Version 2.1.16.01.12

8 years agoNo header of OCLICD properties in RAW mode
Giuseppe Bilotta [Tue, 12 Jan 2016 10:51:10 +0000 (11:51 +0100)] 
No header of OCLICD properties in RAW mode

8 years agoDon't check NULL platform behavior in RAW mode
Giuseppe Bilotta [Tue, 12 Jan 2016 09:55:52 +0000 (10:55 +0100)] 
Don't check NULL platform behavior in RAW mode

8 years agoPrefix OCL ICD loader properties in raw mode too
Giuseppe Bilotta [Tue, 12 Jan 2016 09:35:21 +0000 (10:35 +0100)] 
Prefix OCL ICD loader properties in raw mode too

When in raw mode, explicitly redefine the line prefix before showing
the OCL ICD loader properties. (Without this, we were actually
prefixing those lines with the same prefix as the last displayed
platform/device.

8 years agoFix time_offset bufcpy conversion
Giuseppe Bilotta [Mon, 11 Jan 2016 09:19:38 +0000 (10:19 +0100)] 
Fix time_offset bufcpy conversion

8 years agoVersion 2.1.16.01.06 2.1.16.01.06
Giuseppe Bilotta [Wed, 6 Jan 2016 11:07:55 +0000 (12:07 +0100)] 
Version 2.1.16.01.06

8 years agoMore aggressive sparse, also use CPPFLAGS and CFLAGS
Giuseppe Bilotta [Wed, 9 Dec 2015 21:59:00 +0000 (22:59 +0100)] 
More aggressive sparse, also use CPPFLAGS and CFLAGS

8 years agoMore separator stuff
Giuseppe Bilotta [Wed, 9 Dec 2015 21:58:31 +0000 (22:58 +0100)] 
More separator stuff

8 years agoAvoid mixing declarations and code
Giuseppe Bilotta [Wed, 9 Dec 2015 21:29:52 +0000 (22:29 +0100)] 
Avoid mixing declarations and code

8 years agoOption to run sparse via make
Giuseppe Bilotta [Wed, 9 Dec 2015 21:21:55 +0000 (22:21 +0100)] 
Option to run sparse via make

8 years agoUse NULL where appropriate
Giuseppe Bilotta [Wed, 9 Dec 2015 21:21:45 +0000 (22:21 +0100)] 
Use NULL where appropriate

8 years agoMark void functions as such
Giuseppe Bilotta [Wed, 9 Dec 2015 21:09:06 +0000 (22:09 +0100)] 
Mark void functions as such

In C, function that tak no argument should have a `void` argument list,
not an empty one.

8 years agoMore header cleanup
Giuseppe Bilotta [Wed, 9 Dec 2015 21:05:05 +0000 (22:05 +0100)] 
More header cleanup

8 years agoRefactor separators handling
Giuseppe Bilotta [Wed, 9 Dec 2015 17:38:23 +0000 (18:38 +0100)] 
Refactor separators handling

8 years agoSome header cleanup
Giuseppe Bilotta [Wed, 9 Dec 2015 17:20:02 +0000 (18:20 +0100)] 
Some header cleanup

8 years agoUse snprintf+bufcpy in device_info_time_offset
Giuseppe Bilotta [Wed, 9 Dec 2015 17:14:34 +0000 (18:14 +0100)] 
Use snprintf+bufcpy in device_info_time_offset

This should avoid warnings about use of dangerous functions such as
sprintf or strcpy.

8 years agoUse snprintf when generating platform symbolic name
Giuseppe Bilotta [Wed, 9 Dec 2015 16:57:38 +0000 (17:57 +0100)] 
Use snprintf when generating platform symbolic name

8 years agolibdl only needed on Linux
Giuseppe Bilotta [Wed, 9 Dec 2015 16:53:02 +0000 (17:53 +0100)] 
libdl only needed on Linux

8 years agoVersion 2.1.15.12.08 2.1.15.12.08
Giuseppe Bilotta [Tue, 8 Dec 2015 22:45:00 +0000 (23:45 +0100)] 
Version 2.1.15.12.08

8 years agoDocument ICD loader version detection
Giuseppe Bilotta [Tue, 8 Dec 2015 21:36:42 +0000 (22:36 +0100)] 
Document ICD loader version detection

8 years agoAudo-detect ICD loader OpenCL version support origin/version-check
Giuseppe Bilotta [Tue, 8 Dec 2015 21:31:28 +0000 (22:31 +0100)] 
Audo-detect ICD loader OpenCL version support

We test for the existence of one (new) API symbol per OpenCL version,
and if it's found we assume the ICD loader supports that OpenCL
version. Notices are output if:

* the declared OpenCL version support for the ICD loader doesn't match
  the one we found;
* the OpenCL version found is lower than the highest platform version
  found.

8 years agoIntroduce preliminary version checks
Giuseppe Bilotta [Tue, 8 Dec 2015 20:02:48 +0000 (21:02 +0100)] 
Introduce preliminary version checks

If the highest platform version is lower than the OpenCL version
supported by the ICD loader, print a warning note at the end.

Currently we only check the version supported by ICD loader only for
ocl-icd, which exposes it via an extension.

8 years agoplat_version should be a cl_uint
Giuseppe Bilotta [Tue, 8 Dec 2015 19:42:06 +0000 (20:42 +0100)] 
plat_version should be a cl_uint

8 years agoVersion 2.1.15.11.17 2.1.15.11.17
Giuseppe Bilotta [Tue, 17 Nov 2015 21:03:06 +0000 (22:03 +0100)] 
Version 2.1.15.11.17

8 years agoDocument (experimental) support for 2.1
Giuseppe Bilotta [Tue, 17 Nov 2015 21:03:02 +0000 (22:03 +0100)] 
Document (experimental) support for 2.1

8 years agoAdd support for new device properties
Giuseppe Bilotta [Tue, 17 Nov 2015 20:59:20 +0000 (21:59 +0100)] 
Add support for new device properties

8 years agoAdd support for new platform property
Giuseppe Bilotta [Tue, 17 Nov 2015 20:45:18 +0000 (21:45 +0100)] 
Add support for new platform property

This brings the platform info behavior closer to the device info
behavior, since the new property is not a string and it requires a
suffix.

Note that the actual display of the new property is untested (since I
don't have a 2.1 platform yet).

8 years agoDeclare new 2.1 platform and device info
Giuseppe Bilotta [Tue, 17 Nov 2015 20:45:06 +0000 (21:45 +0100)] 
Declare new 2.1 platform and device info

8 years agoCompile (cleanly) on GCC 4.4 too
Giuseppe Bilotta [Wed, 11 Nov 2015 10:29:00 +0000 (11:29 +0100)] 
Compile (cleanly) on GCC 4.4 too

8 years agoFix memory leak
Andrey Gursky [Wed, 28 Oct 2015 17:00:34 +0000 (18:00 +0100)] 
Fix memory leak

devs is locally dynamically allocated and must be freed.

8 years agoTypo
Giuseppe Bilotta [Mon, 21 Sep 2015 19:53:00 +0000 (21:53 +0200)] 
Typo

9 years agoVersion 2.0.15.04.28 2.0.15.04.28
Giuseppe Bilotta [Tue, 28 Apr 2015 06:40:30 +0000 (08:40 +0200)] 
Version 2.0.15.04.28

9 years agoExperimental support for a few other Intel extension
Giuseppe Bilotta [Sat, 4 Apr 2015 14:39:22 +0000 (16:39 +0200)] 
Experimental support for a few other Intel extension

9 years agoWe're using C99
Giuseppe Bilotta [Fri, 3 Apr 2015 07:06:50 +0000 (09:06 +0200)] 
We're using C99

I'm not sure we _specifically_ depend on anything C99, but let's go with
it.

9 years agoTune handing of platforms with no devices
Giuseppe Bilotta [Fri, 3 Apr 2015 07:06:41 +0000 (09:06 +0200)] 
Tune handing of platforms with no devices

9 years agoSome updates from cl_amd_device_attribute_query v3
Giuseppe Bilotta [Fri, 3 Apr 2015 07:06:06 +0000 (09:06 +0200)] 
Some updates from cl_amd_device_attribute_query v3

9 years agoCleanups by clang's static analyzer
Giuseppe Bilotta [Wed, 25 Mar 2015 16:55:28 +0000 (17:55 +0100)] 
Cleanups by clang's static analyzer

9 years agoClean build with -Wextra
Giuseppe Bilotta [Wed, 25 Mar 2015 16:38:25 +0000 (17:38 +0100)] 
Clean build with -Wextra

9 years agoMark unused parameters
Giuseppe Bilotta [Wed, 25 Mar 2015 16:38:02 +0000 (17:38 +0100)] 
Mark unused parameters

9 years agoSuppress sign-compare warnings
Giuseppe Bilotta [Wed, 25 Mar 2015 15:44:56 +0000 (16:44 +0100)] 
Suppress sign-compare warnings

9 years agoList mode: document in man and add a TODO
Giuseppe Bilotta [Wed, 25 Mar 2015 13:00:11 +0000 (14:00 +0100)] 
List mode: document in man and add a TODO

9 years agoList mode output tuning
Giuseppe Bilotta [Wed, 25 Mar 2015 12:54:49 +0000 (13:54 +0100)] 
List mode output tuning

9 years agoDifferent glyph for last device in list view
Giuseppe Bilotta [Wed, 25 Mar 2015 12:48:04 +0000 (13:48 +0100)] 
Different glyph for last device in list view

9 years agoList offline devices too in offline mode
Giuseppe Bilotta [Wed, 25 Mar 2015 12:44:00 +0000 (13:44 +0100)] 
List offline devices too in offline mode

This requires getting platform extensions too. Just take all info.

9 years agoPreliminary support for list mode
Giuseppe Bilotta [Wed, 25 Mar 2015 11:30:18 +0000 (12:30 +0100)] 
Preliminary support for list mode

Feature request, follows the idea simleb's clinfo to optionally provide
just a simple list of platforms and devices (by name), without any
properties.

9 years agoWarn about ignored command-line parameters
Giuseppe Bilotta [Wed, 25 Mar 2015 10:04:44 +0000 (11:04 +0100)] 
Warn about ignored command-line parameters

9 years agoVersion 2.0.15.03.24 2.0.15.03.24
Giuseppe Bilotta [Tue, 24 Mar 2015 09:15:45 +0000 (10:15 +0100)] 
Version 2.0.15.03.24

9 years agoTag versions
Giuseppe Bilotta [Tue, 24 Mar 2015 09:14:58 +0000 (10:14 +0100)] 
Tag versions

9 years agoMore format macro fixes for Windows
Giuseppe Bilotta [Mon, 9 Feb 2015 09:16:04 +0000 (10:16 +0100)] 
More format macro fixes for Windows

9 years agoRemove last hard-coded %zu
Giuseppe Bilotta [Sun, 8 Feb 2015 09:30:10 +0000 (10:30 +0100)] 
Remove last hard-coded %zu

Use the PRIuS macro instead, for portability.

9 years agoThe GFXIP prop from AMD is 'Graphics IP'
Giuseppe Bilotta [Wed, 19 Nov 2014 12:32:21 +0000 (13:32 +0100)] 
The GFXIP prop from AMD is 'Graphics IP'

As found out from the CodeXL manual.

9 years agoConditional non-default NULL context test
Giuseppe Bilotta [Tue, 18 Nov 2014 20:20:43 +0000 (21:20 +0100)] 
Conditional non-default NULL context test

Don't test non-default platforms if there's only one platform.

9 years agoZero inits everywhere
Giuseppe Bilotta [Tue, 18 Nov 2014 20:17:43 +0000 (21:17 +0100)] 
Zero inits everywhere

9 years agoHandle lack of platforms more gracefully
Giuseppe Bilotta [Tue, 18 Nov 2014 20:11:31 +0000 (21:11 +0100)] 
Handle lack of platforms more gracefully

9 years agoFormat fixes
Giuseppe Bilotta [Tue, 18 Nov 2014 20:05:14 +0000 (21:05 +0100)] 
Format fixes

9 years agoTwo new undocumented AMD properties
Giuseppe Bilotta [Tue, 18 Nov 2014 20:00:44 +0000 (21:00 +0100)] 
Two new undocumented AMD properties

9 years agoSome support for cl_amd_offline_devices
Giuseppe Bilotta [Mon, 17 Nov 2014 23:49:00 +0000 (00:49 +0100)] 
Some support for cl_amd_offline_devices

9 years agoTypos in man
Giuseppe Bilotta [Mon, 17 Nov 2014 21:28:45 +0000 (22:28 +0100)] 
Typos in man

9 years agoVersion 2.0.14.11.16 2.0.14.11.16
Giuseppe Bilotta [Sun, 16 Nov 2014 19:52:02 +0000 (20:52 +0100)] 
Version 2.0.14.11.16

9 years agoMan page rearrangement
Giuseppe Bilotta [Sun, 16 Nov 2014 19:51:41 +0000 (20:51 +0100)] 
Man page rearrangement

9 years agoQuery ICD loader properties if possible
Giuseppe Bilotta [Sun, 16 Nov 2014 19:51:22 +0000 (20:51 +0100)] 
Query ICD loader properties if possible

9 years agoRemove dead increments (clang-scan)
Giuseppe Bilotta [Thu, 13 Nov 2014 07:15:31 +0000 (08:15 +0100)] 
Remove dead increments (clang-scan)

9 years agoVersion 2.0.14.11.11 2.0.14.11.11
Giuseppe Bilotta [Tue, 11 Nov 2014 21:11:11 +0000 (22:11 +0100)] 
Version 2.0.14.11.11

9 years agoAdjust documentation
Giuseppe Bilotta [Tue, 11 Nov 2014 21:08:42 +0000 (22:08 +0100)] 
Adjust documentation

9 years agoTest NULL properties in clCreateContextFromType
Giuseppe Bilotta [Tue, 11 Nov 2014 21:08:34 +0000 (22:08 +0100)] 
Test NULL properties in clCreateContextFromType

9 years agoclGetPlatformInfo can also take a NULL cl_platform_id
Giuseppe Bilotta [Tue, 11 Nov 2014 16:45:23 +0000 (17:45 +0100)] 
clGetPlatformInfo can also take a NULL cl_platform_id

9 years agoVersion 2.0.14.11.10 2.0.14.11.10
Giuseppe Bilotta [Mon, 10 Nov 2014 21:37:22 +0000 (22:37 +0100)] 
Version 2.0.14.11.10

9 years agoSome cleanups
Giuseppe Bilotta [Mon, 10 Nov 2014 21:37:16 +0000 (22:37 +0100)] 
Some cleanups

9 years agoDocument NULL platform checks
Giuseppe Bilotta [Mon, 10 Nov 2014 21:25:54 +0000 (22:25 +0100)] 
Document NULL platform checks

9 years agoReport implementation behavior for NULL platform
Giuseppe Bilotta [Mon, 10 Nov 2014 21:21:43 +0000 (22:21 +0100)] 
Report implementation behavior for NULL platform

Useful to determine the default platform from clGetDeviceIDs(NULL, ...),
and the correctness of the behavior of clCreateContext(NULL, ...).

9 years agoCustom, safer, copy to strbuf
Giuseppe Bilotta [Mon, 10 Nov 2014 14:36:38 +0000 (15:36 +0100)] 
Custom, safer, copy to strbuf

This also avoids format-security warnings.

9 years agoAppend to CFLAGS, don't overwrite
Giuseppe Bilotta [Mon, 10 Nov 2014 13:42:04 +0000 (14:42 +0100)] 
Append to CFLAGS, don't overwrite

9 years agoComment fix
Giuseppe Bilotta [Mon, 10 Nov 2014 13:41:27 +0000 (14:41 +0100)] 
Comment fix

9 years agoLine prefix with platform/device in raw mode device info
Giuseppe Bilotta [Sat, 8 Nov 2014 21:41:14 +0000 (22:41 +0100)] 
Line prefix with platform/device in raw mode device info

9 years agoPurge obsolete macros
Giuseppe Bilotta [Sat, 8 Nov 2014 20:16:11 +0000 (21:16 +0100)] 
Purge obsolete macros

9 years agoRaw output tuning
Giuseppe Bilotta [Sat, 8 Nov 2014 20:14:07 +0000 (21:14 +0100)] 
Raw output tuning

9 years agoOops
Giuseppe Bilotta [Sat, 8 Nov 2014 19:50:11 +0000 (20:50 +0100)] 
Oops

9 years agoScript to update the version string
Giuseppe Bilotta [Fri, 7 Nov 2014 16:57:46 +0000 (17:57 +0100)] 
Script to update the version string