Create the default OpenCL device. Returns: a swig converted OpenCL device.
()
| 115 | |
| 116 | |
| 117 | def 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 | |
| 127 | default_device = singa.Platform.GetDefaultDevice() |
nothing calls this directly
no test coverage detected