Skip to content

Consider cudatoolkit==11.8 for Docker/Singularity image #1628

@mjw99

Description

@mjw99

Using the openfe_1.7.0-apptainer.sif singularity image with a L40S GPU, for a simple benzene AHFE calculation, I see the following crash:

Traceback (most recent call last):
  File "/tmp/AHFE_benzene.py", line 90, in <module>
    dag_results = execute_DAG(dag, scratch_basedir=path, shared_basedir=path, n_retries=3)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/gufe/protocols/protocoldag.py", line 450, in execute_DAG
    result = unit.execute(context=context, raise_error=raise_error, **inputs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/gufe/protocols/protocolunit.py", line 371, in execute
    outputs = self._execute(context, **inputs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/openfe/protocols/openmm_afe/base.py", line 1252, in _execute
    outputs = self.run(scratch_basepath=ctx.scratch, shared_basepath=ctx.shared)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/openfe/protocols/openmm_afe/base.py", line 1124, in run
    positions, box_vectors = self._pre_equilibrate(
                             ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/openfe/protocols/openmm_afe/base.py", line 215, in _pre_equilibrate
    simulation = openmm.app.Simulation(
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/openmm/app/simulation.py", line 104, in __init__
    self.context = mm.Context(self.system, self.integrator, platform)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/openmm/openmm.py", line 12171, in __init__
    _openmm.Context_swiginit(self, _openmm.new_Context(*args))
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
openmm.OpenMMException: Error initializing FFT: 5

Also note:

$ singularity shell openfe_1.7.0-apptainer.sif
Apptainer> /opt/conda/bin/python
Python 3.12.12 | packaged by conda-forge | (main, Oct 13 2025, 14:34:15) [GCC 14.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> import openmm

>>> print(openmm.__version__)
8.1.1

This is a function of cudatoolkit==11.7 and bumping this to 11.8 in production/environment.yml , rebuilding the images, resolves my issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions