Skip to content

Commit b771633

Browse files
committed
Merge branch 'svij/install-uv' into svij/update-docker-images-use-uv
2 parents a083f41 + b5c7cb6 commit b771633

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

python/gigl/scripts/install_glt.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,23 @@ then
5252
if has_cuda_driver;
5353
then
5454
echo "Will use CUDA for GLT..."
55+
56+
# Potential values for TORCH_CUDA_ARCH_LIST: (not all are tested)
57+
# 6.0 = Pascal support i.e. Tesla P100 - CUDA 8 or later
58+
# 6.1 = Pascal support i.e. Tesla P4 - CUDA 8 or later
59+
# 7.0 = Volta support i.e. Tesla V100 - CUDA 9 or later
60+
# 7.5 = Turing support i.e. Tesla T4 - CUDA 10 or later
61+
# 8.0 = Ampere support i.e. A100 - CUDA 11 or later
62+
# 8.9 = Ada Lovelace support i.e. L4 - CUDA 11.8 or later
63+
# 9.0 = Hopper support i.e. H100 , H200 - CUDA 12.0 or later
64+
# 10.0 = Blackwell support i.e. B200 - CUDA 12.6 or later
65+
# 12.0 = Blackwell support i.e. B200 - CUDA 12.8 or later
5566
TORCH_CUDA_ARCH_LIST="7.5" WITH_CUDA="ON" python setup.py bdist_wheel
5667
else
5768
echo "Will use CPU for GLT..."
5869
WITH_CUDA="OFF" python setup.py bdist_wheel
5970
fi
60-
pip install dist/*.whl \
71+
uv pip install dist/*.whl \
6172
&& cd .. \
6273
&& rm -rf graphlearn-for-pytorch
6374
else

python/gigl/scripts/post_install.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ def main():
5353
try:
5454
print(f"Executing {cmd}...")
5555
result = run_command_and_stream_stdout(cmd)
56-
print("Post-install script finished running, with return code: ", result)
56+
if result != 0:
57+
raise RuntimeError(
58+
f"Post-install script finished running, with return code: {result}"
59+
)
5760
return result
5861

5962
except subprocess.CalledProcessError as e:

0 commit comments

Comments
 (0)