当前位置: 首页 > news >正文

服务器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用不了啊,我要裂开了!!!!报了如下的错
(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. 编译

cd tiny-cuda-nn
cmake . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build --config RelWithDebInfo -j

3.1 编译结果

在这里插入图片描述

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

cd bindings/torch
python setup.py install

安装结果显示

在这里插入图片描述

相关文章:

  • STM32 + keil5 跑马灯
  • 深入理解 Apache Dagster:数据管道编排实战指南
  • 系统调用与中断
  • 鸿蒙学习手册(HarmonyOSNext_API16)_应用开发UI设计:Swiper
  • Swoole 的 Hyperf 框架和 Go 的 Gin 框架高并发原理以及技术实现对比分析
  • [C++面试] 智能指针面试点(重点)续4
  • 动手学深度学习:AlexNet
  • 从基础到实践(二十三):MCU选型设计指南
  • 避坑,c#开发人员学习开发app时.NET MAUI和Vue3 选择
  • 青少年编程与数学 02-013 初中数学知识点 04课题、图形与几何
  • 洛谷题单2-P1424 小鱼的航程(改进版)-python-流程图重构
  • [NCTF2019]Fake XML cookbook [XXE注入]
  • 第八部分:进程创建退出等待和替换
  • 深入探究C语言中的二进制世界:从原理到实践
  • 国产数据库突围,要过“生态关”
  • java多并发问题与解决办法以及为什么不能在多线程环境中使用非线程安全的集合?
  • ES 查看索引的属性的http请求
  • 2025年3月个人工作生活总结
  • 如何修复 SQL Server 数据库中的恢复挂起状态?
  • 数字电子技术基础(三十七)——利用Multisim软件实现16线-4线编码器和4线-16线译码器
  • 第十届影像上海博览会落幕后,留给中国摄影收藏的三个问题
  • “远践”项目启动公益生态圈,上海青少年公益力量蓬勃生长
  • 马上评丨火车穿村而过多人被撞身亡,亡羊补牢慢不得
  • 60余年产业积累,“江苏绿心”金湖炼就“超级石油工具箱”
  • 历史地理学者成一农重回母校北京大学,担任历史系教授
  • 举牌代跳明码标价、留言不堪入目,未成年人擦边短视频成引流利器