kalininalab / alphafold_non_docker

AlphaFold2 non-docker setup
338 stars 119 forks source link

Control the number of OpenMM threads #7

Closed aozalevsky closed 3 years ago

aozalevsky commented 3 years ago

Since a non-docker setup doesn't have the cgroups limiting capabilities, it would be nice to have finer control over the relaxation step performed with OpenMM.

The default AF script uses OpenMM with a CPU platform which by default consumes all CPUs. The behavior can be tuned with the OPENMM_CPU_THREADS environment variable which can be setup similar to the GPU selection process.

For our local version I added following lines:

        c)
                openmm_threads=$OPTARG
        ;;
        <...>

if [[ "$openmm_threads" ]] ; then
    export OPENMM_CPU_THREADS=${openmm_threads}
fi
sanjaysrikakulam commented 3 years ago

Hi @aozalevsky

I have added OpenMM threads support to the script. Thank you for your suggestion.