yum-archive/TaSTT-Whisper

High-performance GPGPU inference of OpenAI's Whisper automatic speech recognition (ASR) model

git clone https://git.yummers.dev/yum-archive/TaSTT-Whisper

KonstantinOptional startup flags to override performance-related defaults for the compute shaders11c399b

master
416 B27 linesraw
1#include "stdafx.h"
2#include "mlStartup.h"
3#include "../D3D/startup.h"
4#include "LookupTables.h"
5
6namespace
7{
8	static DirectCompute::LookupTables s_tables;
9}
10
11namespace DirectCompute
12{
13	const LookupTables& lookupTables = s_tables;
14
15	HRESULT mlStartup( uint32_t flags )
16	{
17		CHECK( d3dStartup( flags ) );
18		CHECK( s_tables.create() );
19		return S_OK;
20	}
21
22	void mlShutdown()
23	{
24		s_tables.clear();
25		d3dShutdown();
26	}
27}