| has_cuda | R Documentation |
Queries whether matrixprofiler was compiled with NVIDIA CUDA GPU acceleration
(MATRIXPROFILER_ENABLE_CUDA=1).
has_cuda()
By default, matrixprofiler is compiled without CUDA to maintain portability and
compliance with CRAN policies, running all algorithms on multi-threaded CPU engines
powered by RcppThread.
If an NVIDIA GPU and the CUDA Toolkit are available on the host system, the package
can be recompiled with CUDA acceleration for supported algorithms (such as rfcp
and mpx) using the helper script inst/cuda/build_cuda_rcpp.sh
or by setting the environment variables:
MATRIXPROFILER_ENABLE_CUDA=1
MATRIXPROFILER_CUDA_OBJECT pointing to precompiled CUDA object files (.o)
MATRIXPROFILER_CUDA_LIBS pointing to the CUDA runtime library (e.g. -lcudart)
When has_cuda() returns FALSE, attempting to execute an algorithm with
backend = "cuda" will stop with an informative error instructing how to enable CUDA.
A logical value: TRUE if CUDA support was enabled at compile time, FALSE otherwise.
has_cuda()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.