popsift icon indicating copy to clipboard operation
popsift copied to clipboard

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

Open MinYang-01 opened this issue 2 years ago • 2 comments

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.

MinYang-01 avatar Jan 11 '22 08:01 MinYang-01

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[bot] avatar Jun 12 '22 22:06 stale[bot]

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[bot] avatar Nov 02 '22 03:11 stale[bot]