Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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++

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`.