-
-
Notifications
You must be signed in to change notification settings - Fork 330
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
Share objectives between nodes #2754
base: main
Are you sure you want to change the base?
Conversation
Do tell me if I have overlooked anything. Also, is this okay as a compile-time option? |
yeah |
Does LibAFL have a preferred way to tackle conditional trait bounds based on compile-time features? I am having to add optional trait bounds by dividing implementations based on features, and is causing massive code duplication |
The implementation of |
@tokatoka is this issue fixed? Should I stop working on this issue? |
no i closed because you have this PR |
I suggest we leave issues open until they are actually fixed in |
Any idea why |
Seems like the |
Should I try implementing this in some other way? |
@tokatoka I am having to declare the method |
Hey @BAGUVIX456 , sorry I was in holidays before and I am just back today.
this is okay.
but you don't have to. |
If you are ready change this to "Ready for review" You'll see merge conflict, but I'll merge for you, tell me when you need to merge |
I'm assuming the failing CIs are not an issue? Do tell me if I have to fix them before merging |
you can ignore them now. |
yeah i have deduplicated the code already, you can go ahead |
@@ -472,6 +472,9 @@ pub fn run_observers_and_save_state<E, EM, OF, Z>( | |||
.fire( | |||
state, | |||
Event::Objective { | |||
#[cfg(feature = "share_objectives")] | |||
input: input.clone(), |
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.
do you need clone()?
@@ -469,6 +469,12 @@ where | |||
} | |||
} | |||
} | |||
|
|||
#[cfg(feature = "share_objectives")] |
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.
here put the same code as you did in llmp/mod.rs
@@ -645,8 +645,17 @@ where | |||
} | |||
|
|||
#[cfg(feature = "share_objectives")] |
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.
Can we add a runtime flag instead of compile time? Overhead should be minimal and it's easier to use IMHO
fixes issue #1917