Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build C#api with cuda 11.0 /cudnn 8.0 #11999

Open
cqray1990 opened this issue Jun 27, 2022 · 4 comments
Open

build C#api with cuda 11.0 /cudnn 8.0 #11999

cqray1990 opened this issue Jun 27, 2022 · 4 comments

Comments

@cqray1990
Copy link

cqray1990 commented Jun 27, 2022

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): windows 10
  • ONNX Runtime installed from (source or binary): source
  • ONNX Runtime version: 1.6.0
  • Python version:
  • Visual Studio version (if applicable):vs2019
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version:11.0/8.0
  • GPU model and memory:1060

command:
.\build.bat --build_shared_lib --build_nuget --parallel --use_cuda --cudnn_home "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0" --cuda_home "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0" --cuda_version 11.0

6: [----------] 1 test from TestSessionOptions (0 ms total)
6:
6: [----------] Global test environment tear-down
6: [==========] 1 test from 1 test suite ran. (0 ms total)
6: [ PASSED ] 1 test.
6/6 Test #6: onnxruntime_api_tests_without_env ...... Passed 0.03 sec

100% tests passed, 0 tests failed out of 6

Total Test time (real) = 104.62 sec
2022-05-27 10:13:39,129 util.run [DEBUG] - Subprocess completed. Return code: 0
2022-05-27 10:13:39,129 util.run [INFO] - Running subprocess in 'C:\pythonrun\csharp'
['dotnet', 'restore', 'OnnxRuntime.CSharp.sln', '--configfile', 'Nuget.CSharp.config']

C:onnxruntime\csharp\OnnxRuntime.DesktopOnly.CSharp.sln.metaproj : error MSB4126: 指定的解决方案配置“Debug|x64”无效。请
使用 Configuration 和 Platform 属性指定有效的解决方案配置(例如 MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU"),或者将
这些属性保留为空,以使用默认的解决方案配置。 [C:onnxruntime\csharp\OnnxRuntime.DesktopOnly.CSharp.sln]

After build,i didn't find nuget files, there is not two nuget files, like Microsoft.ML.OnnxRuntime.Managed.1.6.0-dev-20210307-0735-9126faa35.nupkg and located at .\build\Windows\Release\Release\nuget-artifacts

@cqray1990 cqray1990 changed the title build with cuda 11.0 /cudnn 8.0 build C#api with cuda 11.0 /cudnn 8.0 Jun 27, 2022
@cqray1990
Copy link
Author

@mattetti

@cqray1990
Copy link
Author

@mtodd @keeran @sverrejoh can u help me ,very emergency

@cqray1990
Copy link
Author

@sverrejoh

@xeeetu
Copy link

xeeetu commented Mar 20, 2023

System information

* OS Platform and Distribution (e.g., Linux Ubuntu 16.04): windows 10

* ONNX Runtime installed from (source or binary): source

* ONNX Runtime version: 1.6.0

* Python version:

* Visual Studio version (if applicable):vs2019

* GCC/Compiler version (if compiling from source):

* CUDA/cuDNN version:11.0/8.0

* GPU model and memory:1060

command: .\build.bat --build_shared_lib --build_nuget --parallel --use_cuda --cudnn_home "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0" --cuda_home "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0" --cuda_version 11.0

6: [----------] 1 test from TestSessionOptions (0 ms total) 6: 6: [----------] Global test environment tear-down 6: [==========] 1 test from 1 test suite ran. (0 ms total) 6: [ PASSED ] 1 test. 6/6 Test #6: onnxruntime_api_tests_without_env ...... Passed 0.03 sec

100% tests passed, 0 tests failed out of 6

Total Test time (real) = 104.62 sec 2022-05-27 10:13:39,129 util.run [DEBUG] - Subprocess completed. Return code: 0 2022-05-27 10:13:39,129 util.run [INFO] - Running subprocess in 'C:\pythonrun\csharp' ['dotnet', 'restore', 'OnnxRuntime.CSharp.sln', '--configfile', 'Nuget.CSharp.config']

C:onnxruntime\csharp\OnnxRuntime.DesktopOnly.CSharp.sln.metaproj : error MSB4126: 指定的解决方案配置“Debug|x64”无效。请 使用 Configuration 和 Platform 属性指定有效的解决方案配置(例如 MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU"),或者将 这些属性保留为空,以使用默认的解决方案配置。 [C:onnxruntime\csharp\OnnxRuntime.DesktopOnly.CSharp.sln]

After build,i didn't find nuget files, there is not two nuget files, like Microsoft.ML.OnnxRuntime.Managed.1.6.0-dev-20210307-0735-9126faa35.nupkg and located at .\build\Windows\Release\Release\nuget-artifacts

Have you figured out what the mistake is?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants