Link lib -> lib64 in the merged CUDA tree for nvcc.profile
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QaE1hpvyZTJixEbUUMj9Ca
This commit is contained in:
parent
f0ea0bd7bb
commit
9ccd5ffd70
1 changed files with 3 additions and 0 deletions
|
|
@ -82,6 +82,9 @@ def build_cuda_home(log=print):
|
||||||
p.unlink()
|
p.unlink()
|
||||||
shutil.copy2(real, p)
|
shutil.copy2(real, p)
|
||||||
lib = CUDA_DIR / "lib64"
|
lib = CUDA_DIR / "lib64"
|
||||||
|
# FlashInfer links from $CUDA_HOME/lib64; the pip wheel's nvcc.profile uses $(TOP)/lib.
|
||||||
|
if lib.is_dir() and not os.path.lexists(CUDA_DIR / "lib"):
|
||||||
|
(CUDA_DIR / "lib").symlink_to("lib64")
|
||||||
if lib.is_dir():
|
if lib.is_dir():
|
||||||
for f in lib.glob("lib*.so.*"):
|
for f in lib.glob("lib*.so.*"):
|
||||||
base = lib / (f.name.split(".so.")[0] + ".so")
|
base = lib / (f.name.split(".so.")[0] + ".so")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue