MCPcopy Create free account
hub / github.com/apache/singa / create_opencl_device

Function create_opencl_device

python/singa/device.py:117–124  ·  view source on GitHub ↗

Create the default OpenCL device. Returns: a swig converted OpenCL device.

()

Source from the content-addressed store, hash-verified

115
116
117def create_opencl_device():
118 '''Create the default OpenCL device.
119
120 Returns:
121 a swig converted OpenCL device.
122 '''
123 assert singa.USE_OPENCL, 'SINGA has not been compiled with OpenCL enabled.'
124 return singa.Platform.GetDefaultOpenclDevice()
125
126
127default_device = singa.Platform.GetDefaultDevice()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected