Learn R Programming

greta (version 0.6.0)

gpu_cpu: Set GPU or CPU usage

Description

These functions set the use of CPU or GPU inside of greta. They simply return either "GPU" or "CPU", but in the future may handle more complexity. These functions are passed to compute_options inside of a few functions: mcmc(), opt(), and calculate().

Usage

gpu_only()

cpu_only()

Arguments

Value

A single character string, "GPU" or "CPU".

Examples

Run this code
gpu_only()
cpu_only()

Run the code above in your browser using DataLab