From b20990d380ec05293ece17d4585109a7ee16add4 Mon Sep 17 00:00:00 2001 From: josc146 Date: Wed, 21 Jun 2023 12:14:11 +0800 Subject: [PATCH] when precision is fp32, disable customCuda --- frontend/src/components/RunButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/RunButton.tsx b/frontend/src/components/RunButton.tsx index fbf4c43..cd430e7 100644 --- a/frontend/src/components/RunButton.tsx +++ b/frontend/src/components/RunButton.tsx @@ -169,7 +169,7 @@ export const RunButton: FC<{ onClickRun?: MouseEventHandler, iconMode?: boolean let customCudaFile = ''; if ((modelConfig.modelParameters.device === 'CUDA' || modelConfig.modelParameters.device === 'Custom') - && modelConfig.modelParameters.useCustomCuda) { + && modelConfig.modelParameters.useCustomCuda && modelConfig.modelParameters.precision != 'fp32') { if (commonStore.platform === 'windows') { customCudaFile = getSupportedCustomCudaFile(); if (customCudaFile) {