Skip to content

Commit

Permalink
Update have_int8 condition to run on compute capability 7.x devices (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vinx13 authored and masahi committed Oct 29, 2019
1 parent e889928 commit 794db37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/contrib/nvcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 794db37

Please sign in to comment.