PageRenderTime 57ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/TMB/man/compile.Rd

https://github.com/arnima-github/adcomp
Unknown | 36 lines | 29 code | 7 blank | 0 comment | 0 complexity | 2c3bcb1e71a001ec256495b0108a8bdb MD5 | raw file
Possible License(s): CPL-1.0
  1. % Generated by roxygen2 (4.0.1): do not edit by hand
  2. \name{compile}
  3. \alias{compile}
  4. \title{Compile a c++ template to DLL suitable for MakeADFun.}
  5. \usage{
  6. compile(file, flags = "", safebounds = TRUE, safeunload = TRUE,
  7. openmp = isParallelTemplate(file), libtmb = TRUE, ...)
  8. }
  9. \arguments{
  10. \item{file}{c++ file.}
  11. \item{flags}{Character with compile flags.}
  12. \item{safebounds}{Turn on preprocessor flag for bound checking?}
  13. \item{safeunload}{Turn on preprocessor flag for safe DLL unloading?}
  14. \item{openmp}{Turn on openmp flag? Auto detected for parallel templates.}
  15. \item{libtmb}{Use precompiled TMB library if available (to speed up compilation)?}
  16. \item{...}{Passed as Makeconf variables.}
  17. }
  18. \description{
  19. Compile a c++ template into a shared object file. OpenMP flag is set if the template is detected to be parallel.
  20. }
  21. \details{
  22. TMB relies on R's built in functionality to create shared libraries independent on the platform.
  23. A template is compiled by \code{compile("template.cpp")}, which will call R's makefile with appropriate
  24. preprocessor flags.
  25. Compiler and compiler flags can be stored in a configuration file. In order of precedence either via
  26. the file pointed at by R_MAKEVARS_USER or the file ~/.R/Makevars if it exists.
  27. Additional configuration variables can be set with \code{...} argument, which will overwrite any
  28. previous selections.
  29. }