CCTag icon indicating copy to clipboard operation
CCTag copied to clipboard

CUDA detection not working Windows 10

Open nicolasdp88 opened this issue 2 years ago • 10 comments

I successfully compiled cctag from the develop branch.

Dependencies are from vcpkg, with a slight patch to fix Boost constexpr issues.

CCTag develop is configured like this :

cmake -DCMAKE_TOOLCHAIN_FILE="[..]/vcpkg.cmake" -DCCTAG_ENABLE_SIMD_AVX2=ON -DBUILD_SHARED_LIBS=ON -DCCTAG_WITH_CUDA=ON -DCCTAG_CUDA_CC_CURRENT_ONLY=ON ..

It compiles fine in Release.

When running detection.exe on the samples, I get the expected result using CPU, but as soon as I use CUDA I get no candidates detected.

`Creating TagPipe 0 Initializing TagPipe 0 Loading image 0 into TagPipe 0 Total time: 0.228465s wall, 0.093750s user + 0.125000s system = 0.218750s CPU (95.7%)

#frame 0 Detected 0 candidates

0 markers detected and identified`

Window 10 x64 VS2019 Boost 1.76 CUDA V11.4.100 CCTag develop from github

RTX3070, if it changes anything.

nicolasdp88 avatar Aug 16 '21 19:08 nicolasdp88

I observe the same behavior using the exact same version as you (CUDA and boost) except that I have a Quadro P1000.

Blup1980 avatar Aug 17 '21 12:08 Blup1980

Hi,

I have the same issue, but running on Ubuntu. When detection script is running on CPU everything is OK, detect the candidates, but when is running on GPU I have zero detected candidates.

Did you solved this?

Thank you!

cristian893 avatar Aug 18 '21 15:08 cristian893

Hi,

I have the same issue, but running on Ubuntu. When detection script is running on CPU everything is OK, detect the candidates, but when is running on GPU I have zero detected candidates.

Did you solved this?

Thank you!

Which card do you have?

simogasp avatar Aug 18 '21 15:08 simogasp

Hi, Nvidia GTX 1050 TI

cristian893 avatar Aug 18 '21 16:08 cristian893

I did a clean install and now I'm getting the same on the 1080. Clearly something went really wrong after fixing the CPU-side code. I'm afraid figuring it out will take a while :-(

griwodz avatar Aug 19 '21 06:08 griwodz

Is there older release or older version that I could try to run on GPU?

Thank you!

cristian893 avatar Aug 19 '21 08:08 cristian893

Hello all!

First time playing with CUDA, but I've got this thing working.

@griwodz Problem was that it was using too many threads per block when launching vote::eval_chosen in frame_07c_eval.cu.

Made the block size 24 and all works as expected.

@simogasp How can I submit a patch for this? Not much of a github contributor either...

nicolasdp88 avatar Aug 23 '21 15:08 nicolasdp88

Hello all!

First time playing with CUDA, but I've got this thing working.

@griwodz Problem was that it was using too many threads per block when launching vote::eval_chosen in frame_07c_eval.cu.

Made the block size 24 and all works as expected.

@simogasp How can I submit a patch for this? Not much of a github contributor either...

What did you changed exactly to fix the issue? I was trying to reproduce your fix but I can't figure out exactly where you changed what.

you can post here an extract of the code that you changed.

Blup1980 avatar Sep 24 '21 11:09 Blup1980

@Blup1980

Sorry I did not see this sooner. Here is what I patched

cuda patch.txt

nicolasdp88 avatar Oct 22 '21 17:10 nicolasdp88

@nicolasdp88 I have changed the code according to CUDa patch.txt, but still can't detect it. May I ask where is the problem? Can you give me the EXE you compiled

z905762202 avatar Aug 29 '22 08:08 z905762202

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.

github-actions[bot] avatar Sep 23 '23 00:09 github-actions[bot]