8000 Update fbgemm pinned version (#153072) · pytorch/pytorch@3bea96d · GitHub
[go: up one dir, main page]

Skip to content

Commit 3bea96d

Browse files
gchalumpfacebook-github-bot
authored andcommitted
Update fbgemm pinned version (#153072)
Summary: Pull Request resolved: #153072 Update fbgemm pinned version. Related update in fbgemm: D74434751 Included changes: - Update fbgemm external dependencies directory in setup.py Test Plan: PyTorch CI Differential Revision: D74335570
1 parent 59c3463 commit 3bea96d

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

WORKSPACE

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ new_local_repository(
144144

145145
new_local_repository(
146146
name = "asmjit",
147-
build_file = "//third_party:fbgemm/third_party/asmjit.BUILD",
148-
path = "third_party/fbgemm/third_party/asmjit",
147+
build_file = "//third_party:fbgemm/external/asmjit.BUILD",
148+
path = "third_party/fbgemm/external/asmjit",
149149
)
150150

151151
new_local_repository(

cmake/Dependencies.cmake

+5-1
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,10 @@ if(USE_FBGEMM)
682682
set_property(TARGET fbgemm_avx2 PROPERTY POSITION_INDEPENDENT_CODE ON)
683683
set_property(TARGET fbgemm_avx512 PROPERTY POSITION_INDEPENDENT_CODE ON)
684684
set_property(TARGET fbgemm PROPERTY POSITION_INDEPENDENT_CODE ON)
685+
target_compile_definitions(fbgemm_generic PUBLIC DISABLE_FBGEMM_AUTOVEC)
686+
target_compile_definitions(fbgemm_avx2 PUBLIC DISABLE_FBGEMM_AUTOVEC)
687+
target_compile_definitions(fbgemm_avx512 PUBLIC DISABLE_FBGEMM_AUTOVEC)
688+
685689
# TODO: Remove next two lines after fbgemm pin is updated
686690

687691
# For more details see https://github.com/pytorch/pytorch/issues/150846
@@ -698,7 +702,7 @@ if(USE_FBGEMM)
698702
target_compile_options_if_supported(fbgemm -Wno-extra-semi)
699703
endif()
700704
endif()
701-
705+
target_compile_definitions(fbgemm PUBLIC DISABLE_FBGEMM_AUTOVEC)
702706
if(USE_FBGEMM)
703707
list(APPEND Caffe2_DEPENDENCY_LIBS fbgemm)
704708
endif()

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def not_exists_or_empty(folder):
443443
],
444444
)
445445
check_for_files(
446-
os.path.join(third_party_path, "fbgemm", "third_party", "asmjit"),
446+
os.path.join(third_party_path, "fbgemm", "external", "asmjit"),
447447
["CMakeLists.txt"],
448448
)
449449

third_party/fbgemm

Submodule fbgemm updated 1237 files

0 commit comments

Comments
 (0)
0