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

Comple sucessed, but get wrong result #14

Open
BaldrLector opened this issue Dec 18, 2020 · 2 comments
Open

Comple sucessed, but get wrong result #14

BaldrLector opened this issue Dec 18, 2020 · 2 comments

Comments

@BaldrLector
Copy link

BaldrLector commented Dec 18, 2020

Hi @dgrzech , thanks for your kindly sharing of the source code, it really helps me.
However, when I compile the code and try to run it at the umbrella dataset, I find the wrong result will be produced.

Results at 149 frames,
image

Is the data need any pre-processing?
Thanks for your reply in advance, I very much appreciate it.

@BaldrLector BaldrLector changed the title Wrong results Comple sucessed, but get wrong result Dec 18, 2020
@shubhMaheshwari
Copy link

@BaldrLector were you able to resolve the issue?
I added a print function at line 99 of marching_cubes.cu which somehow made the module work. Below is the result on frame 116.
000116

Without adding the print function, I am getting illegal memory access because the number of active voxels would be 0. I am fairly new to CUDA programming but my assumption is that we are facing some synchronization issue where a GPU thread is accessing some part of memory not initialized.

Adding a print function is just a hack that has significantly increased the computation time. It would be very helpful if @dgrzech could look at it.

I am running the application on
OS: Ubuntu 18.04
g++: 7.5.0
GPU: NVIDIA 1060 (6GB)
Nvidia Driver Version: 450.102.04
CUDA Version: 11.0

Thanks.

@LuyaooChen
Copy link

LuyaooChen commented Jul 8, 2021

I met this issue too. Thanks for @shubhMaheshwari 's help, adding a print function or __syncthreads() at line 99 of marching_cubes.cu is helpful, though I can't locate the problem.
btw I also run dynamicfusion and dynfu, and getting emtpy volume. The number of active voxels is 0. These 3 code base on the similar kfusion module. So I think these are caused by similar reason, but adding a print function at the same position is not helpful to dynamicfusion and dynfu.
My CUDA version is 10.2 .

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

3 participants