|
cudaError_t cudaDeviceGetByPCIBusId |
( |
int * |
device, |
|
|
char * |
pciBusId | |
|
) |
| | |
Returns in *device a device ordinal given a PCI bus ID string.
- Parameters:
-
| device | - Returned device ordinal |
| pciBusId | - String in one of the following forms: [domain]:[bus]:[device].[function] [domain]:[bus]:[device] [bus]:[device].[function] where domain , bus , device , and function are all hexadecimal values |
- Returns:
- cudaSuccess cudaErrorInvalidValue, cudaErrorInvalidDevice
- Note:
- Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cudaDeviceGetPCIBusId
|