Skip to content

Commit 82e952f

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

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

fbgemm_gpu/experimental/gen_ai/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ file(GLOB experimental_gen_ai_cpp_source_files_gpu
2828

2929
# Set the source file for FB only CPP
3030
if(USE_FB_ONLY)
31-
file(GLOB fb_only_ops_sources
31+
file(GLOB fb_only_cxx_sources
3232
fb/src/*/*.cu
3333
fb/src/*/*.cpp)
34-
list(APPEND experimental_gen_ai_cpp_source_files_gpu ${fb_only_ops_sources})
34+
list(APPEND experimental_gen_ai_cpp_source_files_gpu ${fb_only_cxx_sources})
3535
endif()
3636

3737
# CUDA-specific sources
@@ -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)