Background
Today, I want to run a yolact model, but in the process of training, I need a DCN network model. This requires CUDA to compile relevant files, but an error is reported. The main errors are:
cuda_runtime.h: No such file or directory
I spent an afternoon reading a lot of blogs, but I didn’t solve it. Later I knew why. In fact, the solution is also very simple, that is, add some folder paths of CUDA installation directory to environment variables. The following are the solutions for the windows operating system:
Add the following two paths to the environment variable path:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64
Basically, everyone’s default installation path is this. You only need to replace v11.0
according to their installed CUDA version number.
Read More:
- [Solved] Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor‘
- [Solved] electron Package and Startup Error: Error: ENOENT: no such file or directory, open ‘xxx/manifest.json‘‘
- [Solved] Syntax Error: no such file or directory, open ‘F:\webProjectStudy\webProjectStudy\newStudy\24.d
- [Solved] VUE npm install Error: Module build failed: Error: ENOENT: no such file or directory, scandir
- runtime-core.esm-bundler.js5c406620 [Vue warn] Unhandled error during execution of native event h
- ‘webpack dev server’ is not an internal or external command, nor is it a runnable program or batch file. Solution: error in cnpm run dev:
- [Solved] Parsing error: No Babel config file detected for XXX
- H5 page left and right stretch content area
- How to use Runtime.getRuntime().Exec()
- [Solved] Error in load assembly ‘System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1’
- [Solved] Vue Error: Parsing error:No Babel config file detected for xxx
- [Solved] Vue Error: Parsing error: No Babel config file detected for
- [Solved] Vue Error: Parsing error: No Babel config file detected for /Users/Usename/xxx…
- JavaScript determines whether it’s morning or afternoon or evening
- [Solved] NPM Error: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
- Ant design vue table Error: h is not defined [How to Solve]
- [Solved] Element form method resetfields() error: vue.runtime.esm.js?2b0e:1888 TypeError: Cannot read properties of undefined (reading ‘indexOf’)
- Module build failed: Error: Couldn’t find preset “es2015” relative to directory
- Vue project change directory run error:Multiple assets emit different content to the same filename index.html
- [Solved] npm Error: Class extends value undefined is not a constructor or null