Learn R Programming

gpuR (version 2.0.6)

assert_has_double: Does device have 'double' support?

Description

Function to query if device (identified by index) supports double precision

Usage

assert_has_double(
  device_idx,
  context_idx,
  severity = getOption("assertive.severity", "stop")
)

Value

Returns nothing but throws an error if device does not support double precision

Arguments

device_idx

An integer indicating which device to query

context_idx

An integer indicating which context to query

severity

How severe should the consequences of the assertion be?

Author

Charles Determan Jr.

See Also

deviceHasDouble