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

安装结果显示

相关推荐
deming_su9 分钟前
轻松上手:使用Nginx实现高效负载均衡
运维·nginx·负载均衡
m0_694845571 小时前
服务器如何配置防火墙规则开放/关闭端口?
linux·服务器·安全·云计算
降世神童1 小时前
华为云Flexus+DeepSeek征文| 使用华为云CCE容器部署Dify-LLM高可用方案的验证与测试
运维·华为云·aigc
降世神童1 小时前
华为云Flexus+DeepSeek征文| 基于华为云Dify-LLM高可用平台开发运维故障处理智能体
运维·华为云·aigc
阿巴~阿巴~2 小时前
Linux基本命令篇 —— alias命令
linux·服务器·bash
好名字更能让你们记住我3 小时前
Linux多线程(十二)之【生产者消费者模型】
linux·运维·服务器·jvm·windows·centos
门思科技3 小时前
设计可靠 LoRaWAN 设备时需要考虑的关键能力
运维·服务器·网络·嵌入式硬件·物联网
小锋学长生活大爆炸3 小时前
【知识】RPC和gRPC
服务器·网络协议·rpc
学习编程的gas3 小时前
Linux开发工具——gcc/g++
linux·运维·服务器
大大。3 小时前
van-tabbar-item选中active数据变了,图标没变
java·服务器·前端