Skip to content
Snippets Groups Projects
Commit a08cffd6 authored by Augustin Zidek's avatar Augustin Zidek
Browse files

Fail hard if running on a device with GPU capability < 8.0

PiperOrigin-RevId: 697640745
parent 08ee672e
No related branches found
No related tags found
1 merge request!1Cloned AlphaFold 3 repo into this one
......@@ -610,6 +610,17 @@ def main(_):
print(f'Failed to create output directory {_OUTPUT_DIR.value}: {e}')
raise
if _RUN_INFERENCE.value:
# Fail early on incompatible devices, but only if we're running inference.
gpu_devices = jax.local_devices(backend='gpu')
if gpu_devices and float(gpu_devices[0].compute_capability) < 8.0:
raise ValueError(
'There are currently known unresolved numerical issues with using'
' devices with compute capability less than 8.0. See '
' https://github.com/google-deepmind/alphafold3/issues/59 for'
' tracking.'
)
notice = textwrap.wrap(
'Running AlphaFold 3. Please note that standard AlphaFold 3 model'
' parameters are only available under terms of use provided at'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment