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

Skip to content

Commit 160ccf0

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 Differential Revision: D74335570
1 parent a2e2f90 commit 160ccf0

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

WORKSPACE

Lines changed: 2 additions & 2 deletions
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(

setup.py

Lines changed: 6 additions & 1 deletion
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

@@ -1154,6 +1154,11 @@ def main():
11541154
os.getenv("CXXFLAGS", "") + " -ffunction-sections -fdata-sections"
11551155
)
11561156

1157+
# Disable fbgemm auto-vectorization to prevent excessive library size, which requires symbol relocation only allowed in static libraries
1158+
os.environ["CXXFLAGS"] = (
1159+
os.getenv("CXXFLAGS", "") + " -DDISABLE_FBGEMM_AUTOVEC=ON"
1160+
)
1161+
11571162
# Parse the command line and check the arguments before we proceed with
11581163
# building deps and setup. We need to set values so `--help` works.
11591164
dist = Distribution()

third_party/fbgemm

Submodule fbgemm updated 1236 files

0 commit comments

Comments
 (0)
0