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

Function get_num_opencl_platforms

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

Source from the content-addressed store, hash-verified

42
43
44def get_num_opencl_platforms():
45 assert singa.USE_OPENCL, 'SINGA has not been compiled with OpenCL enabled.'
46 return singa.Platform.GetNumOpenclPlatforms()
47
48
49def get_num_opencl_devices():

Callers

nothing calls this directly

Calls 1

GetNumOpenclPlatformsMethod · 0.80

Tested by

no test coverage detected