|
|
|
|
|
by chubot
1540 days ago
|
|
BTW I believe memory maps are set up by the ioctl() system call on Unix (including OS X), which is kind of a "catch all" hole poked through the kernel. Not sure about Windows. I didn't understand that for a long time ... I would like to see a "hello world GPU" example. I think you open() the device and the ioctl() it ... But what happens when things go wrong? Similar to this "Hello JIT", where it shows you have to call mmap() to change permissions on the memory to execute dynamically generated code. https://blog.reverberate.org/2012/12/hello-jit-world-joy-of-... I guess one problem is that this may be typically done in vendor code and they don't necessarily commit to an interface? They make you link their huge SDK |
|