Skip to content

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

@MinYang-01

Description

@MinYang-01

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions