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

Function create_cuda_gpus

python/singa/device.py:68–77  ·  view source on GitHub ↗

Create a list of CudaGPU devices. Args: num (int): number of device to create. Returns: a list of swig converted CudaGPU devices.

(num)

Source from the content-addressed store, hash-verified

66
67
68def create_cuda_gpus(num):
69 '''Create a list of CudaGPU devices.
70
71 Args:
72 num (int): number of device to create.
73 Returns:
74 a list of swig converted CudaGPU devices.
75 '''
76 assert singa.USE_CUDA, 'SINGA has not been compiled with CUDA enabled.'
77 return singa.Platform.CreateCudaGPUs(num)
78
79
80def create_cuda_gpu():

Callers

nothing calls this directly

Calls 1

CreateCudaGPUsMethod · 0.80

Tested by

no test coverage detected