Reports whether solveODEBatch() solves the conditions of a model in
parallel. Without a batch entry point or OpenMP it runs a serial loop and
gives no warning.
Value
List with symbol (the batch entry resolved), openmp (cppDE was
built with OpenMP), modelOpenmp (this model's shared object was), and
parallel (all three). Two further fallbacks are decided at run time and
are not visible here: inside a forked child, and inside an enclosing
OpenMP region.
Examples
# \donttest{
if (codegenAvailable()) {
f <- cppODE(c(x = "-k*x"), deriv = FALSE)
batchAvailable(f)
}
#> using C++ compiler: g++ [-O2 -DNDEBUG -w -fPIC -fopenmp]
#> $symbol
#> [1] TRUE
#>
#> $openmp
#> [1] TRUE
#>
#> $modelOpenmp
#> [1] TRUE
#>
#> $parallel
#> [1] TRUE
#>
# }