diffeqgpu_setup | R Documentation |
This function initializes the DiffEqGPU package for GPU-parallelized ensembles. The first time will be long since it includes precompilation.
diffeqgpu_setup(backend)
backend |
the backend for the GPU computation. Choices are "CUDA", "AMDGPU", "Metal", or "oneAPI" |
Returns a degpu object which holds the module state of the Julia-side DiffEqGPU package. The core use is to use degpu$EnsembleGPUKernel() for choosing the GPU dispatch in the solve.
## Not run: ## diffeqgpu_setup() is time-consuming and requires Julia+DifferentialEquations.jl
degpu <- diffeqr::diffeqgpu_setup(backend)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.