add customCudaFile support
This commit is contained in:
@@ -267,4 +267,13 @@ export function toastWithButton(text: string, buttonText: string, onClickButton:
|
||||
type: 'info',
|
||||
...options
|
||||
});
|
||||
}
|
||||
|
||||
export function getSupportedCustomCudaFile() {
|
||||
if ([' 10', ' 20', ' 30'].some(v => commonStore.status.device_name.includes(v)))
|
||||
return './backend-python/wkv_cuda_utils/wkv_cuda10_30.pyd';
|
||||
else if ([' 40'].some(v => commonStore.status.device_name.includes(v)))
|
||||
return './backend-python/wkv_cuda_utils/wkv_cuda40.pyd';
|
||||
else
|
||||
return '';
|
||||
}
|
||||
Reference in New Issue
Block a user