diff options
| author | Konstantin <const@const.me> | 2023-01-18 21:30:46 +0100 |
|---|---|---|
| committer | Konstantin <const@const.me> | 2023-01-18 21:30:46 +0100 |
| commit | e953396d59283b061cfdf4574b164755886f520e (patch) | |
| tree | 9e6f5db97d0b1c5a4c1ab4818d93215d2e0ba889 /Whisper/D3D/device.cpp | |
| parent | 670f889b7e3af360fbd66ae34bc74e7e393edbfe (diff) | |
Minor, logging and UX
Diffstat (limited to 'Whisper/D3D/device.cpp')
| -rw-r--r-- | Whisper/D3D/device.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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; } |
