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

[bug]cannot use thread_local specifier for a __constant__ variable ConsoleApplication1 E:\Desktop\VS-Test\09\ConsoleApplication1\popsift\gauss_filter.cu 21 #138

Open
MinYang-01 opened this issue Jan 11, 2022 · 2 comments
Labels
cuda issues related to cuda versions scope:build stale windows

Comments

@MinYang-01
Copy link

Describe the bug
A clear and concise description of what the bug is.
***[bug1]. cannot use thread_local specifier for a constant variable ConsoleApplication1 E:\Desktop\VS-Test\09\ConsoleApplication1\popsift\gauss_filter.cu 21
***[bug2]. error C2086 "popsift::GaussInfo popsift::d_gauss": redefine ConsoleApplication1 E:\Desktop\VS-Test\09\ConsoleApplication1\popsift\gauss_filter.cu 19
***[bug3]. error MSB3721 common“"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\nvcc.exe" -gencode=arch=compute_50,code="sm_50,compute_50" --use-local-env -ccbin "C:\works\VS_Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64" -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -g -D_DEBUG -D_CONSOLE -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W3 /nologo /Od /Fdx64\Debug\vc142.pdb /FS /Zi /RTC1 /MDd " -o x64\Debug\gauss_filter.cu.obj "E:\Desktop\VS-Test\09\ConsoleApplication1\popsift\gauss_filter.cu"”已退出,返回代码为 1。 ConsoleApplication1 C:\works\VS_Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 10.2.targets 764

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.
***The development environment I am using is
Windows10+VS2019+MSVC14.2+Cuda10.2
The GPU hardware used is GTX950M
During the compilation of your source code, the problem encountered in the gauss_filter.cu file is
“cannot use thread_local specifier for a constant variable ConsoleApplication1 E:\Desktop\VS Test\09\ConsoleApplication1\popsift\gauss_filter.cu 21”

Screenshots
If applicable, add screenshots to help explain your problem.
image

Log
If applicable, copy paste the relevant log output (please embed the text in a markdown code tag "```" )

Desktop (please complete the following and other pertinent information):

  • OS: [e.g. win 10, osx, ]
  • PopSift version: please specify if you are using a release version or your own build
    • Binary version (if applicable) [e.g. 2019.1]
    • Commit reference (if applicable) [e.g. 08ddbe2]

Additional context
Add any other context about the problem here.

@simogasp simogasp added cuda issues related to cuda versions scope:build windows labels Jan 11, 2022
@stale
Copy link

stale bot commented Jun 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 12, 2022
@simogasp simogasp removed the stale label Jun 12, 2022
@stale
Copy link

stale bot commented Nov 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda issues related to cuda versions scope:build stale windows
Projects
None yet
Development

No branches or pull requests

2 participants