mariusmuja/flann — Issue #20: KDTreeCuda3dIndex crashes with Cuda 4.0, VS2010, 64-bit
Author: kdre
Created: 2011-11-20 16:07:45+00:00
State: open

Hi,

I just wanted to give the cuda knn search a try and cloned the latest git repository.

However, it crashes when calling buildIndex.
According to a post [1] I found, it could be due to the float4 datatype.

Here is a minimal program to reproduce the crash:

void main(){
const int size = 1000;
flann::Matrix dataset (new float[size*3] , size, 3);
for(int i=0;i<1000;i++){
dataset[i][0]=i;
dataset[i][1]=i;
dataset[i][2]=i;
}

flann::Index> *m_Index =
new flann::Index> ( dataset, flann::KDTreeCuda3dIndexParams() );

m_Index->buildIndex();

}

Is this bug already known? Are there any workarounds/solutions?

[1] http://goo.gl/m48mK