Skip to content

Commit

Permalink
remove gpu id (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbray authored Apr 23, 2020
1 parent 9e91465 commit c3797a5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions duck/steps/equlibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def do_equlibrate(force_constant_equilibrate=1.0,gpu_id=0):
if gpu_id != None:
platform = mm.Platform_getPlatformByName("CUDA")
platformProperties["CudaPrecision"] = "double"
platformProperties["CudaDeviceIndex"] = gpu_id
else:
platform = mm.Platform_getPlatformByName("CPU")
platformProperties["DeterministicForces"] = 'true'
Expand Down Expand Up @@ -96,4 +95,4 @@ def do_equlibrate(force_constant_equilibrate=1.0,gpu_id=0):
return [checkpoint]

if __name__ == "__main__":
do_equlibrate()
do_equlibrate()
1 change: 0 additions & 1 deletion duck/steps/normal_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def perform_md(
if gpu_id != None:
platform = mm.Platform_getPlatformByName("CUDA")
platformProperties["CudaPrecision"] = "double"
platformProperties["CudaDeviceIndex"] = gpu_id
else:
platform = mm.Platform_getPlatformByName("CPU")
platformProperties["DeterministicForces"] = 'true'
Expand Down
1 change: 0 additions & 1 deletion duck/steps/steered_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def run_steered_md(
if gpu_id != None:
platform = mm.Platform_getPlatformByName("CUDA")
platformProperties["CudaPrecision"] = "double"
platformProperties["CudaDeviceIndex"] = gpu_id
else:
platform = mm.Platform_getPlatformByName("CPU")
platformProperties["DeterministicForces"] = 'true'
Expand Down
4 changes: 2 additions & 2 deletions environment.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: duck
channels:
- omnia
- bioconda
- conda-forge
- defaults
dependencies:
- openduck
- python=3.6
- yank
- rdkit==2018.09.01
- pdbfixer
- openforcefield=0.4.0
- boto3
- cudatoolkit=9.2
- pip:
- nose

0 comments on commit c3797a5

Please sign in to comment.