Skip to content

Commit

Permalink
Update GPU compute capability check to reflect working versions
Browse files Browse the repository at this point in the history
- Add explicit check for compute capability < 6.0
- Keep check for range [7.0, 8.0)
- Update error message to clarify working versions (6.x and 8.x)
- Addresses issue google-deepmind#59
  • Loading branch information
smg3d committed Nov 24, 2024
1 parent d6b06d6 commit 1afb81f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions run_alphafold.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,10 +613,16 @@ def main(_):
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:
compute_capability = float(gpu_devices[0].compute_capability)
if gpu_devices and (
compute_capability < 6.0
or (compute_capability >= 7.0 and compute_capability < 8.0)
):
raise ValueError(
'There are currently known unresolved numerical issues with using'
' devices with compute capability less than 8.0. See '
' devices with compute capability 7.x. The code has not been tested'
' with compute capability < 6.0. The code has been confirmed to work'
' with compute capability 6.x and 8.x. See '
' https://github.com/google-deepmind/alphafold3/issues/59 for'
' tracking.'
)
Expand Down

0 comments on commit 1afb81f

Please sign in to comment.