cpuComputeDeviceStandingInForGpu function

CpuDevice cpuComputeDeviceStandingInForGpu()

A cpuComputeDevice standing in for a GPU — since 1.0.0-rc.1, in place of CpuDevice(standInForGpu: true) and cpuComputeDevice(standInForGpu: true).

It answers isSoftware false, so the hardware layer places a workload with host code of its own on it as on a GPU, rather than leaving it to that host code: how a simulation's kernels are checked against its own CPU step without a GPU. Configured by the test, never asked for by the work.

Implementation

CpuDevice cpuComputeDeviceStandingInForGpu() =>
    device.standInForGpu(cpuComputeDevice());