---
name: "oclgrind-kernel"
section: "1"
platform: "linux"
package: "oclgrind"
version: "21.10-3"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/oclgrind-kernel"
---

# oclgrind-kernel(1)

standalone kernel interface

## NAME

oclgrind-kernel - standalone kernel interface

## SYNOPSIS

**oclgrind-kernel** \[*OPTIONS*\] *simfile*

## DESCRIPTION

-

  oclgrind-kernel \[--help \| **--version\]**

## OPTIONS

- **--build-options**

  OPTIONS  Additional options to pass to the OpenCL compiler

- **--compute-units**

  UNITS    Change the number of compute units reported

- **--constant-mem-size** BYTES

  Change the constant memory size of the device

- **--data-races**

  Enable data-race detection

- **--disable-pch**

  Don't use precompiled headers

- **--dump-spir**

  Dump SPIR to /tmp/oclgrind\_\*.{ll,bc}

- **--global-mem** \[-g\]

  Output global memory at exit

- **--global-mem-size**

  BYTES    Change the global memory size of the device

- **--help** \[-h\]

  Display usage information

- **--inst-counts**

  Output histograms of instructions executed

- **--interactive** \[-i\]

  Enable interactive mode

- **--local-mem-size**

  BYTES    Change the local memory size of the device

- **--log**

  LOGFILE  Redirect log/error messages to a file

- **--max-errors**

  NUM      Limit the number of error/warning messages

- **--max-wgsize**

  WGSIZE   Change the maximum work-group size of the device

- **--num-threads**

  NUM      Set the number of worker threads to use

- **--pch-dir**

  DIR      Override directory containing precompiled headers

- **--plugins**

  PLUGINS  Load colon separated list of plugin libraries

- **--quick** \[-q\]

  Only run first and last work-group

- **--uniform-writes**

  Don't suppress uniform write-write data-races

- **--uninitialized**

  Report usage of uninitialized values

- **--version** \[-q\]

  Display version information

For more information, please visit the Oclgrind wiki page: -\> https://github.com/jrprice/Oclgrind/wiki

Oclgrind 21.10

## COPYRIGHT

Copyright © 2013-2019 James Price and Simon McIntosh-Smith, University of Bristol https://github.com/jrprice/Oclgrind

## SEE ALSO

The full documentation for **oclgrind-kernel** is maintained as a Texinfo manual.  If the **info** and **oclgrind-kernel** programs are properly installed at your site, the command

-

  **info oclgrind-kernel**

should give you access to the complete manual.
