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

Windows build error #66

Open
tianleiwu opened this issue Mar 1, 2024 · 3 comments
Open

Windows build error #66

tianleiwu opened this issue Mar 1, 2024 · 3 comments
Assignees

Comments

@tianleiwu
Copy link

include\cudnn_frontend\graph_interface.h(444,19): Error C2248: 'cudnn_frontend::graph::Layernorm_attributes::forward_phase': cannot access private member declared in class 'cudnn_frontend::graph::Layernorm_attributes'

@Anerudhan Anerudhan self-assigned this Mar 2, 2024
@Anerudhan
Copy link
Collaborator

Anerudhan commented Mar 2, 2024

Hi @tianleiwu thanks for reporting this.

Would you happen to know which MSVC compiler you are using? We do not observe this in our internal CI.

Also, confirming this is on the 1.1.2 release, right?


Edit: It looks obvious that we are using a protected member. Knowing the MSVC version, will help us repro this issue and fix for other attributes as well.

Thanks

@tianleiwu
Copy link
Author

tianleiwu commented Mar 3, 2024

Yes, it is on 1.1.2 release. MSVC version is 19.37.32825.0.

An example failed build: https://github.com/microsoft/onnxruntime/actions/runs/8118954587/job/22194111719?pr=19470


fused_conv.cc
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend/graph_interface.h(444,19): error C2248: 'cudnn_frontend::graph::Layernorm_attributes::forward_phase': cannot access private member declared in class 'cudnn_frontend::graph::Layernorm_attributes' [D:\b\Debug\onnxruntime_providers_cuda.vcxproj]
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend\graph_properties.h(741,20): note: see declaration of 'cudnn_frontend::graph::Layernorm_attributes::forward_phase'
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend\graph_properties.h(736,7): note: see declaration of 'cudnn_frontend::graph::Layernorm_attributes'
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend/graph_interface.h(468,19): error C2248: 'cudnn_frontend::graph::Instancenorm_attributes::forward_phase': cannot access private member declared in class 'cudnn_frontend::graph::Instancenorm_attributes' [D:\b\Debug\onnxruntime_providers_cuda.vcxproj]
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend\graph_properties.h(768,20): note: see declaration of 'cudnn_frontend::graph::Instancenorm_attributes::forward_phase'
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend\graph_properties.h(763,7): note: see declaration of 'cudnn_frontend::graph::Instancenorm_attributes'
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend/graph_interface.h(711,19): error C2248: 'cudnn_frontend::graph::Rmsnorm_attributes::forward_phase': cannot access private member declared in class 'cudnn_frontend::graph::Rmsnorm_attributes' [D:\b\Debug\onnxruntime_providers_cuda.vcxproj]
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend\graph_properties.h(991,20): note: see declaration of 'cudnn_frontend::graph::Rmsnorm_attributes::forward_phase'
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend\graph_properties.h(986,7): note: see declaration of 'cudnn_frontend::graph::Rmsnorm_attributes'
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend/graph_interface.h(736,19): error C2248: 'cudnn_frontend::graph::Rmsnorm_backward_attributes::use_dbias': cannot access private member declared in class 'cudnn_frontend::graph::Rmsnorm_backward_attributes' [D:\b\Debug\onnxruntime_providers_cuda.vcxproj]
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend\graph_properties.h(1024,25): note: see declaration of 'cudnn_frontend::graph::Rmsnorm_backward_attributes::use_dbias'
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend\graph_properties.h(1019,7): note: see declaration of 'cudnn_frontend::graph::Rmsnorm_backward_attributes'
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend/graph_interface.h(780,19): error C2248: 'cudnn_frontend::graph::SDPA_attributes::is_inference': cannot access private member declared in class 'cudnn_frontend::graph::SDPA_attributes' [D:\b\Debug\onnxruntime_providers_cuda.vcxproj]
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend\graph_properties.h(1162,25): note: see declaration of 'cudnn_frontend::graph::SDPA_attributes::is_inference'
D:\b\Debug_deps\cudnn_frontend-src\include\cudnn_frontend\graph_properties.h(1157,7): note: see declaration of 'cudnn_frontend::graph::SDPA_attributes'

@Anerudhan
Copy link
Collaborator

Hi @tianleiwu ,

I tried updating the MSVC version in our CI-CD but could not reproduce this error. Looking at the build log from the ONNX MR that you linked, I see

D:\b\Debug>"C:\vss-agent\2.314.1\_work\onnxruntime\onnxruntime\cuda_sdk\v12.2\bin\nvcc.exe" --use-local-env -ccbin "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\HostX64\x64" -x

which seems to be different from 19.37.32825

Is there any specific flags you are using? Because, I do not see anything explicitly incorrect in the code.

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