Commit 29d18b7
committed
Propagate CuTe DSL cudart shim and --wrap to static-lib consumers
cute_dsl_setup() linked the cutedsl cudart shim and the CUDA<12.8
-Wl,--wrap=_cudaLaunchKernelEx option PRIVATEly. For STATIC_LIBRARY link
targets a static archive performs no link step, so neither reached the final
executable, breaking the CuTe DSL kernels on JetPack 6 / CUDA 12.6.
Propagate the shim via PUBLIC and the --wrap link option via INTERFACE for
static-library targets so the consuming executable inherits them; keep PRIVATE
for shared/other targets.
Signed-off-by: suharvest <suharvest@gmail.com>1 parent 7d32c0b commit 29d18b7
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
778 | | - | |
| 778 | + | |
| 779 | + | |
779 | 780 | | |
780 | 781 | | |
781 | 782 | | |
| |||
787 | 788 | | |
788 | 789 | | |
789 | 790 | | |
790 | | - | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
791 | 796 | | |
792 | 797 | | |
793 | 798 | | |
| |||
0 commit comments