-
Notifications
You must be signed in to change notification settings - Fork 410
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
CUDA Basic IO #347
Conversation
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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
Adds support for the
PUT_TEXT
,GET_TIME
, andPUT_TIME
IO operations.