Searched refs:devid (Results 1 – 4 of 4) sorted by relevance
| /petsc/src/sys/objects/device/interface/ |
| H A D | dcontext.cxx | 863 PetscInt devid; in PetscDeviceContextGetNullContextForDevice_Private() local 881 PetscCall(PetscDeviceGetDeviceId(device, &devid)); in PetscDeviceContextGetNullContextForDevice_Private() 886 …PetscCheck(devid >= 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Device ID (%" PetscInt_FMT ") must be pos… in PetscDeviceContextGetNullContextForDevice_Private() 890 if (static_cast<std::size_t>(devid) >= ctxlist.size()) PetscCallCXX(ctxlist.resize(devid + 1)); in PetscDeviceContextGetNullContextForDevice_Private() 891 if (PetscUnlikely(!ctxlist[devid])) { in PetscDeviceContextGetNullContextForDevice_Private() 894 … PetscDeviceContext (of type %s) for device %" PetscInt_FMT "\n", PetscDeviceTypes[dtype], devid)); in PetscDeviceContextGetNullContextForDevice_Private() 897 const auto name = "null context " + std::to_string(devid); in PetscDeviceContextGetNullContextForDevice_Private() 898 const auto prefix = "null_context_" + std::to_string(devid) + '_'; in PetscDeviceContextGetNullContextForDevice_Private() 907 PetscCallCXX(ctxlist.insert(std::next(ctxlist.begin(), devid), *dctx)); in PetscDeviceContextGetNullContextForDevice_Private() 908 } else *dctx = ctxlist[devid]; in PetscDeviceContextGetNullContextForDevice_Private()
|
| H A D | device.cxx | 102 PetscErrorCode PetscDeviceCreate(PetscDeviceType type, PetscInt devid, PetscDevice *device) in PetscDeviceCreate() argument 120 PETSC_DEVICE_CASE_IF_PETSC_DEFINED(HOST, getDevice, *device, devid); in PetscDeviceCreate() 121 PETSC_DEVICE_CASE_IF_PETSC_DEFINED(CUDA, getDevice, *device, devid); in PetscDeviceCreate() 122 PETSC_DEVICE_CASE_IF_PETSC_DEFINED(HIP, getDevice, *device, devid); in PetscDeviceCreate() 123 PETSC_DEVICE_CASE_IF_PETSC_DEFINED(SYCL, getDevice, *device, devid); in PetscDeviceCreate() 126 (void)devid; in PetscDeviceCreate()
|
| /petsc/src/sys/objects/device/c/ |
| H A D | device.c | 6 PetscErrorCode PetscDeviceCreate(PETSC_UNUSED PetscDeviceType type, PETSC_UNUSED PetscInt devid, Pe… in PetscDeviceCreate() argument
|
| /petsc/doc/changes/ |
| H A D | 317.md | 47 - Change `PetscDeviceCreate()` to also accept a `PetscInt devid`, to create a `PetscDevice` for a s…
|