We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0155a9b commit 16b1e8eCopy full SHA for 16b1e8e
op_builder/evoformer_attn.py
@@ -5,6 +5,7 @@
5
6
from .builder import CUDAOpBuilder, installed_cuda_version
7
import os
8
+from packaging.version import Version
9
10
11
class EvoformerAttnBuilder(CUDAOpBuilder):
@@ -54,9 +55,7 @@ def is_compatible(self, verbose=False):
54
55
if verbose:
56
self.warning("Please pip install nvidia-cutlass if trying to pre-compile kernels")
57
return False
- cutlass_major, cutlass_minor = cutlass.__version__.split('.')[:2]
58
- cutlass_compatible = (int(cutlass_major) >= 3 and int(cutlass_minor) >= 1)
59
- if not cutlass_compatible:
+ if Version(cutlass.__version__) < Version('3.1.0'):
60
61
self.warning("Please use CUTLASS version >= 3.1.0")
62
0 commit comments