ApolloAuto / apollo

An open autonomous driving platform
Apache License 2.0
25.02k stars 9.67k forks source link

Perception: centerpoint do inference with paddle under arm64 #14784

Open ryanyej opened 1 year ago

ryanyej commented 1 year ago

as title

SeasoulChris commented 1 year ago

you can try to compile the op undar arm64 yourselft, the source code of op here:custom_ops

ryanyej commented 1 year ago

Really helpful, I will look into this. Thank you

ryanyej commented 1 year ago

I successful compile libpd_infer_custom_op.so lib and paddleinference.so under arm64. However arm64 doesn't support MKL-DNN&MKL-ML. So paddleinference.so build with openblas. When I tried to do inference with centerpoint project under arm64, showed [perception_lidar] [perception_lidar] ---------------------- [perception_lidar] Error Message Summary: [perception_lidar] ---------------------- [perception_lidar] ExternalError: after determining tmp storage requirements for exclusive_scan: cudaErrorInvalidDeviceFunction: invalid device function (at /home/paddle/data/xly/workspace/24117/Paddle/paddle/fluid/framework/custom_operator.cc:302) Could there be any possible reason may lead to this? Or paddle doesn't support arm64 inference? Looking forward for your reply.

ryanyej commented 1 year ago

@daohu527 Please check this updated question. Thx

daohu527 commented 1 year ago

@ryanyej yeah, we can discuss on paddle inference repo then.