Skip to content

Commit

Permalink
Fix invalid escape sequence (#790)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #790

Fixes:
```
/re_cwd/buck-out/v2/gen/fbcode/3c31cd45381cab49/aitemplate/AITemplate/fb/pt-ops/fmha_attention/__test_fmha_attention_op__/test_fmha_attention_op#link-tree/aitemplate/backend/cuda/target_def.py:393: DeprecationWarning: invalid escape sequence '\,'
```

Reviewed By: kadeng

Differential Revision: D46947138

fbshipit-source-id: 81c77e3f094f3b1cb13448be3f37c4492591429a
  • Loading branch information
r-barnes authored and facebook-github-bot committed Jun 24, 2023
1 parent f0f676f commit 9336061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/aitemplate/backend/cuda/target_def.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def _build_compile_options(self):
self.nvcc_options_json["args"]
+ ["-I" + path for path in include_paths]
+ [
f"-Xcompiler '-Wp\,@{fb_include_path}'", # noqa: W605
f"-Xcompiler '-Wp\\,@{fb_include_path}'",
"-Xcompiler -Wno-strict-aliasing",
"-Xcompiler -Wno-narrowing",
"-Xcompiler -Wno-error=maybe-uninitialized",
Expand Down

0 comments on commit 9336061

Please sign in to comment.