-
Notifications
You must be signed in to change notification settings - Fork 37
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
Parameterize MtlArray storage mode #194
Conversation
MtlArray
storage moded683bd7
to
e340d65
Compare
Looks good, thanks!
Which ObjC type did you want to parameterize? |
I have addressed your review comments. I'll be adding documentation over the weekend.
I was thinking MTLbuffer. Would there be any benefits to doing so? |
89b1986
to
7efbb6c
Compare
I don't think so, at least not currently. |
7efbb6c
to
5e4aff5
Compare
I added documentation similar to what CUDA.jl has except that I mention the |
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.
LGTM. Anything else you want to do here, since you hadn't marked the PR ready for review?
Fix fill method Fix typo
I forgot to mark it ready for review. Should be good to merge if you deem it so! |
My initial attempt at #190.
Only touches MtlArray because I could not figure out how to parameterize Obj-C objects. If it's possible, let me know and I'll parameterize MTLBuffer.
Will add docs once the code is reviewed.
To change:
MtlArray
constructors in array.jlzeros
,ones
,fill
in array.jl to use new interfacerand
,randn
in random.jl to use new interface