Skip to content

Commit

Permalink
Support more SM
Browse files Browse the repository at this point in the history
  • Loading branch information
leif-FLNV committed Dec 2, 2021
1 parent 40c1aa3 commit cd59161
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions cuda-cluster/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ ifeq ($(TARGET_ARCH), aarch64)
endif
endif

ifeq ($(CUDA_VERSION),10010)
ifeq ($(CUDA_VERSION),10020)
SMS_TURING ?= 75
endif

# Gencode arguments
SMS ?= 30 35 50 53 60 61 $(SMS_VOLTA) $(SMS_TURING)
SMS ?= 30 35 37 50 52 53 60 61 62 $(SMS_VOLTA) $(SMS_TURING)
$(info SMS: $(SMS))

ifeq ($(GENCODE_FLAGS),)
Expand Down
6 changes: 3 additions & 3 deletions cuda-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ PointCloud representing the Cluster: 427 data points.
```
## Perforamnce table
```
GPU CPU
count of points cloud 17w+ 17w+
Cluster cost time(ms) 10.3122 4016.85
GPU CPU
Count of points cloud 17w+ 17w+
Cluster cost time(ms) 10.3122 4016.85
```
**How To Check the Version of the Lib**
-------------------------------------------------
Expand Down
Binary file modified cuda-cluster/lib/libcudacluster.so
Binary file not shown.
4 changes: 2 additions & 2 deletions cuda-filter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ ifeq ($(TARGET_ARCH), aarch64)
endif
endif

ifeq ($(CUDA_VERSION),10010)
ifeq ($(CUDA_VERSION),10020)
SMS_TURING ?= 75
endif

# Gencode arguments
SMS ?= 30 35 50 53 60 61 $(SMS_VOLTA) $(SMS_TURING)
SMS ?= 30 35 37 50 52 53 60 61 62 $(SMS_VOLTA) $(SMS_TURING)
$(info SMS: $(SMS))

ifeq ($(GENCODE_FLAGS),)
Expand Down
10 changes: 5 additions & 5 deletions cuda-filter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ PointCloud after filtering: 3440 data points (x y z).
**Perforamnce table**
-------------------------------------------------
```
PASSTHROUGH GPU CPU
PASSTHROUGH GPU CPU
count of points cloud 11w+ 11w+
dim X X
down,up FilterLimits (-0.5, 0.5) (-0.5, 0.5)
dim X X
down,up FilterLimits (-0.5, 0.5) (-0.5, 0.5)
limitsNegative false false
Points selected 5110 5110
cost time(ms) 0.660954 2.97487
```
```
VOXELGRID GPU CPU
VOXELGRID GPU CPU
count of points cloud 11w+ 11w+
LeafSize (1,1,1) (1,1,1)
LeafSize (1,1,1) (1,1,1)
Points selected 3440 3440
cost time(ms) 3.12895 7.26262
```
Expand Down
Binary file modified cuda-filter/lib/libcudafilter.so
Binary file not shown.
4 changes: 2 additions & 2 deletions cuda-icp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ ifeq ($(TARGET_ARCH), aarch64)
endif
endif

ifeq ($(CUDA_VERSION),10010)
ifeq ($(CUDA_VERSION),10020)
SMS_TURING ?= 75
endif

# Gencode arguments
SMS ?= 30 35 50 53 60 61 $(SMS_VOLTA) $(SMS_TURING)
SMS ?= 30 35 37 50 52 53 60 61 62 $(SMS_VOLTA) $(SMS_TURING)
$(info SMS: $(SMS))

ifeq ($(GENCODE_FLAGS),)
Expand Down
2 changes: 1 addition & 1 deletion cuda-icp/lib/cudaICP.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

class cudaICP
{
public:
public:
/*
nPCountM and nQCountM are the maximum of count for input clouds
They are used to pre-allocate memory.
Expand Down
Binary file modified cuda-icp/lib/libcudaicp.so
Binary file not shown.
4 changes: 2 additions & 2 deletions cuda-octree/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ ifeq ($(TARGET_ARCH), aarch64)
endif
endif

ifeq ($(CUDA_VERSION),10010)
ifeq ($(CUDA_VERSION),10020)
SMS_TURING ?= 75
endif

# Gencode arguments
SMS ?= 30 35 50 53 60 61 $(SMS_VOLTA) $(SMS_TURING)
SMS ?= 30 35 37 50 52 53 60 61 62 $(SMS_VOLTA) $(SMS_TURING)
$(info SMS: $(SMS))

ifeq ($(GENCODE_FLAGS),)
Expand Down
4 changes: 2 additions & 2 deletions cuda-octree/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ Points selected: 4751
**Perforamnce table**
-------------------------------------------------
```
Approx nearest GPU CPU
Approx nearest GPU CPU
points count of tree 7000 7000
points count of target 7000 7000
Distance Error 0.721 2.75
cost time(ms) 2.55 11.67
```
```
radiusSearch GPU CPU
radiusSearch GPU CPU
points count of tree 7000 7000
points selected 4751 4751
cost time(ms) 0.083 1.29
Expand Down
2 changes: 1 addition & 1 deletion cuda-octree/lib/cudaOctree.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

class cudaTree
{
public:
public:
cudaTree(float *input, int nCount, float resolution, cudaStream_t stream = 0);
~cudaTree(void);

Expand Down
Binary file modified cuda-octree/lib/libcudaoctree.so
Binary file not shown.
4 changes: 2 additions & 2 deletions cuda-octree/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@ void testPCL(pcl::PointCloud<pcl::PointXYZ>::Ptr cloudSrc,

int main(int argc, const char **argv)
{
std::string file = "./table_scene_lms400.pcd";
std::string file = "./test_P.pcd";
if(argc > 1) file = (argv[1]);

std::string file1 = "./table_scene_lms400.pcd";
std::string file1 = "./test_Q.pcd";
if(argc > 1) file1 = (argv[2]);

Getinfo();
Expand Down
4 changes: 2 additions & 2 deletions cuda-segmentation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ ifeq ($(TARGET_ARCH), aarch64)
endif
endif

ifeq ($(CUDA_VERSION),10010)
ifeq ($(CUDA_VERSION),10020)
SMS_TURING ?= 75
endif

# Gencode arguments
SMS ?= 30 35 50 53 60 61 $(SMS_VOLTA) $(SMS_TURING)
SMS ?= 30 35 37 50 52 53 60 61 62 $(SMS_VOLTA) $(SMS_TURING)
$(info SMS: $(SMS))

ifeq ($(GENCODE_FLAGS),)
Expand Down
2 changes: 1 addition & 1 deletion cuda-segmentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Model inliers: 7519
GPU CPU
count of points cloud 11w+ 11w+
Points selected 7519 7519
cost time(ms) 14.5712 67.2766
cost time(ms) 14.5712 67.2766
```
**How To Check the Version of the Lib**
-------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions cuda-segmentation/lib/cudaSegmentation.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ typedef struct {

class cudaSegmentation
{
public:
public:
//Now Just support: SAC_RANSAC + SACMODEL_PLANE
cudaSegmentation(int ModelType, int MethodType, cudaStream_t stream = 0);

Expand All @@ -82,7 +82,7 @@ class cudaSegmentation
int set(segParam_t param);
void segment(float *cloud_in, int nCount,
int *index, float *modelCoefficients);
private:
private:
void *m_handle = NULL;
};

Expand Down
Binary file modified cuda-segmentation/lib/libcudasegmentation.so
Binary file not shown.

0 comments on commit cd59161

Please sign in to comment.