Skip to content

Commit 0e109d1

Browse files
q10facebook-github-bot
authored andcommitted
Add FB python sources into genai CMakeLists.txt (#3886)
Summary: X-link: facebookresearch/FBGEMM#978 Pull Request resolved: #3886 - Add FB python sources into genai CMakeLists.txt Differential Revision: D71930483
1 parent 851815d commit 0e109d1

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

fbgemm_gpu/experimental/gen_ai/CMakeLists.txt

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ file(GLOB experimental_gen_ai_cpp_source_files_gpu
2626
src/quantize/*.cpp
2727
src/quantize/*.cu)
2828

29-
# Set the source file for FB only CPP
30-
if(USE_FB_ONLY)
31-
file(GLOB fb_only_ops_sources
32-
fb/src/*/*.cu
33-
fb/src/*/*.cpp)
34-
list(APPEND experimental_gen_ai_cpp_source_files_gpu ${fb_only_ops_sources})
35-
endif()
36-
3729
# CUDA-specific sources
3830
file(GLOB_RECURSE experimental_gen_ai_cpp_source_files_cuda
3931
src/quantize/cutlass_extensions/*.cu
@@ -53,6 +45,14 @@ file(GLOB_RECURSE experimental_gen_ai_cpp_source_files_hip
5345
file(GLOB_RECURSE experimental_gen_ai_python_source_files
5446
gen_ai/*.py)
5547

48+
# Set the source file for FB only CPP
49+
if(USE_FB_ONLY)
50+
file(GLOB fb_only_cxx_sources
51+
fb/src/*/*.cu
52+
fb/src/*/*.cpp)
53+
list(APPEND experimental_gen_ai_cpp_source_files_gpu ${fb_only_cxx_sources})
54+
endif()
55+
5656

5757
################################################################################
5858
# Build Shared Library
@@ -82,3 +82,9 @@ add_to_package(
8282
DESTINATION fbgemm_gpu/experimental/gen_ai
8383
TARGETS fbgemm_gpu_experimental_gen_ai
8484
FILES ${experimental_gen_ai_python_source_files})
85+
86+
if(USE_FB_ONLY)
87+
install(
88+
DIRECTORY fb/gen_ai
89+
DESTINATION fbgemm_gpu/experimental/gen_ai)
90+
endif()

0 commit comments

Comments
 (0)