Lines Matching refs:id
42 PETSC_NODISCARD auto id() const -> decltype(id_) { return id_; } in id() function in Petsc::device::cupm::Device::DeviceInternal
63 if (cupmSetDevice(id()) != cupmErrorDeviceAlreadyInUse) PetscCallCUPM(cupmGetLastError()); in initialize()
96 …d(), PETSC_COMM_SELF, PETSC_ERR_COR, "Device %d being configured before it was initialized", id()); in configure()
114 …_COMM_SELF, PETSC_ERR_COR, "Device %d being viewed before it was initialized or configured", id()); in view()
157 PetscAssert(initialized(), PETSC_COMM_SELF, PETSC_ERR_COR, "Device %d was not initialized", id()); in getattribute()
313 const auto id = *inid == PETSC_DECIDE ? defaultDevice_ : (int)*inid; in init_device_id_() local
319 …id) < devices_.size(), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Only supports %zu number of dev… in init_device_id_()
321 if (!devices_[id]) devices_[id] = util::make_unique<DeviceInternal>(id); in init_device_id_()
322 …etscAssert(id == devices_[id]->id(), PETSC_COMM_SELF, PETSC_ERR_PLIB, "Entry %d contains device wi… in init_device_id_()
323 PetscCall(devices_[id]->initialize()); in init_device_id_()
324 *inid = id; in init_device_id_()
348 PetscErrorCode Device<T>::get_attribute_(PetscInt id, PetscDeviceAttribute attr, void *value) noexc… in get_attribute_() argument
351 PetscCall(devices_[id]->getattribute(attr, value)); in get_attribute_()