Loading TOC...

cntk:gpu

cntk:gpu(
   $device-id as xs:unsigned
) as cntk:device

Summary

Returns the GPU device based on provided CUDA device ID. If provided with an invalid or non-existent device ID, an exception is thrown.

Parameters
$device-id The CUDA device ID. Normally "0" represents the first GPU, "1" the second, and so on.

Example

  cntk:gpu(0)
  => cntk:device(Device Kind Name(GPU), ID(0), Properties(Quadro K2000))

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.