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

'TorchForce' object has no attribute 'setProperty' #112

Closed
yanze039 opened this issue Jul 17, 2023 · 6 comments
Closed

'TorchForce' object has no attribute 'setProperty' #112

yanze039 opened this issue Jul 17, 2023 · 6 comments

Comments

@yanze039
Copy link

Hi,

The README file states we can use setProperty to enable cuda graph, but it seems that the openmm-torch code from conda install doesn't implement this functionality. As the codes gives me:

Traceback (most recent call last):
  File "xxx/simulation_rid.py", line 41, in <module>
    torch_force.setProperty("useCUDAGraphs", "true")
AttributeError: 'TorchForce' object has no attribute 'setProperty'
@RaulPPelaez
Copy link
Contributor

Which version do you have installed? Could you post the output of $mamba list ?

@RaulPPelaez
Copy link
Contributor

Actually, the CUDA graph functionality has not been included in a conda release yet. Latest release is from mid 2022. You will have to build from source.
@raimis, @peastman , do you think we could prepare a new release or should we wait for #106 to get pytorch2 compatibility at the same time?

@peastman
Copy link
Member

Let's give it another day or two to see if we can get that merged, then do a new release.

@yanze039
Copy link
Author

Thanks for your quick reply. I just used the latest version now,

conda create -n test python=3.9 pytorch=1.11.0=*cuda* openmm-torch openmm -c conda-forge -c pytorch

where the version info is:

openmm                    8.0.0            py39h7d85326_1    conda-forge
openmm-torch              1.0             cuda112py39h47d0fa4_1    conda-forge

It will be great if you can merge a new version and release it to get Pytorch2 compatibility.

@RaulPPelaez
Copy link
Contributor

The latest release should have the requested funcionality. #113

@raimis
Copy link
Contributor

raimis commented Jul 27, 2023

OpenMM-Torch 1.1 with the CUDA Graph support has been released (https://github.com/openmm/openmm-torch/releases/tag/v1.1).

@raimis raimis closed this as completed Jul 27, 2023
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

4 participants