Jwindler / AutoHiC

A novel genome assembly pipeline based on deep learning
https://doi.org/10.1093/nar/gkae789
MIT License
54 stars 5 forks source link

Error with GPU/CUDA #9

Closed kiratalreja3 closed 2 months ago

kiratalreja3 commented 1 year ago

Hi, I get this error while trying to use AutoHiC latest version

RuntimeError: nms is not compiled with GPU support

Seems like it is related to mmcv/mmdet - I have tried every possible step trying to solve this error but seems like I just can't. Can you please help>?

Jwindler commented 1 year ago

Thank you for your response. If you want to use GPU, please install CUDA-11.3 and cuDNN-8.2 before. For AutoHiC with GPU support, you need to be under the above CUDA version and use conda to reinstall AutoHiC. If there are no special requirements, it is recommended to use AutoHiC in the CPU environment, which does not change the speed much, because the time limit is mainly concentrated on juier and 3d-dna.

kiratalreja3 commented 1 year ago

Thanks, I will try that. From my testing, it seems the GPU mode is exponentially faster than CPU mode in onehic mode - where my job finished in 40 mins on GPU mode and more than 16 hours on CPU mode.

kiratalreja3 commented 1 year ago

Is there a scope of extending the development to YAHS? I am happy to contribute.

Jwindler commented 1 year ago

Thank you for your response. We are currently working on this development. If you have any good suggestions, I hope you can keep in touch with me.

Jwindler commented 1 year ago

Is there a scope of extending the development to YAHS? I am happy to contribute.

maybe you can ref to : https://github.com/Jwindler/AutoHiC/blob/main/example/other_tools.md

zhangwenda0518 commented 1 year ago

Hello, teacher, I would like to ask how to check whether my server supports and uses GPU acceleration. I looked up the command lspci | grep -i VGA on the Internet. My server shows: 62: 00.0 VGA compatible controller: Matrox Electronics Systems Ltd. Integrated Matrox G200EW 3 Graphics Controller (Rev 04).

Does this mean that my server can use GPU acceleration? What should I do next? Thank you!

Jwindler commented 1 year ago

Hello, teacher, I would like to ask how to check whether my server supports and uses GPU acceleration. I looked up the command lspci | grep -i VGA on the Internet. My server shows: 62: 00.0 VGA compatible controller: Matrox Electronics Systems Ltd. Integrated Matrox G200EW 3 Graphics Controller (Rev 04).

Does this mean that my server can use GPU acceleration? What should I do next? Thank you!

You should make sure that your machine has a graphics card, and install the appropriate driver and CUDA, consulting the documentation for tips. @zhangwenda0518