sequence_gpu_preference

Function sequence_gpu_preference 

Source
pub fn sequence_gpu_preference(
    len: usize,
    intent: SequenceIntent,
    explicit_gpu_input: bool,
) -> ResidencyDecision
Expand description

Decide whether a sequence of len elements for the supplied intent should prefer GPU residency.

explicit_gpu_input should be true when any of the arguments already reside on the GPU (for example, gpuArray.linspace(...)).