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

Readback results from HVM into Rust through interop #389

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Conversation

edusporto
Copy link
Contributor

@edusporto edusporto commented Jun 13, 2024

This allows the resulting nets to be read back directly from Rust, without requiring each implementation to print it's networks in error-prone ways.

TODO: The CUDA version is still quite slow due to copying the entire GNet into the host from the device. The way to fix it is to compact the global network's memory and only copy the relevant portion before copying it into RAM.

The result of the net reduction was appearing before the IO action writes to stdin.

This is because the C implementation wasn't flushing it's `stdin` and `stderr` while the Rust one was.
Some tests are returning a segmentation fault.
Still have to investigate.
Problem: cudaMemcpy from device to host taking too long,
we could try compacting the memory
@edusporto edusporto marked this pull request as draft June 13, 2024 12:18
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.

1 participant