composable_kernel icon indicating copy to clipboard operation
composable_kernel copied to clipboard

[Issue]: RFE header only install

Open trixirt opened this issue 9 months ago • 7 comments

Problem Description

Building the library takes an extremely long time and only the headers may be needed. Is there or could there be a build option that only installed the headers and cmake rules ?

Operating System

Fedora Rawhide

CPU

All

GPU

AMD Instinct MI300X

Other

No response

ROCm Version

ROCm 6.0.0

ROCm Component

No response

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

trixirt avatar Mar 27 '25 18:03 trixirt

A usecase where this would be helpful. https://github.com/pytorch/pytorch/issues/149809

trixirt avatar Mar 27 '25 18:03 trixirt

Hi @trixirt. Internal ticket has been created to assist with your issue. Thanks!

ppanchad-amd avatar Mar 31 '25 14:03 ppanchad-amd

Hi @trixirt, thank you for your installation suggestion. To the best of my knowledge, a header-only installation isn't currently supported. If you don't require the entire library, you can build just the specific kernel or set of instances you need to reduce build time. Alternatively, you can install the pre-built package using apt-get install.

taylding-amd avatar Apr 03 '25 21:04 taylding-amd

This is a request for a header only install path. Just copying the headers will not provide a cmake install that other packages like pytorch can search for.

trixirt avatar Apr 03 '25 22:04 trixirt

Sure, I have spoken with the development team. We will discuss this internally and do our best to accommodate your request.

taylding-amd avatar Apr 07 '25 20:04 taylding-amd

Hi, another use case is OpenImageDenoise - from the maintenance perspective ability to have a header only installation would help.

AngryLoki avatar Jun 11 '25 14:06 AngryLoki

This would be nice for torch which needs a generated config.h from https://github.com/ROCm/composable_kernel/blob/develop/include/ck/config.h.in which is produced by cmake for its CK attention implementation but does not require the built .so/kernels.

LunNova avatar Aug 12 '25 15:08 LunNova