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

Function create_cuda_gpus_on

python/singa/device.py:90–100  ·  view source on GitHub ↗

Create a list of CudaGPU devices. Args: device_ids (list): a list of GPU card IDs. Returns: a list of swig converted CudaGPU devices.

(device_ids)

Source from the content-addressed store, hash-verified

88
89
90def create_cuda_gpus_on(device_ids):
91 '''Create a list of CudaGPU devices.
92
93 Args:
94 device_ids (list): a list of GPU card IDs.
95
96 Returns:
97 a list of swig converted CudaGPU devices.
98 '''
99 assert singa.USE_CUDA, 'SINGA has not been compiled with CUDA enabled.'
100 return singa.Platform.CreateCudaGPUsOn(device_ids)
101
102
103def create_cuda_gpu_on(device_id):

Callers 1

create_cuda_gpu_onFunction · 0.85

Calls 1

CreateCudaGPUsOnMethod · 0.80

Tested by

no test coverage detected