Skip to content

Commit 9bb9d61

Browse files
committed
Documentation update to match changes on PR (#64)
Signed-off-by: Flavio Bergamaschi <flavio@intel.com>
1 parent 78e89e0 commit 9bb9d61

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

kerngen/README.md

+5-9
Original file line numberDiff line numberDiff line change
@@ -104,29 +104,25 @@ All other commands are assumed to be operations. All operations are case
104104
insensitive, but the convention we use is the operations are capitalized. These
105105
are defined in the [manifest.json](./pisa_generators/manifest.json) file.
106106
```
107-
CONTEXT BGV 8192 4
107+
CONTEXT BGV 8192 4 3
108108
DATA a 2
109109
DATA b 2
110110
DATA c 2
111111
ADD c a b
112112
```
113113

114114
## CONTEXT
115-
Context defines the global properties `(scheme, poly_order, max_rns,
116-
key_rns(optional))` of the input script.
115+
Context defines the global properties `(scheme, poly_ordering_dimensionr, max_rns,
116+
current_rns)` of the input script.
117117
`CONTEXT` sets a global context for properties required by the kernels.
118118
- first field defines what we call scheme. In reality, it specifies the set of
119119
kernel instructions given in the manifest file, see
120120
[manifest.json](./pisa_generators/manifest.json).
121121
- second field defines the polynomial size for the `DATA`. This is required by
122122
the generating kernels to define how many units (multiples of the native polynomial
123123
size, 8192 in HERACLES silicon case) are required and handled.
124-
- third field defines the max RNS, the global max number of how many 32 bit prime number moduli
125-
(HERACLES silicon case) are in the modulus chain that the kernels can have or need to handle.
126-
- (optional) fourth field defines the key RNS, the number of additional moduli
127-
that the relinearization key has relative to the third field. i.e. If `max_rns`
128-
is 3 and `key_rns` is 1 the total max RNS of the relinearization key will be 4.
129-
Note this field is only required for calling the `relin` kernel.
124+
- third field defines the key RNS, i.e. the total max RNS of the relinearization key, typically the global max number of how many 32 bit prime number moduli (HERACLES silicon case) are in the modulus chain that the kernels can have or need to handle + 1.
125+
- fourth field defines the number of RNS terms in the current polynomial.
130126

131127
## DATA
132128
`DATA` defines polynomial symbols to be used and their attribute(s) (`num_parts`) where

0 commit comments

Comments
 (0)