Git Product home page Git Product logo

Comments (8)

yuanzexi avatar yuanzexi commented on May 4, 2024 1

@XuMicoder CMake的 时候记得添加 -DENABLE_UNIT_TESTS=ON,然后可以直接打开 build 目录下的 Forward.sln 打开解决方案,然后点击 生成 -> 生成解决方案。然后可以直接右键 unit_test 项目 -> 设置为启动项目。然后开始 调试 -> 执行。
image

from forward.

XuMicoder avatar XuMicoder commented on May 4, 2024

image
谢谢解答,但是生成解决方案的时候报了很多错误,错误计数超过100:正在停止编译 环境的话都是推荐环境,看了一下基本上都是plugin文件夹里的文件报错@yuanzexi

from forward.

yuanzexi avatar yuanzexi commented on May 4, 2024

@XuMicoder 看起来像是未正确配置 CUDA 相关环境变量,导致 Visual Studio 找不到 nvcc。你可以先试试找一个简单的 CUDA 程序来测试系统环境是否能正常跑 CUDA 程序。建议检查一下 CUDA 相关的环境变量,以及检查 CUDA 安装时是否有安装 Visual Studio Extensions.

from forward.

XuMicoder avatar XuMicoder commented on May 4, 2024

谢谢解答,我的环境变量暂时没啥问题,我检查过一切正常,新建cuda项目测试也没问题,cuda安装时将解压对应的文件我复制到了vs对应的目录里面去了,cmake的时候是可以找得到nvcc的,一开始我也以为是环境问题,然后我在另外一台设备上重新配置了环境全部按照推荐配置来,出现的问题是一样的。这个我暂时没能找到合理的解决办法,在Ubuntu上是正常的,win10上确实有出现些bug。@yuanzexi

from forward.

yuanzexi avatar yuanzexi commented on May 4, 2024

@XuMicoder 你可以提供一下,你的系统环境:
TensorRT Version:
NVIDIA GPU:
NVIDIA Driver Version:
CUDA Version:
CUDNN Version:
Operating System:
Python Version (if applicable):
Tensorflow Version (if applicable):
PyTorch Version (if applicable):

from forward.

XuMicoder avatar XuMicoder commented on May 4, 2024

笔记本编译失败,配置如下:
TensorRT Version:7.2.1.6
NVIDIA GPU:NvidiaGTX2060
NVIDIA Driver Version: 27.21.14.6542
CUDA Version:10.2
CUDNN Version:8.0.4
Operating System:win10企业版Insider Preview
Python Version (if applicable):False
Tensorflow Version (if applicable):1.15.0
PyTorch Version (if applicable):False
vs版本:vs2017

同一台电脑对应的wsl2环境是:
TensorRT Version:7.2.1.6
NVIDIA GPU:NvidiaGTX2060
NVIDIA Driver Version: 27.21.14.6542
CUDA Version:10.2
CUDNN Version:8.0.2
Operating System:Ubuntu1804
Python Version (if applicable):False
Tensorflow Version (if applicable):1.15.0
PyTorch Version (if applicable):False
这个系统是可以正常编译与test的

另外一台电脑的配置如下:
TensorRT Version:7.2.1.6
NVIDIA GPU:NvidiaGTX3080
CUDA Version:11.0
CUDNN Version:8.0.5
Operating System:win10专业版
Python Version (if applicable):False
Tensorflow Version (if applicable):1.15.0
PyTorch Version (if applicable):False
vs版本:vs2019
这台电脑系统是我重装的,与第一次一样的报错

from forward.

github-actions avatar github-actions commented on May 4, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

from forward.

github-actions avatar github-actions commented on May 4, 2024

This issue was closed because it has been stalled for 5 days with no activity.

from forward.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.