| 526 | Impl() : host_bytes_allocated_(0) {} |
| 527 | |
| 528 | Status Init() { |
| 529 | CU_RETURN_NOT_OK("cuInit", cuInit(0)); |
| 530 | CU_RETURN_NOT_OK("cuDeviceGetCount", cuDeviceGetCount(&num_devices_)); |
| 531 | |
| 532 | devices_.resize(num_devices_); |
| 533 | for (int i = 0; i < num_devices_; ++i) { |
| 534 | ARROW_ASSIGN_OR_RAISE(devices_[i], MakeDevice(i)); |
| 535 | } |
| 536 | return Status::OK(); |
| 537 | } |
| 538 | |
| 539 | Status AllocateHost(int device_number, int64_t nbytes, uint8_t** out) { |
| 540 | RETURN_NOT_OK(CheckDeviceNum(device_number)); |
nothing calls this directly
no test coverage detected