MCPcopy Create free account
hub / github.com/apache/arrow / Init

Method Init

cpp/src/arrow/gpu/cuda_context.cc:528–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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));

Callers

nothing calls this directly

Calls 3

resizeMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected