Skip to content

Commit

Permalink
update doc for kernel store
Browse files Browse the repository at this point in the history
  • Loading branch information
hughperkins committed May 3, 2015
1 parent 81e3bee commit a5cd701
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,20 @@ a different kernel, or you can use operator[] to read values from it.
Currently, CLArray is available as 'CLArrayFloat' and 'CLArrayInt'.
# Kernel store
You can store kernels in the store, under a unique name each, to facilitate kernel caching
```c++
// store:
cl->storeKernel( "mykernelname", somekernel ); // name must be not used yet
// check exists:
cl->kernelExists( "mykernelname" );
// retrieve:
CLKernel *kernel = cl->getKernel( "mykernelname" );
```

## How to build

### Building on linux
Expand Down

0 comments on commit a5cd701

Please sign in to comment.