服务器ubuntu22.04上安装tiny-cuda-nn

tiny-cuda-nn安装链接

https://github.com/NVlabs/tiny-cuda-nn.git

遇到的问题

  1. 服务器上不知道为啥设置了代理也不行,就是如下博主写的解决办法:增加代理解决git不上的问题
    仍然报如下的错误:
    然后我用deepseek,他让我用git clone --recursive https://github.com/nvlabs/tiny-cuda-nn,可是git用不了啊,我要裂开了!!!!报了如下的错
xml 复制代码
(NerF) root@home:/www/nerfstudio-main/CustomNeRF-master/tiny-cuda-nn-master# pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
Looking in indexes: https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
Collecting git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
  Cloning https://github.com/NVlabs/tiny-cuda-nn/ to /tmp/pip-req-build-p8lb0w5q
  Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/tiny-cuda-nn/ /tmp/pip-req-build-p8lb0w5q
  fatal: unable to access 'https://github.com/NVlabs/tiny-cuda-nn/': Failed to connect to 127.0.0.1 port 7890 after 0 ms: Connection refused
  error: subprocess-exited-with-error
  
  × git clone --filter=blob:none --quiet https://github.com/NVlabs/tiny-cuda-nn/ /tmp/pip-req-build-p8lb0w5q did not run successfully.
  │ exit code: 128
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/NVlabs/tiny-cuda-nn/ /tmp/pip-req-build-p8lb0w5q did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

我成功部署的经验及步骤(仅针对git不能用的友友们)

1. 环境安装

python: 3.10 cuda:11.6 保证可以nvcc -V显示版本不然会编译出错

ubuntu:22.04

2. 下载安装包

2.1 tinny-cuda-nn安装包

2.2 cutlass安装包

2.3 fmt安装包
2.2和2.3安装包放置到2.1中的dependencies下

3. 编译

powershell 复制代码
cd tiny-cuda-nn
cmake . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build --config RelWithDebInfo -j

3.1 编译结果

确保编译成功后再执行安装步骤

powershell 复制代码
cd bindings/torch
python setup.py install

安装结果显示

相关推荐
夸克App14 分钟前
实现营销投放全流程自动化 超级汇川推出信息流智能投放产品“AI智投“
运维·人工智能·自动化
Rainbond云原生17 分钟前
83k Star!n8n 让 AI 驱动的工作流自动化触手可及
运维·人工智能·自动化
木觞清18 分钟前
深度对比评测:n8n vs Coze(扣子) vs Dify - 自动化工作流工具全解析
运维·自动化
一眼青苔24 分钟前
切割PDF使用python,库PyPDF2
服务器·python·pdf
中云时代-防御可测试-小余1 小时前
高防IP是如何防护DDoS攻击和CC攻击的
运维·服务器·tcp/ip·安全·阿里云·ddos·宽度优先
网硕互联的小客服1 小时前
如何模拟黑客攻击(Red Teaming)以测试服务器安全性
运维·服务器
RECRUITGUY2 小时前
用交换机连接两台电脑,电脑A读取/写电脑B的数据
服务器·网络·负载均衡
樽酒ﻬق2 小时前
Kubernetes 常用运维命令整理
运维·容器·kubernetes
wt_cs3 小时前
身份证实名认证:通往数字安全与便捷生活的钥匙
运维·服务器
@Aurora.3 小时前
【项目日记(三)】
linux·服务器·网络