"sgl-kernel/python/sgl_kernel/load_utils.py" did not exist on "a27825ae01ad75468ddfaa2eeeb9d8c012cc952d"
Commit 8ca6d861 authored by rusty1s's avatar rusty1s
Browse files

doc fix

parent 9c1f4015
-f https://download.pytorch.org/whl/torch_stable.html
numpy numpy
https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp37-cp37m-linux_x86_64.whl https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp37-cp37m-linux_x86_64.whl
sphinx sphinx
......
...@@ -22,19 +22,19 @@ except OSError as e: ...@@ -22,19 +22,19 @@ except OSError as e:
f'version {major}.{minor}.') f'version {major}.{minor}.')
raise OSError(e) raise OSError(e)
except AttributeError as e: except AttributeError as e:
if os.getenv('BUILD_DOCS', '0') == '1': if os.getenv('BUILD_DOCS', '0') != '1':
pass
else:
raise AttributeError(e) raise AttributeError(e)
cuda_version = torch.ops.torch_scatter.cuda_version() if torch.version.cuda is not None: # pragma: no cover
if cuda_version != -1 and torch.version.cuda is not None: # pragma: no cover cuda_version = torch.ops.torch_scatter.cuda_version()
if cuda_version < 10000:
if cuda_version == -1:
major = minor = 0
elif cuda_version < 10000:
major, minor = int(str(cuda_version)[0]), int(str(cuda_version)[2]) major, minor = int(str(cuda_version)[0]), int(str(cuda_version)[2])
else: else:
major, minor = int(str(cuda_version)[0:2]), int(str(cuda_version)[3]) major, minor = int(str(cuda_version)[0:2]), int(str(cuda_version)[3])
t_major, t_minor = [int(x) for x in torch.version.cuda.split('.')] t_major, t_minor = [int(x) for x in torch.version.cuda.split('.')]
cuda_version = str(major) + '.' + str(minor)
if t_major != major or t_minor != minor: if t_major != major or t_minor != minor:
raise RuntimeError( raise RuntimeError(
......
...@@ -11,9 +11,7 @@ try: ...@@ -11,9 +11,7 @@ try:
torch.ops.load_library(importlib.machinery.PathFinder().find_spec( torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
'_scatter', [osp.dirname(__file__)]).origin) '_scatter', [osp.dirname(__file__)]).origin)
except AttributeError as e: except AttributeError as e:
if os.getenv('BUILD_DOCS', '0') == '1': if os.getenv('BUILD_DOCS', '0') != '1':
pass
else:
raise AttributeError(e) raise AttributeError(e)
......
...@@ -9,9 +9,7 @@ try: ...@@ -9,9 +9,7 @@ try:
torch.ops.load_library(importlib.machinery.PathFinder().find_spec( torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
'_segment_coo', [osp.dirname(__file__)]).origin) '_segment_coo', [osp.dirname(__file__)]).origin)
except AttributeError as e: except AttributeError as e:
if os.getenv('BUILD_DOCS', '0') == '1': if os.getenv('BUILD_DOCS', '0') != '1':
pass
else:
raise AttributeError(e) raise AttributeError(e)
......
...@@ -9,9 +9,7 @@ try: ...@@ -9,9 +9,7 @@ try:
torch.ops.load_library(importlib.machinery.PathFinder().find_spec( torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
'_segment_csr', [osp.dirname(__file__)]).origin) '_segment_csr', [osp.dirname(__file__)]).origin)
except AttributeError as e: except AttributeError as e:
if os.getenv('BUILD_DOCS', '0') == '1': if os.getenv('BUILD_DOCS', '0') != '1':
pass
else:
raise AttributeError(e) raise AttributeError(e)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment