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

CUDA Basic IO #347

Merged
merged 9 commits into from
May 27, 2024
Merged

CUDA Basic IO #347

merged 9 commits into from
May 27, 2024

Conversation

enricozb
Copy link
Contributor

Adds support for the PUT_TEXT, GET_TIME, and PUT_TIME IO operations.

@enricozb enricozb requested a review from VictorTaelin May 24, 2024 16:24
src/hvm.cu Outdated
// Book of Definitions
struct Book {
u32 defs_len;
Def defs_buf[0x4000]; // 256 MB
u32 ffns_len;
FFn ffns_buf[0x4000]; // 256 MB
Copy link
Member

Choose a reason for hiding this comment

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

these sizes look right. defs are larger than fns. why same size?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, good catch

src/hvm.cu Outdated
return ctr;
}

// Reads back a UTF-16 string.
Copy link
Member

Choose a reason for hiding this comment

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

strings in hvm are actually just lists of unicode codepoints, we must update that

@enricozb enricozb merged commit 39adb16 into main May 27, 2024
3 checks passed
@developedby developedby mentioned this pull request Aug 20, 2024
2 tasks
@kings177 kings177 added this to the HVM IO lib v0 milestone Aug 20, 2024
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.

3 participants