Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
camel-cdr
76 days ago
|
parent
|
context
|
favorite
| on:
C++26 Shipped a SIMD Library Nobody Asked For
In GPUs GLSL like types compile down to what basically is variable length SIMD. A vec4 doesn't get compiled to a SIMD vector with four floats, but rather to four SIMD vectors, each containing N FP32 elements (usually 32 or 64).
Look at what this simple shader compiles down to on RGA:
https://godbolt.org/z/4GrfY61vf
whizzter
76 days ago
[–]
Right, and AVX512 would thus be more relevant if ISPC-like features was mainstreamed in CPU bound C++ compilers.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Look at what this simple shader compiles down to on RGA: https://godbolt.org/z/4GrfY61vf