Skip to content

Commit 054b15d

Browse files
check in lib file for now and throw it in the pip install (#15713)
the .lib file comes from compiling aoti_cuda_shims on windows. Ideally we will not check this in but rather cross compile it on the fly from linux. Thats coming soonish. We need the .lib file in order to lower for cuda windows backend. Cuda windows uses AOTI as the acceleration lib, AOTI generates executable code that calls into the shim. On windows you must provide a reference to all symbols you will link against (unlike linux) so we need the .lib artifact.
1 parent 234c288 commit 054b15d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
14.1 KB
Binary file not shown.

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,5 +918,11 @@ def run(self): # noqa C901
918918
is_dynamic_lib=True,
919919
dependent_cmake_flags=["EXECUTORCH_BUILD_KERNELS_LLM_AOT"],
920920
),
921+
BuiltFile(
922+
src_dir="backends/cuda/runtime/",
923+
src_name="aoti_cuda_shims.lib",
924+
dst="executorch/data/lib/",
925+
dependent_cmake_flags=[],
926+
),
921927
],
922928
)

0 commit comments

Comments
 (0)