[pull] develop from lynx-family:develop#53
Merged
pull[bot] merged 3 commits intoMu-L:developfrom Apr 7, 2025
Merged
Conversation
…iple executions of computation when writing multiple signals.
```
let scope = null;
let count = 0;
let value = "world";
let signal_0 = __CreateSignal("thoughts");
let signal_1 = __CreateSignal("thoughts");
const fn = (pre) => {
count = count + 1;
let str_0 = __ReadSignal(signal_0);
let str_1 = __ReadSignal(signal_1);
value = `impure ${str_0} ${str_1}`
return value;
};
__CreateScope((s)=>{
scope = s;
__CreateComputation(fn, "init", false);
});
__WriteSignal(signal_0, "lynx0");
__WriteSignal(signal_1, "lynx1");
```
Taking the above code as an example, when __RunUpdates is not used, the computation will execute twice, leading to a waste of performance. Therefore, we will expose __RunUpdates through PAPI to address the performance issue in such scenarios.
```
let scope = null;
let count = 0;
let value = "world";
let signal_0 = __CreateSignal("thoughts");
let signal_1 = __CreateSignal("thoughts");
const fn = (pre) => {
count = count + 1;
let str_0 = __ReadSignal(signal_0);
let str_1 = __ReadSignal(signal_1);
value = `impure ${str_0} ${str_1}`
return value;
};
__CreateScope((s)=>{
scope = s;
__CreateComputation(fn, "init", false);
})
__RunUpdates(()=>{
__WriteSignal(signal_0, "lynx0");
__WriteSignal(signal_1, "lynx1");
});
```
issue:m-5727244025
AutoSubmit:True
AutoLand:release/3.2,release/3.1
- Format all define.json with an indentation of 2 Spaces. - Format all Python files with yapf. (follow the google guide) - Try using fastjsonschema instead of jsonschema to validate define.json. issue: f-13947983 AutoSubmit: True
…oid build `stat -f "%m"` works for macos, but `-f` option is not the same meaning in linux. When linux build, all timestamp generated by this command may be undefined. So use `date -r $file +%s` instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )