Giter Club home page Giter Club logo

clinfo's Introduction

clinfo

query OpenCL platform and device parameters

Build

clinfo is made from a single C source file. To build:

make

To install:

make install

To uninstall:

make uninstall

You can change the installation prefix by setting prefix and bindir. The default location is /usr/local/bin. If you would rather install in your home directory ($(HOME)/bin), you can do:

make install prefix=$(HOME)

Run

Just type: clinfo

clinfo displays the OpenCL platform and device parameters in a human readable form.

By default, clinfo only displays a few basic parameters. You can print them all with -a (or --all). You can also query specific parameters by listing them as arguments. For instance use clinfo CL_DEVICE_TYPE to query the device type of each device for each platform.

You can restrict the output to a single platform and even to a single device. For instance use clinfo 0:1 to restrict the output to device #1 of platform #0. To find out what is the number of a platform or a device, you can use -l (or --list).

The following options are available:

  • -a or --all : Display all parameters.
  • -h or --help: Display a short help notice.
  • -l or --list: List platforms and devices.
  • -r or --raw : Raw output (by default the values are pretty-printed).

License

The source for clinfo is released under the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

clinfo's People

Contributors

simleb avatar szagoruyko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.