Re:Py-Videocore: Python Library for GPGPU on Raspberry Pi
by belleandsebasti on Sunday December 27, 2015 @05:05PM
(#10798926)
No. Inline assembly is a static construct targeting the same compute unit as the C code during compile-time.
What is needed is "runtime inline assembly" which assembles inline assembly for a different target architecture at runtime.
This is essentially what shader programs are and you don't need special syntax to support it. Just store your shader program in a char* and bundle an assembler/compiler with your host program.
What is needed is "runtime inline assembly" which assembles inline assembly for a different target architecture at runtime.
This is essentially what shader programs are and you don't need special syntax to support it. Just store your shader program in a char* and bundle an assembler/compiler with your host program.