JinwoongKim / Massively-Parallel-Query-Processing-on-Heterogeneous-Architecture

Homepage
http://jinwoongkim.github.io/Massively-Parallel-Query-Processing-on-Heterogeneous-Architecture/
1 stars 2 forks source link

Run search function on multiple trees shows a wrong result #34

Open JinwoongKim opened 8 years ago

JinwoongKim commented 8 years ago

When I run MPHR and Hybrid together, it shows a wrong result in commit ddd741a1fbe9965867a131a9a0856a398ba332d0

ferrari01@~/git/ursus$ ./bin/cuda -d 1m -q 1000 -i m -i h
20:57:00,304 [mphr.cpp:141:Search] INFO  - Search Time on the GPU = 0.621984ms
20:57:00,304 [mphr.cpp:146:Search] INFO  - Hit : 1
20:57:00,304 [mphr.cpp:147:Search] INFO  - Root visit count : 1000
20:57:00,304 [mphr.cpp:148:Search] INFO  - Node visit count : 0
20:57:00,358 [hybrid.cpp:231:Search] INFO  - Search Time on the GPU = 53.208736ms
20:57:00,358 [hybrid.cpp:236:Search] INFO  - Hit : 18
20:57:00,358 [hybrid.cpp:237:Search] INFO  - Node visit count on CPU : 5298
20:57:00,358 [hybrid.cpp:238:Search] INFO  - Node visit count on GPU : 123136

But if I run it separately, it shows a correct result

ferrari01@~/git/ursus$ ./bin/cuda -d 1m -q 1000 -i h
20:58:20,498 [hybrid.cpp:231:Search] INFO  - Search Time on the GPU = 51.532417ms
20:58:20,498 [hybrid.cpp:236:Search] INFO  - Hit : 18
20:58:20,498 [hybrid.cpp:237:Search] INFO  - Node visit count on CPU : 5298
20:58:20,498 [hybrid.cpp:238:Search] INFO  - Node visit count on GPU : 123136

It seems hybrid indexing always shows a wrong result ...