3 ms·
How would you use specific instructions yet have widths abstracted? ISPC actually has some preliminary support for targeting Nvidia PTX btw. It compiles using
by CyberDildonics 10y ago
How would you use specific instructions yet have widths abstracted?
ISPC actually has some preliminary support for targeting Nvidia PTX btw. It compiles using LLVM.
- exDM69 10y agoSee example above in this thread. In C + GCC vector extensions, I just use normal arithmetic operations (+, -, *, /). However, when using specific intrinsics they are for a specific width. It might take some "library code" to take advantage of some instructions like dot products, etc.