Skip to content

Commit

Permalink
update ram estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Jul 17, 2024
1 parent cce2760 commit 33a794f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/fastphase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,13 @@ int run_impute_main(Options & opts)
+ genome->C * genome->chunksize * 4 * (opts.nthreads + 1)
+ genome->C * genome->C * genome->chunksize * 3 * opts.nthreads)
* sizeof(MyFloat) * 8 / (1024 * 1024 * 1024);
if(opts.single_chunk)
{
ram = (double)(genome->nsamples * genome->nsnps * 6
+ genome->C * genome->nsnps * 4 * (opts.nthreads + 1)
+ genome->C * genome->C * genome->nsnps * 3 * opts.nthreads)
* sizeof(MyFloat) * 8 / (1024 * 1024 * 1024);
}
cao.print(tim.date(), "roughly estimated RAM usage would be ", ram, " Gbs");
vector<future<double>> res;
FastPhaseK2 faith(genome->nsamples, genome->nsnps, opts.C, opts.seed);
Expand Down

0 comments on commit 33a794f

Please sign in to comment.