4 ms·
Very interesting and I can't wait to try it out. It's a pity though, based on what I understood from the website, that it's only producing binaries which can b
by KenanSulayman 7y ago
Very interesting and I can't wait to try it out.
It's a pity though, based on what I understood from the website, that it's only producing binaries which can be linked to other than actually generating C / C++ code. That would be great for LTO, but also allow for better inspection of the generated SIMD code prior to compilation to ensure that all code is compiled by the same compiler. I guess the best way to inspect the artefacts prior to assembly is via LLVM IR.
I'm pretty happy that Intel chose to implement this based on LLVM. I'd have expected this to be sitting on top of icc.
- BubRoss 7y agoISPC can actually produce C++ that is full of intrinsics. Also you can try it out already in godbolt.org - ISPC had been around for a number of years now and works very well.
- snowAbstraction 7y agoI guess this is the link https://ispc.godbolt.org/ https://ispc.godbolt.org/ ?
- KenanSulayman 7y agoThanks! For anyone interested -- after spending multiple hours playing with it I found that it can emit C++ via the following flags: `--emit-c++ --target=generic-$WIDTH` where $WIDTH is - 4 (sse4), - 16 (16 * 32 = 512 bit aligned), - 32 (32 * 32 = 1024 bit aligned), - or 64 (64 * 32 = 2048 bit aligned) Example with generic-4 on godbolt CE for the ISPC mandelbrot example program: https://ispc.godbolt.org/z/0x47SP https://ispc.godbolt.org/z/0x47SP.