newBufferWithBytesNoCopy:length:options:deallocator:working!- Pass the memory allocated by
mmap(). - Both
ptrandlengthmust be aligned to the page size.ptr's alignment is guaranteed bymmap(), but notlength. So we have to manually round uplengthto page size.
- Pass the memory allocated by
- The Metal compute pipeline works in C++ via objc-runtime.
- Each line in the Metal compute kernel must be separated by
\n.
- Each line in the Metal compute kernel must be separated by
-
Notifications
You must be signed in to change notification settings - Fork 0
Test if we can use Metal runtime in C++
License
yuanming-hu/cpp-host-metal
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Test if we can use Metal runtime in C++
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published