服务器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

安装结果显示

相关推荐
学习路上_write7 小时前
Linux黑马命令学习
linux·运维·服务器
那年窗外下的雪.7 小时前
AIDC 学习日志|第 22 天|All-Active/Single-Active 故障演练设计
服务器·网络·学习·算法·哈希算法
Android系统攻城狮7 小时前
Linux Gstreamer深度解析之gst_audio_channel_reorder_map调用流程与实战(十八)
linux·运维·服务器·音视频进阶·gstreamer音视频进阶
新时代牛马8 小时前
docker run 起不来?从dockerd、containerd 到runc 一条线讲透
运维·docker·容器
TomEval8 小时前
【App 自动化】14 - App 自动化基础与环境
运维·自动化
cc_yy_zh8 小时前
学习使用kali抓包
服务器·学习·php
盛世宏博智慧档案8 小时前
户外配电柜为什么要装POE供电以太网温湿度传感器?
服务器·网络·人工智能·监控·温湿度·配电柜
新时代牛马8 小时前
Linux 防火墙:nftables 与iptables 兼容层
linux·运维·服务器
xhbh6668 小时前
中小企业 Redis 运维,如何安全归档 RDB、AOF 备份文件?
运维·数据库·缓存·数据备份·文件备份·同步备份·号码备份
是逍遥子没错8 小时前
一个斜杠,击穿整座网关:API网关路径前缀绕过认证实战
运维·服务器·web安全·网络安全·渗透测试·系统安全