-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support for benchmarks #822
base: master
Are you sure you want to change the base?
Conversation
Allow specification of guest heap and stack sizes on the command line in more convenient units than just raw bytes.
This avoids spam like the following going on for thousands of lines: ``` INFO e2e: Running on platform Ceno Platform { rom: 536870912..538373056, prog_data: {536870912, [...] ```
This cuts down on logging spam.
…hias/sproll-proof
self.public_io, | ||
self.hints, | ||
self.unsafe_ecall_nop | ||
"Platform {{ rom: {:#x?}, prog_data: {prog_data}, stack: {:#x?}, heap: {:x?}, public_io: {:#x?}, hints: {:#x?}, unsafe_ecall_nop: {} }}", |
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.
Hex is easier to read here (because we use round numbers, only when expressed in powers of 2), and it's also how we specify these numbers in our linker script etc.
@@ -45,6 +45,7 @@ pub struct EmulationResult { | |||
pi: PublicValues<u32>, | |||
} | |||
|
|||
// TODO(Matthias): handle hints properly. |
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.
This is something to fix soon. But I don't know enough at the moment.
It's definitely broken in master
, though.
Extracted from #809 because we need the non-controversial parts for other benchmarks. That is anything but
pub const MAX_NUM_VARIABLES: usize = 27;