src/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
9 / 9
100.0%
Branches:
-
-%
Functions:
1 / 1
100.0%

framework/pytorch/op_torch.cc
Line Branch Exec Source
1 // Single registration translation unit for the recstore_ops library.
2 //
3 // Each op family exposes a Register*Ops(torch::Library&) helper from its own
4 // translation unit; this file only wires them into TORCH_LIBRARY so the
5 // registration block stays in one place without becoming the merge point for
6 // every new op. Op families:
7 // base - basic read/write, PS configuration, table and checkpoint ops
8 // flat - local_shm flat fast-path lookup/update
9 // prefetch - asynchronous prefetch ops
10 // cache - GPU cache primitives and BagPipe metadata adapters
11 // commit - sparse gradient commit adapter
12 // profile - profile and warmup queries
13
14 #include <torch/extension.h>
15
16 #include "framework/pytorch/cache/cache_bindings.h"
17 #include "framework/pytorch/op_sparse_gradient_commit.h"
18 #include "framework/pytorch/op_base.h"
19 #include "framework/pytorch/op_flat.h"
20 #include "framework/pytorch/op_prefetch.h"
21 #include "framework/pytorch/op_profile.h"
22
23 namespace recstore {
24 namespace framework {
25 void RegisterBagpipeMetadataOps(torch::Library& m);
26
27 16 TORCH_LIBRARY(recstore_ops, m) {
28 16 RegisterBaseOps(m);
29 16 RegisterFlatOps(m);
30 16 RegisterPrefetchOps(m);
31 16 RegisterGpuCacheOps(m);
32 16 RegisterSparseGradientCommitOps(m);
33 16 RegisterBagpipeMetadataOps(m);
34 16 RegisterProfileOps(m);
35 16 }
36
37 } // namespace framework
38 } // namespace recstore
39