flashinfer-ai / flashinfer

FlashInfer: Kernel Library for LLM Serving
https://flashinfer.ai
Apache License 2.0
1.1k stars 98 forks source link

[CMake] Add positional independent code (PIC) option to kernels #198

Closed MasterJH5574 closed 4 months ago

MasterJH5574 commented 5 months ago

This PR adds the -fPIC option to prefill/decode kernels for packaging.

MasterJH5574 commented 5 months ago

Pending for validation. Marked as draft for now.

yzh119 commented 4 months ago

@MasterJH5574 Does this solution work?

MasterJH5574 commented 4 months ago

@yzh119 yes it addresses the PIC issue. But still another commit is needed to fix some other issues.