Files
FastDeploy/custom_ops/xpu_ops/src/plugin
RuohengMa 12c76f8137 [XPU] add speculate_get_logits (#5497)
* [XPU] add speculate_step_system_cache

* [XPU] add speculate_step_system_cache

* [XPU] add speculate_get_logits

* delete context

* add ptr check

---------

Co-authored-by: cmcamdy <1027740945@qq.com>
Co-authored-by: YuBaoku <49938469+EmmonsCurse@users.noreply.github.com>
2025-12-12 15:38:30 +08:00
..

XPU PLUGIN

Standalone build and test.

$ cd plugin
Modify ./build.sh to set the path of XDNN, XRE and XTDK.
$ ./build.sh

$ cd example
Modify ./example/build.sh to set the path of XDNN and XRE.
$ ./build.sh
$ ./run.sh

Build with PaddlePaddle

Copy to the source code of PaddlePaddle.

$ cp -rf plugin <path_to_paddle_source_code>/paddle/phi/xpu

Add -DWITH_XPU_PLUGIN=ON as extra cmake arguments.

$ cmake .. <other_cmake_args> -DWITH_XPU_PLUGIN=ON