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

Tiny-cuda-nn安装指南

前言

用这个命令去安装:

pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch

能成功那你就是万中无一的幸运儿! 可以跳过本教程了!

从源码编译

clone源码:

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

直接运行编译命令会出错:

cmake . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo

报错如下:

-- The CXX compiler identification is GNU 9.4.0
-- The CUDA compiler identification is NVIDIA 12.1.66
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda-12.1/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
CMake Error at CMakeLists.txt:57 (message):Some tiny-cuda-nn dependencies are missing.  If you forgot the"--recursive" flag when cloning this project, this can be fixed by calling"git submodule update --init --recursive".-- Configuring incomplete, errors occurred!
See also "/home/cyberbus/xgh/backup/instant-nsr-pl/tiny-cuda-nn/build/CMakeFiles/CMakeOutput.log".

debug发现是有子模块没有安装,所以运行如下命令后再编译即可成功:

git submodule update --init --recursive
cmake . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build --config RelWithDebInfo -j$(nproc)

http://www.dtcms.com/a/318376.html

相关文章:

  • CVE-2021-1879
  • Linux系统编程——环境变量、命令行参数
  • Dart语言语法与技术重点
  • 数据结构—队列和栈
  • openGauss单实例安装
  • YOLOv11改进:集成FocusedLinearAttention与C2PSA注意力机制实现性能提升
  • Redis使用的常见问题及初步认识
  • PLC学习之路-数据类型与地址表示-(二)
  • WinXP配置一键还原的方法
  • 【golang面试题】Golang递归函数完全指南:从入门到性能优化
  • 五十二、【Linux系统shell脚本】正则表达式演示
  • 202506 电子学会青少年等级考试机器人五级实际操作真题
  • 数据结构:栈、队列
  • C语言的数组与字符串练习题1
  • 18650电池组PACK自动化生产线:高效与品质的融合
  • 动物AI识别摄像头语音对讲功能
  • 大模型客户端工具如Cherry Studio,Cursor 配置mcp服务,容易踩的坑,总结
  • RPC框架之Kitex
  • 云手机和云真机之间存在的不同之处有什么?
  • [Oracle] LPAD()和RPAD()函数
  • Python实现电商商品数据可视化分析系统开发实践
  • 一、Istio基础学习
  • 自定义报表调研
  • 居家养老场景下摔倒识别准确率提升 29%:陌讯动态姿态建模算法实战解析
  • JuiceFS存储
  • C++实现线程池(5)计划线程池
  • Redis知识学习
  • 深度解析:AI如何重塑供应链?从被动响应到预测性防御的三大核心实践
  • (Python)待办事项升级网页版(html)(Python项目)
  • 未解决|TransmittableThreadLocal 怎么用| 阿里线程池工具避免手动在传递MDC traceId