Skip to content

Commit dc8f9d0

Browse files
q10facebook-github-bot
authored andcommitted
Add FB python sources into genai CMakeLists.txt (pytorch#3886)
Summary: - Add FB python sources into genai CMakeLists.txt Differential Revision: D71930483
1 parent 851815d commit dc8f9d0

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

fbgemm_gpu/experimental/gen_ai/CMakeLists.txt

Lines changed: 12 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,18 @@ 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+
55+
file(GLOB_RECURSE fb_only_py_sources
56+
fb/gen_ai/*/*.py)
57+
list(APPEND experimental_gen_ai_python_source_files ${fb_only_py_sources})
58+
endif()
59+
5660

5761
################################################################################
5862
# Build Shared Library

0 commit comments

Comments
 (0)