Skip to content

Commit

Permalink
binaries for OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
foges committed Jun 4, 2015
1 parent 65a1d4f commit c831635
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/interface_r/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
In R execute:
```
> setwd("<path-to-pogs-root>/src/interface_r/")
> install.packages("pogs_1.0.tar.gz", repos = NULL, type="source")
```
For the GPU version replace the second line with
```
> install.packages("pogs_1.0_gpu.tar.gz", repos = NULL, type="source")
> install.packages("pogs_1.0XXX.tgz", repos = NULL, type="source")
```
where `XXX` is one of the following
- (empty) -- This package should work on any system, but needs compiling.
- `_gpu` -- This package requires nvcc installed and `$CUDA_HOME` to be set.
- `_osx` -- This is pre-compiled binary, but will only work on OSX.
- `_gpu_osx` -- This is pre-compiled binary, but will only work if you're on OS X
and have a CUDA enabled GPU.

Hint: Use `getwd()` to get the current directory.

#### To build from scratch
Expand All @@ -17,6 +20,7 @@ Hint: Use `getwd()` to get the current directory.
`TARGET=[cpu/gpu]`, to target the respective platform.
Also update `CUDA_HOME` if necessary.
3. In your terminal, navigate to `$ cd <path-to-pogs-root>/src/interface_r`
and execute `R CMD build pogs`.
and execute `R CMD build --binary pogs` (or `R CMD build pogs` for
a non-compiled package).
4. Install as specified above.

File renamed without changes.
File renamed without changes.
Binary file added src/interface_r/pogs_1.0_gpu_osx.tgz
Binary file not shown.
Binary file added src/interface_r/pogs_1.0_osx.tgz
Binary file not shown.

0 comments on commit c831635

Please sign in to comment.