Skip to content

Commit 4892659

Browse files
committed
Torch: attempt to support compute capability 87
1 parent 2ec562e commit 4892659

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bindings/torch/tinycudann/modules.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import torch
1515

16-
ALL_COMPUTE_CAPABILITIES = [20, 21, 30, 35, 37, 50, 52, 53, 60, 61, 62, 70, 72, 75, 80, 86, 89, 90]
16+
ALL_COMPUTE_CAPABILITIES = [20, 21, 30, 35, 37, 50, 52, 53, 60, 61, 62, 70, 72, 75, 80, 86, 87, 89, 90]
1717

1818
if not torch.cuda.is_available():
1919
raise EnvironmentError("Unknown compute capability. Ensure PyTorch with CUDA support is installed.")
@@ -39,6 +39,10 @@ def _get_system_compute_capability():
3939
# devices, ensuring that we have no runtime errors.
4040
system_compute_capability = _get_system_compute_capability()
4141

42+
# Ensure the system's compute capability is represented in the list to avoid
43+
# total failure if a new capability is released without tiny-cuda-nn being updated.
44+
ALL_COMPUTE_CAPABILITIES.append(system_compute_capability)
45+
4246
# Try to import the highest compute capability version of tcnn that
4347
# we can find and is compatible with the system's compute capability.
4448
_C = None

0 commit comments

Comments
 (0)