Skip to content
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

Add a hybrid example related to threads #94

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

0152la
Copy link
Contributor

@0152la 0152la commented Apr 9, 2024

Check whether we can set DDCs for spawned threads individually, and independent from the main program thread.

@0152la 0152la requested a review from ltratt April 9, 2024 13:41
for (size_t i = 0; i < pow(10, 6); ++i)
{
};
curr_t_info->ddc_out = read_ddc();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add an assert(curr_t_info->ddc_out == curr_t_info->addr_in) or similar here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 66126d7. Also added a check to ensure the DDC is changed.

@ltratt
Copy link
Collaborator

ltratt commented Apr 10, 2024

Please squash.

@0152la
Copy link
Contributor Author

0152la commented Apr 10, 2024

Squashed.

@ltratt ltratt added this pull request to the merge queue Apr 10, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 10, 2024
@0152la
Copy link
Contributor Author

0152la commented Apr 10, 2024

I've made a bit of an ugly fix in 42f7b6c, but I think a proper fix would involve a bit too much infrastructure changing (at least I can't think of any other more straightforward one to only add the libraries we need to the new test).

@ltratt
Copy link
Collaborator

ltratt commented Apr 10, 2024

I think this is perfectly fine for this repo. Please squash.

@0152la
Copy link
Contributor Author

0152la commented Apr 10, 2024

Squashed.

@ltratt ltratt added this pull request to the merge queue Apr 10, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 10, 2024
@0152la
Copy link
Contributor Author

0152la commented Apr 11, 2024

Is it fine to force-push to get the changes from #95 ?

@ltratt
Copy link
Collaborator

ltratt commented Apr 11, 2024

Please force push a rebase.

Check whether we can set DDCs for spawned threads individually, and
independent from the main program thread.
@0152la
Copy link
Contributor Author

0152la commented Apr 11, 2024

Rebased in e962618 (also fixed -lpthreads to -lpthread in the makefile).

@ltratt ltratt added this pull request to the merge queue Apr 11, 2024
Merged via the queue into capablevms:master with commit 1190908 Apr 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants