Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running predictions with tensorflow is slow #60

Open
dagap opened this issue Feb 23, 2022 · 0 comments
Open

running predictions with tensorflow is slow #60

dagap opened this issue Feb 23, 2022 · 0 comments

Comments

@dagap
Copy link

dagap commented Feb 23, 2022

  • MMSplice version: 2.3.0
  • Python version: 3.9.7
  • Operating System: Ubuntu 20.04.3 LTS

Description

Running mmsplice on a GPU-enabled machine is very slow. I have a NVIDIA RTX A5000 with 24 GB memory and running mmsplice is 10x slower than running on CPU with 10 cores. Has anyone benchmarked the GPU speedups?

I am running the latest drivers and cuda version 11.6. Tensorflow detects the GPU just fine.

What I Did

start_time = time.time()
gtf = 'gtf_file_coding.gtf'
dl = SplicingVCFDataloader(gtf, fasta, vcf)
model = MMSplice()
output_csv = 'preds.csv'
predict_save(model, dl, output_csv, pathogenicity=True, splicing_efficiency=True)  # also used higher batch size
print("Seconds since epoch with GTF =", seconds)
df = pd.read_csv(output_csv)
df = max_varEff(df)
df.to_csv('preds_max.csv')
print('TOTAL EXECUTION TIME ...')
print("--- %s seconds ---" % (time.time() - start_time))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant