pytc.solver.xtc_ccsd._TiledBlockSpec¶
- class pytc.solver.xtc_ccsd._TiledBlockSpec(name, ranges_fn, panel_layout, trim_fn, df_fn, write_fn)[source]¶
Bases:
objectDescribes one ERI block built tile-by-tile via the multi-GPU pipeline.
All per-block logic (index ranges, padding trim, DF contribution, output accumulation) lives here so
_run_tiled_block_pipelinecontains only the device-dispatch boilerplate.- Parameters:
name (str) – Human-readable block name used in log messages.
ranges_fn (callable (i0, i1) -> tuple[slice, ...]) – Returns the four MO-index slices for tile
[i0:i1].panel_layout (str) –
"pr"or"qr"— which axes are JIT-padded topanel_size.trim_fn (callable (tc_raw, i_len) -> ndarray) – Strips XTC padding to the actual tile shape.
df_fn (callable (i0, i1) -> ndarray or None) – CPU DF contribution for the tile (same shape as trimmed XTC result). Pass
Noneto skip the DF addition.write_fn (callable (i0, i1, tile) -> None) – Accumulates / writes the finished tile. Called under
acc_lock.
Methods
__delattr__Implement delattr(self, name).
__dir__Default dir() implementation.
__eq__Return self==value.
__format__Default object formatter.
__ge__Return self>=value.
__getattribute__Return getattr(self, name).
__getstate__Helper for pickle.
__gt__Return self>value.
__hash__Return hash(self).
__init____init_subclass__This method is called when a class is subclassed.
__le__Return self<=value.
__lt__Return self<value.
__ne__Return self!=value.
__new____reduce__Helper for pickle.
__reduce_ex__Helper for pickle.
__repr__Return repr(self).
__setattr__Implement setattr(self, name, value).
__sizeof__Size of object in memory, in bytes.
__str__Return str(self).
__subclasshook__Abstract classes can override this to customize issubclass().
Attributes
- name¶
- ranges_fn¶
- panel_layout¶
- trim_fn¶
- df_fn¶
- write_fn¶