Open izxle opened 1 year ago
Hey @izxle , thanks for the detailed bug information!
This indeed seems like an issue with RDKit. Could you try to update RDkit to be at least 2022.03.1, then run again to see if the problem persists? For me, I run tautomer.ipynb
on MBP, and it took just 3 minutes.
conda install "rdkit >= 2022.03.1"
Thanks, it worked now. It took more than an hour to run on my machine.
After using rdkit >= 2022.03.1
, did it still take about 1 hour to run the tautomer example?
@izxle do you use GPU? Please check if you have a CUDA device in your system.
@LiuCMU No, I just checked it again. It now took 45 min.
@isayev I have an NVIDIA GeForce GTX 512 MB. But I didn't tell the program to use it, do I have to enable it somehow?
Also, a minor "error" on the order of the cells. The fourth code cell displays the tautomers
list but this variable is defined on the next code cell. So if you run it all you get a NameError
and need to backtrack after running the fifth code cell to not get the error.
Thanks for the feedback! I will update the tautomer.ipynb
example.
It should be within minutes even on the CPU. Could you check you RDKit version (using print(rdkit.__version__)
) in the jupyter notebook you are running? Just to make sure the RDKit in this specific environment is expected. I noted that you got 533 total conformers even when max_confs=10
, which indicating the this argument is not working. This behavior happens on older RDKit versions.
It runs much faster on GPU. To use GPU, you just need to specify that use_gpu=True
:
args = options(input_path, k=1, enumerate_tautomer=True, tauto_engine="rdkit",
optimizing_engine="ANI2xt", #ANI2xt is NNP designed for tautomers
max_confs=10, patience=200, use_gpu=True)
rdkit version = 2022.09.1
I tried the use_gpu=True
but it said that it didn't detect any CUDA device.
@izxle You need to install a modern NVIDIA GPU driver and CUDA toolkit. Next, if all work correctly, you could run nvidia-smi
from the command line. It will show you available CUDA devices e.g.:
Apparently, there aren't any drivers for MacOS for the NVIDIA GeForce GTX 660M 512 MB.
Describe the bug The tautomer example gets an error when running on a clean install. This error seems to be originating from RDKit.
To Reproduce Steps to reproduce the behavior:
/examples/tautomer.ipynb
Expected behavior The example should run without errors.
Error messages
/examples/tautomer.ipynb
System information: