Skip to content

Commit

Permalink
Compile with -O0 for Inductor
Browse files Browse the repository at this point in the history
Differential Revision: D49113783

fbshipit-source-id: 60910b890997ff523b51748aebaad596f23e8b73
  • Loading branch information
SherlockNoMad authored and facebook-github-bot committed Sep 28, 2023
1 parent 7f57373 commit eaf27cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/_inductor/codecache.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ def cpp_wrapper_flags() -> str:


def optimization_flags() -> str:
base_flags = "-O3 -ffast-math -fno-finite-math-only"
base_flags = "-O0 -ffast-math -fno-finite-math-only"
if config.is_fbcode():
# FIXME: passing `-fopenmp` adds libgomp.so to the generated shared library's dependencies.
# This causes `ldopen` to fail in fbcode, because libgomp does not exist in the default paths.
Expand Down

0 comments on commit eaf27cb

Please sign in to comment.