Update have_int8 condition to run on compute capability 7.x devices (#4214)
authorWuwei Lin <vincentl13x@gmail.com>
Tue, 29 Oct 2019 12:23:23 +0000 (08:23 -0400)
committermasahi <masahi129@gmail.com>
Tue, 29 Oct 2019 12:23:23 +0000 (21:23 +0900)
python/tvm/contrib/nvcc.py

index 37e4f2a..05ee338 100644 (file)
@@ -245,8 +245,8 @@ def have_int8(compute_version):
     compute_version : str
         compute capability of a GPU (e.g. "6.1")
     """
-    major, minor = parse_compute_version(compute_version)
-    if major == 6 and minor == 1:
+    major, _ = parse_compute_version(compute_version)
+    if major >= 6:
         return True
 
     return False