Closed markreidvfx closed 3 months ago
Adds a very simple utility that prints out the cpu features detected by OCIO.
name : Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz vendor : GenuineIntel hasSSE2 : 1 SSE2Slow : 0 hasSSE3 : 1 SSE3Slow : 0 hasSSSE3 : 1 SSSE3Slow : 0 hasSSE4 : 1 hasSSE42 : 1 hasAVX : 1 AVXSlow : 0 hasAVX2 : 1 AVX2SlowGather : 0 hasAVX512 : 0 hasF16C : 1
This mimics the output of the program shared in #1935 and here. implements #1937
It is with all the other ocio apps, wasn't sure if this was the best place to put it. I could see being with the test apps too.
I also took the time to simplify the CPUInfo header. There isn't really a need to special case aarch64. We can remove some duplicate code.
Yes, please hold off. I will add the executable to the wheel like remi suggested.
Thanks @markreidvfx, tested on the macOS wheel and it seem to work just fine.
Adds a very simple utility that prints out the cpu features detected by OCIO.
This mimics the output of the program shared in #1935 and here. implements #1937
It is with all the other ocio apps, wasn't sure if this was the best place to put it. I could see being with the test apps too.
I also took the time to simplify the CPUInfo header. There isn't really a need to special case aarch64. We can remove some duplicate code.