From e953396d59283b061cfdf4574b164755886f520e Mon Sep 17 00:00:00 2001 From: Konstantin Date: Wed, 18 Jan 2023 21:30:46 +0100 Subject: Minor, logging and UX --- Whisper/D3D/device.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Whisper/D3D/device.cpp') diff --git a/Whisper/D3D/device.cpp b/Whisper/D3D/device.cpp index 5b0a6e8..c135632 100644 --- a/Whisper/D3D/device.cpp +++ b/Whisper/D3D/device.cpp @@ -106,6 +106,18 @@ namespace DirectCompute ef |= (uint8_t)eGpuEffectiveFlags::ReshapedMatMul; s_gpuInfo.flags = (eGpuEffectiveFlags)ef; + + if( willLogMessage( Whisper::eLogLevel::Debug ) ) + { + const int fl = g_featureLevel; + const int flMajor = ( fl >> 12 ) & 0xF; + const int flMinor = ( fl >> 8 ) & 0xF; + + logDebug16( L"Using GPU \"%s\", feature level %i.%i, effective flags %S | %S", + s_gpuInfo.description.c_str(), flMajor, flMinor, + s_gpuInfo.wave64() ? "Wave64" : "Wave32", + s_gpuInfo.useReshapedMatMul() ? "UseReshapedMatMul" : "NoReshapedMatMul" ); + } return S_OK; } -- cgit v1.2.3