Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuanming-hu/cpp-host-metal
Test if we can use Metal runtime in C++
https://github.com/yuanming-hu/cpp-host-metal
Last synced: 1 day ago
JSON representation
Test if we can use Metal runtime in C++
- Host: GitHub
- URL: https://github.com/yuanming-hu/cpp-host-metal
- Owner: yuanming-hu
- License: mit
- Created: 2020-02-01T16:31:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-21T12:57:37.000Z (almost 5 years ago)
- Last Synced: 2024-11-09T06:41:35.889Z (about 2 months ago)
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C++ Hosted Metal
## Progress
* `newBufferWithBytesNoCopy:length:options:deallocator:` working!
* Pass the memory allocated by `mmap()`.
* **Both `ptr` and `length`** must be aligned to the page size. `ptr`'s alignment is guaranteed by `mmap()`, but not `length`. So we have to manually round up `length` to page size.
* The Metal compute pipeline works in C++ via objc-runtime.
* Each line in the Metal compute kernel must be separated by `\n`.