-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NTT Evaulation #962
base: master
Are you sure you want to change the base?
NTT Evaulation #962
Conversation
sequencer
commented
Jan 26, 2025
- [eval] add build
- [eval] add eval.ntt*
Co-Authored-By: Lucas-Wye <[email protected]>
@Avimitin Please add CI to run all evaluation cases under |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should do some thing like this:
- For
ntt_*_main.c
it should detect theVLEN
at runtime and delegate to different algorithm. - For
static const int arr[xxx]
and its layers, a script should be added to generate those these vector(maybe fromref.ws
?) rather than hardcode. - Neither do I like
gen_data.py
, it should also be rewritten intows
for simplicity. - How does
twiddle
get calculated? Fromgen_vector_ntt_tw.py
? I think this python should be rewrite into ws as a function, and codegen corresponding headers.
Please clarify the build stage flows:
- Put all user inputs(maybe
arr
?) into acsv
orjson
file. - At the compile time, a
ws
should read thecsv
and generatedata
andtwiddle
, the output should be store asjson
andcsv
- A codegen python/Scala should read output from
ws
and generate a corresponding C header file. - The test entry should include the C header file and execute to get the result.
Some random thing I can think about:
- How do software programmer toggle performance counters though C-API?
- What's the SW engineer API for benchmark? I think we may need a generic post-evaluation flow for the benchmark.
9997, 6362, 7134, 11711, 5849, 9491, 5972, 4164, 5894, 11069, 7697, | ||
8319, 2077, 12086, 10239, 5394, 4898, 1370, 1205, 2997, 5274, | ||
4625, 11983, 1789, 3645, 7666, 12128, 10883, 7376, 8883, 2321, | ||
1889, 2026, 8059, 2741, 865, 1785, 9955, 2395, 9330, 11465, 7383, | ||
9649, 11285, 3647, 578, 1158, 9936, 12019, 11114, 7894, 4832, | ||
10148, 10363, 11388, 9122, 10758, 2642, 4171, 10586, 1194, 5280, | ||
3055, 9220 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: How to choose these numbers? Is this configurable?
tests/eval/_ntt/ntt_512_main.c
Outdated
// for (int i = 0; i < n; i++) { | ||
// printf("%d", dst[i]); | ||
// if ((i + 1) % 8 == 0) { | ||
// printf("\n"); | ||
// } else { | ||
// printf(" "); | ||
// } | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't include comment here, you can add #IFDEF DEBUG
macro for these codes.