Skip to content

Commit

Permalink
rebuild and cleanup vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
Determan authored and Determan committed Oct 19, 2017
1 parent 1fcfb3d commit 77053aa
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 226 deletions.
9 changes: 9 additions & 0 deletions inst/doc/custom_ocl_gpuR.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ opts_chunk$set(
concordance=TRUE
)

## ----kernel_example, eval = FALSE----------------------------------------
# "__kernel void SAXPY(__global float* x, __global float* y, float a)
# {
# const int i = get_global_id(0);
#
# y [i] += a * x [i];
# }
# "

## ----cl_setup, eval=FALSE------------------------------------------------
# cl_args <- setup_opencl(objects = c("vclVector", "vclVector", "scalar"),
# intents = c("IN", "OUT", "IN"),
Expand Down
10 changes: 6 additions & 4 deletions inst/doc/custom_ocl_gpuR.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,16 @@ Essentially, these files contain routines/functions that are compiled for use
on different devices (e.g. CPU, GPU, FPGA, etc.). One example is the SAXPY
function

```{kernel_example}
__kernel void SAXPY(__global float* x, __global float* y, float a)

<<kernel_example, eval = FALSE>>=
"__kernel void SAXPY(__global float* x, __global float* y, float a)
{
const int i = get_global_id (0);
const int i = get_global_id(0);
y [i] += a * x [i];
}
```
"
@

The exact definitions and specifications of OpenCL kernels is beyond the scope
of this vignette and the interested user is recommended to consult additional
Expand Down
Binary file modified inst/doc/custom_ocl_gpuR.pdf
Binary file not shown.
Binary file modified inst/doc/gpuR.pdf
Binary file not shown.
35 changes: 0 additions & 35 deletions vignettes/custom_ocl_gpuR.R

This file was deleted.

3 changes: 2 additions & 1 deletion vignettes/custom_ocl_gpuR.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ function


<<kernel_example, eval = FALSE>>=
__kernel void SAXPY(__global float* x, __global float* y, float a)
"__kernel void SAXPY(__global float* x, __global float* y, float a)
{
const int i = get_global_id(0);
y [i] += a * x [i];
}
"
@

The exact definitions and specifications of OpenCL kernels is beyond the scope
Expand Down
Binary file removed vignettes/custom_ocl_gpuR.pdf
Binary file not shown.
186 changes: 0 additions & 186 deletions vignettes/custom_ocl_gpuR.tex

This file was deleted.

0 comments on commit 77053aa

Please sign in to comment.