Pass kernel return alongside attributes writeback #552

Merged
sb10q merged 4 commits from occheung/nac3:kern-return into master 2024-11-16 12:04:05 +08:00
Member

This PR detects the return type of the kernel, and passes the return value back to the host as the first argument of the attributes writeback RPC after completion. The main module and attributes_writeback modules are generated as one to pass the return value between them.

The embedding map is informed by setting the has_return flag during compilation.

Passes ARTIQ test_annotation test after adjusting service 0 handling in ARTIQ.

Closes #101

This PR detects the return type of the kernel, and passes the return value back to the host as the first argument of the attributes writeback RPC after completion. The `main` module and `attributes_writeback` modules are generated as one to pass the return value between them. The embedding map is informed by setting the `has_return` flag during compilation. Passes ARTIQ `test_annotation` test after adjusting service 0 handling in ARTIQ. Closes #101
occheung added 4 commits 2024-11-12 12:14:03 +08:00
sb10q merged commit b53266e9e6 into master 2024-11-16 12:04:05 +08:00
Owner

after adjusting service 0 handling in ARTIQ.

Can you send a PR for that?
Is it forward/backward compatible?

> after adjusting service 0 handling in ARTIQ. Can you send a PR for that? Is it forward/backward compatible?
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#552
No description provided.