From b1ff84f8e95f94da2dd79c5082da7d08af80b0c6 Mon Sep 17 00:00:00 2001 From: Johannes Karwounopoulos <72743318+JohannesKarwou@users.noreply.github.com> Date: Thu, 16 May 2024 23:11:19 +0200 Subject: [PATCH] simpler approach --- transformato/analysis.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/transformato/analysis.py b/transformato/analysis.py index 1dd78eb6..c17f6234 100644 --- a/transformato/analysis.py +++ b/transformato/analysis.py @@ -132,21 +132,21 @@ def _generate_openMM_system(self, env: str, lambda_state: int) -> Simulation: psf_file_path = f"{self.base_path}/intst{lambda_state}/{conf_sub['intermediate-filename']}.parm7" psf = AmberPrmtopFile(psf_file_path) # generate simulations object and set states - if not isinstance(self.configuration["simulation"]["GPU"], bool): - if self.configuration["simulation"]["GPU"].upper() == "OPENCL": - logger.info( - "We are using the OpenCL platform for the analysis as specified in the yaml file" - ) - platform = Platform.getPlatformByName("OpenCL") - platformProperties = {"UseCpuPme": "true"} - simulation = Simulation( - psf.topology, - system, - integrator, - platform, - platformProperties, - ) - elif self.configuration["simulation"]["GPU"] == True: +# if not isinstance(self.configuration["simulation"]["GPU"], bool): +# if self.configuration["simulation"]["GPU"].upper() == "OPENCL": +# logger.info( +# "We are using the OpenCL platform for the analysis as specified in the yaml file" +# ) +# platform = Platform.getPlatformByName("OpenCL") +# platformProperties = {"UseCpuPme": "true"} +# simulation = Simulation( +# psf.topology, +# system, +# integrator, +# platform, +# platformProperties, +# ) + if self.configuration["simulation"]["GPU"] == True: logger.info("We are using CUDA") platform = Platform.getPlatformByName("CUDA") simulation = Simulation(psf.topology, system, integrator, platform)