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

Function get_num_opencl_devices

python/singa/device.py:49–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48
49def get_num_opencl_devices():
50 assert singa.USE_OPENCL, 'SINGA has not been compiled with OpenCL enabled.'
51 return singa.Platform.GetNumOpenclDevices()
52
53
54def device_query(id, verbose=False):

Callers

nothing calls this directly

Calls 1

GetNumOpenclDevicesMethod · 0.80

Tested by

no test coverage detected