Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PointCloud
Flann
提交
74f04523
F
Flann
项目概览
PointCloud
/
Flann
通知
4
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Flann
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
74f04523
编写于
10月 18, 2011
作者:
M
Marius Muja
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed for CUDA compilation on Windows
上级
3a148fba
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
11 deletion
+18
-11
src/cpp/flann/algorithms/kdtree_cuda_3d_index.h
src/cpp/flann/algorithms/kdtree_cuda_3d_index.h
+1
-1
src/cpp/flann/util/any.h
src/cpp/flann/util/any.h
+4
-3
src/cpp/flann/util/cuda/result_set.h
src/cpp/flann/util/cuda/result_set.h
+13
-7
未找到文件。
src/cpp/flann/algorithms/kdtree_cuda_3d_index.h
浏览文件 @
74f04523
...
...
@@ -320,7 +320,7 @@ private:
private:
class
GpuHelper
;
struct
GpuHelper
;
GpuHelper
*
gpu_helper_
;
...
...
src/cpp/flann/util/any.h
浏览文件 @
74f04523
...
...
@@ -144,8 +144,9 @@ base_any_policy* get_policy()
}
}
// namespace anyimpl
struct
any
class
any
{
typedef
any
any_t
;
private:
// fields
anyimpl
::
base_any_policy
*
policy
;
...
...
@@ -196,7 +197,7 @@ public:
/// Assignment function.
template
<
typename
T
>
any
&
assign
(
const
T
&
x
)
any
_t
&
assign
(
const
T
&
x
)
{
reset
();
policy
=
anyimpl
::
get_policy
<
T
>
();
...
...
@@ -206,7 +207,7 @@ public:
/// Assignment operator.
template
<
typename
T
>
any
&
operator
=
(
const
T
&
x
)
any
_t
&
operator
=
(
const
T
&
x
)
{
return
assign
(
x
);
}
...
...
src/cpp/flann/util/cuda/result_set.h
浏览文件 @
74f04523
...
...
@@ -32,8 +32,14 @@
#include <flann/util/cuda/heap.h>
#include <limits>
__device__
__forceinline__
float
infinity
()
{
return
__int_as_float
(
0x7f800000
);
}
#ifndef INFINITY
#define INFINITY
__int_as_float(0x7f800000
)
#define INFINITY
infinity(
)
#endif
namespace
flann
...
...
@@ -48,7 +54,7 @@ struct SingleResultSet
DistanceType
bestDist
;
const
DistanceType
epsError
;
__
host__
__
device__
__device__
SingleResultSet
(
DistanceType
eps
)
:
bestIndex
(
-
1
),
bestDist
(
INFINITY
),
epsError
(
eps
){
}
__host__
__device__
...
...
@@ -71,7 +77,7 @@ struct SingleResultSet
DistanceType
*
resultDist
;
int
*
resultIndex
;
__
host__
__
device__
__device__
inline
void
setResultLocation
(
DistanceType
*
dists
,
int
*
index
,
int
thread
,
int
stride
)
{
...
...
@@ -123,7 +129,7 @@ struct KnnResultSet
const
DistanceType
epsError
;
__
host__
__
device__
__device__
KnnResultSet
(
int
knn
,
bool
sortResults
,
DistanceType
eps
)
:
foundNeighbors
(
0
),
largestHeapDist
(
INFINITY
),
k
(
knn
),
sorted
(
sortResults
),
epsError
(
eps
){
}
// __host__ __device__
...
...
@@ -187,7 +193,7 @@ struct KnnResultSet
float
*
resultDist
;
int
*
resultIndex
;
__
host__
__
device__
__device__
inline
void
setResultLocation
(
DistanceType
*
dists
,
int
*
index
,
int
thread
,
int
stride
)
{
...
...
@@ -438,7 +444,7 @@ struct KnnRadiusResultSet
DistanceType
*
resultDist
;
int
*
resultIndex
;
__
host__
__
device__
__device__
inline
void
setResultLocation
(
DistanceType
*
dists
,
int
*
index
,
int
thread
,
int
stride
)
{
...
...
@@ -527,4 +533,4 @@ struct RadiusResultSet
}
}
#endif
\ No newline at end of file
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录