File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
6374else
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments