Skip to content

Commit

Permalink
Show compress option for ramplot
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaMineJP committed Aug 8, 2023
1 parent c53e672 commit 0ec6f17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/gui/src/components/plot/add/PlotAddChooseSize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export default function PlotAddChooseSize(props: Props) {
const compressionLevel = compressionLevelStr ? +compressionLevelStr : undefined;
const isKLow = plotSize < MIN_MAINNET_K_SIZE;

const compressionAvailable = op.haveBladebitCompressionLevel && plotterName === PlotterName.BLADEBIT_CUDA;
const compressionAvailable =
op.haveBladebitCompressionLevel &&
(plotterName === PlotterName.BLADEBIT_CUDA || plotterName === PlotterName.BLADEBIT_RAM);

const [allowedPlotSizes, setAllowedPlotSizes] = useState(
getPlotSizeOptions(plotterName, compressionLevel).filter((option) => plotter.options.kSizes.includes(option.value))
Expand Down

0 comments on commit 0ec6f17

Please sign in to comment.