Comments (2)
have never tried, i think, but see no reason why not. let me know if you run into any issues
from cudakdtree.
I tried the following:
template<typename T, class Mem>
void kdtreeSearch<T,Mem>::find_closet_host( int numQueryData, int *traceIndex, T const* x, T const* y, T const* z, T const* w ){
for( size_t queryIndex = 0; queryIndex < numQueryData; ++queryIndex ){
PointPlusIndex queryPoint;
queryPoint.pos.x = (float) x[queryIndex];
queryPoint.pos.y = (float) y[queryIndex];
queryPoint.pos.z = (float) z[queryIndex];
queryPoint.pos.w = (float) w[queryIndex];
int closestID = cukd::stackFree::fcp<PointPlusIndex,PointPlusIndex_traits>(queryPoint.pos, m_data, m_numSearchData);
traceIndex[queryIndex] = m_data[closestID].index;
}
}
but it looks like cukd::stackFree::fcp
cannot compile inside a host function!
error: calling a __device__ function("int cukd::stackFree::fcp< ::PointPlusIndex, ::PointPlusIndex_traits> ( ::T2::point_t, const T1 *, int, ::cukd::FcpSearchParams)") from a __host__ function("find_closet_host") is not allowed
int closestID = cukd::stackFree::fcp<PointPlusIndex,PointPlusIndex_traits>(queryPoint.pos, m_data, m_numSearchData);
from cudakdtree.
Related Issues (12)
- The performance via flann_cuda kdtree as baseline? HOT 1
- performance affected by distribution of points HOT 10
- #define FCP2 1 HOT 4
- Licence on the code? HOT 2
- build error HOT 2
- Wrong results with some datasets and builders HOT 12
- cudErrorNoKernelImageForDevice: no kernel image is available for execution on the device HOT 2
- error: qualifiers dropped in binding reference of type "PointPlusPayload &" to initializer of type "const PointPlusPayload" HOT 5
- How to keep track of the order of d_points after calling buildTree? HOT 1
- Cannot find the closest point in 4 dimension using `stackBased::fcp` or `stackFree` algorithm HOT 5
- KDtree on k-dimensions?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cudakdtree.