xmba15 / generic_dbscan

generic DBSCAN on CPU & GPU
25 stars 2 forks source link

Got a problem running project following to the instructions in Readme.md #8

Open kien-vu-uet opened 12 months ago

kien-vu-uet commented 12 months ago

Hi everybody, I'm having a problem running the command according to the instructions in Readme.md, Please help me solve it so I can run it with my dataset. Thanks a lot!

image

xmba15 commented 12 months ago

Hi @kien-vu-uet

The necessary commands you need to run with docker:

# build
docker build -f ./dockerfiles/ubuntu2004_gpu.dockerfile -t dbscan_gpu .

# run
docker run -it --rm --gpus all -v `pwd`:/workspace dbscan_gpu

# and run
make gpu_apps -j`nproc`

# before running examples
kien-vu-uet commented 12 months ago

Thanks! But how i get the output of DBSCAN (cluster ids, ...)

xmba15 commented 12 months ago

You should check from examples then.

https://github.com/xmba15/generic_dbscan/blob/master/examples/DBSCANPointCloud.cpp

https://github.com/xmba15/generic_dbscan/blob/master/examples/DBSCANPointCloudGPU.cpp