Skip to content

Commit

Permalink
Disable 16G on Windows and warn on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
haorldbchi committed Sep 21, 2023
1 parent f3c77b2 commit 527e564
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion cuda/CudaPlotter.cu
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ GPU-based (CUDA) plotter
--disk-128 : Enable hybrid disk plotting for 128G system RAM.
Requires a --temp1 and --temp2 to be set.
--disk-16 : Enable hybrid disk plotting for 16G system RAM.
--disk-16 : (experimental) Enable hybrid disk plotting for 16G system RAM.
Requires a --temp1 and --temp2 to be set.
-t1, --temp1 : Temporary directory 1. Used for longer-lived, sequential writes.
-t2, --temp2 : Temporary directory 2. Used for temporary, shorted-lived read and writes.
Expand Down Expand Up @@ -121,6 +121,17 @@ void CudaK32Plotter::ParseCLI( const GlobalPlotConfig& gCfg, CliParser& cli )
Log::Error( "Error: Cannot plot classic (uncompressed) plots in 128G or 64G mode." );
Exit( -1 );
}

if( cfg.hybrid16Mode )
{
#if PLATFORM_IS_WINDOWS
Log::Error( "16G mode is currently unsupported on Windows." );
Exit( -1 );
#else
Log::Line( "Warning: 16G mode is experimental and still under development." );
Log::Line( " Please use the --check <n> parameter to validate plots when using this mode." );
#endif
}
}

//-----------------------------------------------------------
Expand Down

0 comments on commit 527e564

Please sign in to comment.