@ -23,6 +23,7 @@
DEALINGS IN THE SOFTWARE .
*/
# include <Corrade/Cpu.h>
# include <Corrade/Utility/Arguments.h>
# include "Magnum/Vk/DeviceFeatures.h"
@ -87,9 +88,11 @@ Compilation flags:
CORRADE_TARGET_X86
CORRADE_TARGET_GCC
CORRADE_TARGET_LIBSTDCXX
CORRADE_TARGET_SSE2 , SSE3 , SSSE3 , SSE41 , SSE42
CORRADE_TARGET_AVX , AVX_F16C , AVX_FMA , AVX2
MAGNUM_BUILD_DEPRECATED
Compiled CPU features :
Sse2 | Sse3 | Ssse3 | Sse41 | Sse42
Detected CPU features :
Sse2 | Sse3 | Ssse3 | Sse41 | Sse42 | Avx | Avx2 | Popcnt | Lzcnt | Bmi1 | AvxF16c | AvxFma
Reported instance version : Vulkan 1.2 .203
Reported instance layers :
@ -231,55 +234,6 @@ int main(int argc, char** argv) {
# ifdef CORRADE_TARGET_DINKUMWARE
Debug { } < < " CORRADE_TARGET_DINKUMWARE " ;
# endif
# ifdef CORRADE_TARGET_SSE2
{
Debug d ;
d < < " CORRADE_TARGET_SSE2 " ;
# ifdef CORRADE_TARGET_SSE3
d < < Debug : : nospace < < " ,SSE3 " ;
# endif
# ifdef CORRADE_TARGET_SSSE3
d < < Debug : : nospace < < " ,SSSE3 " ;
# endif
# ifdef CORRADE_TARGET_SSE41
d < < Debug : : nospace < < " ,SSE41 " ;
# endif
# ifdef CORRADE_TARGET_SSE42
d < < Debug : : nospace < < " ,SSE42 " ;
# endif
}
# endif
# ifdef CORRADE_TARGET_AVX
{
Debug d ;
d < < " CORRADE_TARGET_AVX " ;
# ifdef CORRADE_TARGET_AVX_F16C
d < < Debug : : nospace < < " ,AVX_F16C " ;
# endif
# ifdef CORRADE_TARGET_AVX_FMA
d < < Debug : : nospace < < " ,AVX_FMA " ;
# endif
# ifdef CORRADE_TARGET_AVX2
d < < Debug : : nospace < < " ,AVX2 " ;
# endif
# ifdef CORRADE_TARGET_AVX512F
d < < Debug : : nospace < < " ,AVX512F " ;
# endif
}
# endif
# ifdef CORRADE_TARGET_NEON
{
Debug d ;
d < < " CORRADE_TARGET_NEON " ;
# ifdef CORRADE_TARGET_NEON_FP16
d < < Debug : : nospace < < " ,NEON_FP16 " ;
# endif
# ifdef CORRADE_TARGET_NEON_FMA
d < < Debug : : nospace < < " ,NEON_FMA " ;
# endif
}
# endif
/* CORRADE_TARGET_SIMD128 omitted */
# ifdef CORRADE_PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT
Debug { } < < " CORRADE_PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT " ;
# endif
@ -295,6 +249,12 @@ int main(int argc, char** argv) {
# ifdef MAGNUM_BUILD_STATIC
Debug { } < < " MAGNUM_BUILD_STATIC " ;
# endif
Debug { } < < " Compiled CPU features: " ;
Debug { } < < " " < < Debug : : packed < < Cpu : : compiledFeatures ( ) ;
# ifdef CORRADE_BUILD_CPU_RUNTIME_DISPATCH
Debug { } < < " Detected CPU features: " ;
Debug { } < < " " < < Debug : : packed < < Cpu : : runtimeFeatures ( ) ;
# endif
Debug { } < < " " ;
const Vk : : Version instanceVersion = Vk : : enumerateInstanceVersion ( ) ;