tests/testthat/_snaps/message_if_using_gpu.md

message_if_using_gpu gives the correct message for cpu or gpu use

Code
  message_if_using_gpu(cpu_only())
Code
  message_if_using_gpu(gpu_only())
Message
  NOTE: When using GPU, the random number seed may not always be respected (results may not be fully reproducible).
  For more information, see details of the `compute_options` argument in `?calculate`.
  You can turn off this message with:
  `options(greta_gpu_message = FALSE)`

message_if_using_gpu does not message when option set

Code
  message_if_using_gpu(gpu_only())

message_if_using_gpu does message when option set

Code
  message_if_using_gpu(gpu_only())
Message
  NOTE: When using GPU, the random number seed may not always be respected (results may not be fully reproducible).
  For more information, see details of the `compute_options` argument in `?calculate`.
  You can turn off this message with:
  `options(greta_gpu_message = FALSE)`

calculate provides a message when GPU is set

Code
  calc_x <- calculate(x, nsim = 1, compute_options = gpu_only())
Message
  NOTE: When using GPU, the random number seed may not always be respected (results may not be fully reproducible).
  For more information, see details of the `compute_options` argument in `?calculate`.
  You can turn off this message with:
  `options(greta_gpu_message = FALSE)`
Code
  calc_x <- calculate(x, nsim = 1, compute_options = cpu_only())

calculate/mcmc does not message when option set

Code
  calc_x <- calculate(x, nsim = 1, compute_options = gpu_only())
Code
  mcmc_m <- mcmc(model = m, n_samples = 1, warmup = 0, compute_options = gpu_only(),
  verbose = FALSE)

calculate/mcmc does message when option set

Code
  calc_x <- calculate(x, nsim = 1, compute_options = gpu_only())
Message
  NOTE: When using GPU, the random number seed may not always be respected (results may not be fully reproducible).
  For more information, see details of the `compute_options` argument in `?calculate`.
  You can turn off this message with:
  `options(greta_gpu_message = FALSE)`
Code
  mcmc_m <- mcmc(model = m, n_samples = 1, warmup = 0, compute_options = gpu_only(),
  verbose = FALSE)
Message
  NOTE: When using GPU, the random number seed may not always be respected (results may not be fully reproducible).
  For more information, see details of the `compute_options` argument in `?calculate`.
  You can turn off this message with:
  `options(greta_gpu_message = FALSE)`

mcmc provides a message when GPU is set

Code
  mcmc_gpu <- mcmc(model = m, n_samples = 1, warmup = 0, compute_options = gpu_only(),
  verbose = FALSE)
Message
  NOTE: When using GPU, the random number seed may not always be respected (results may not be fully reproducible).
  For more information, see details of the `compute_options` argument in `?calculate`.
  You can turn off this message with:
  `options(greta_gpu_message = FALSE)`
Code
  mcmc_cpu <- mcmc(model = m, n_samples = 1, warmup = 0, compute_options = cpu_only(),
  verbose = FALSE)


greta-dev/greta documentation built on Dec. 21, 2024, 5:03 a.m.