Skip to content

Commit

Permalink
handle memset_pattern16
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Dec 10, 2023
1 parent 4ee70bd commit 607a43c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ load("@rules_python//python/pip_install:repositories.bzl", "pip_install_dependen
pip_install_dependencies()

ENZYME_COMMIT = "cbb970161fd41ce55da028f0960a441382b07112"
ENZYME_SHA256 = ""
ENZYME_SHA256 = "ec0450fdbc7f18cab46492acd3288b8347fa222317f9ff475768f5f10c45478c"

http_archive(
name = "enzyme",
Expand Down
4 changes: 4 additions & 0 deletions enzyme_jax/clang_compile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,10 @@ struct tensor<T, n0, N...>
if (MTI->getSource() == prev)
continue;
}
if (auto CI = dyn_cast<CallInst>(cur))
if (auto F = CI->getCalledFunction())
if (F->getName() == "memset_pattern16")
continue;
if (auto MS = dyn_cast<MemSetInst>(cur)) {
toErase.insert(MS);
continue;
Expand Down

0 comments on commit 607a43c

Please sign in to comment.