Lines Matching +full:- +full:std

11 #include <cstring> // for std::strlen
49 …ode PetscOptionDeviceAll(MPI_Comm, std::pair<PetscDeviceInitType, PetscBool> &, std::pair<PetscInt…
53 …ptionDeviceBasic(PetscOptionItems, std::pair<PetscDeviceInitType, PetscBool> &, std::pair<PetscInt…
56 // - A simple form returning only the value and flag. This gives no control over the message,
58 // - A complex form, which allows you to pass most of the options query arguments *EXCEPT*
59 // - The options query function called
60 // - The option string
97 PetscCall(this->underlying().init_device_id_(&id)); in getDevice()
98 device->deviceId = id; in getDevice()
99 device->ops->createcontext = this->underlying().create_; in getDevice()
100 device->ops->configure = this->underlying().configureDevice; in getDevice()
101 device->ops->view = this->underlying().viewDevice; in getDevice()
102 device->ops->getattribute = this->underlying().getAttribute; in getDevice()
126 PetscCall(derived_type::get_attribute_(device->deviceId, attr, value)); in getAttribute()
136 auto buf = std::array<char, 128>{}; in PetscOptionDevice()
137 constexpr auto buflen = buf.size() - 1; in PetscOptionDevice()
141 const auto len = std::strlen(optstub) + std::strlen(implname); in PetscOptionDevice()
143 …PetscCheck(len < buflen, PetscOptionsObject->comm, PETSC_ERR_PLIB, "char buffer is not large enoug… in PetscOptionDevice()
146 PetscCall(OptionsFunction(PetscOptionsObject, buf.data(), std::forward<T>(args)...)); in PetscOptionDevice()
155 …PetscCall(PetscOptionDevice(PetscOptionsEList_Private, PetscOptionsObject, "-device_enable_", std:… in PetscOptionDeviceInitialize()
175 …PetscCall(PetscOptionDevice(PetscOptionsInt_Private, PetscOptionsObject, "-device_select_", std::f… in PetscOptionDeviceSelect()
183 …PetscStringize(PETSC_DECIDE) " to have PETSc decide or (given they exist) [0-" PetscStringize(PETS… in PetscOptionDeviceSelect()
192 …PetscCall(PetscOptionDevice(PetscOptionsBool_Private, PetscOptionsObject, "-device_view_", std::fo… in PetscOptionDeviceView()
205 …onItems PetscOptionsObject, std::pair<PetscDeviceInitType, PetscBool> &initType, std::pair<PetscIn… in PetscOptionDeviceBasic()
215 …ionDeviceAll(MPI_Comm comm, std::pair<PetscDeviceInitType, PetscBool> &initType, std::pair<PetscIn… in PetscOptionDeviceAll()
220 auto buf = std::array<char, 128>{}; in PetscOptionDeviceAll()
221 constexpr auto buflen = buf.size() - 1; // -1 to leave room for null in PetscOptionDeviceAll()
225 // -3 since '%s' is replaced and dont count null char for optname in PetscOptionDeviceAll()
226 const auto len = std::strlen(implname) + PETSC_STATIC_ARRAY_LENGTH(optname) - 3; in PetscOptionDeviceAll()