mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
precisely specify the regexps of our unused-function exemptions
Summary: The previous values were not obviously regular expressions, but they were evaluated as such. Thus, they could have failed under a few circumstances: * the same path exists under a different repository (^ at the beginning protects against this) * the file matches with the prefix, any character, and then cpp, and then has some additional suffix ($ at the end and \. protects against this) Test Plan: Relied on CI. Reviewers: seemethere Subscribers: Tasks: Tags: Pull Request resolved: https://github.com/pytorch/pytorch/pull/79313 Approved by: https://github.com/malfet
This commit is contained in:
committed by
PyTorch MergeBot
parent
4b5647f068
commit
9cca8ae41a
20
.bazelrc
20
.bazelrc
@ -55,13 +55,13 @@ build --per_file_copt='^//.*\.cu$'@--compiler-options=-Werror=unused-function
|
||||
build --per_file_copt='^//.*\.(cpp|cc)$'@-Werror=unused-variable
|
||||
build --per_file_copt='^//.*\.cu$'@--compiler-options=-Werror=unused-variable
|
||||
|
||||
build --per_file_copt=//:aten/src/ATen/RegisterCompositeExplicitAutograd.cpp@-Wno-error=unused-function
|
||||
build --per_file_copt=//:aten/src/ATen/RegisterCompositeImplicitAutograd.cpp@-Wno-error=unused-function
|
||||
build --per_file_copt=//:aten/src/ATen/RegisterMkldnnCPU.cpp$@-Wno-error=unused-function
|
||||
build --per_file_copt=//:aten/src/ATen/RegisterNestedTensorCPU.cpp$@-Wno-error=unused-function
|
||||
build --per_file_copt=//:aten/src/ATen/RegisterQuantizedCPU.cpp$@-Wno-error=unused-function
|
||||
build --per_file_copt=//:aten/src/ATen/RegisterSparseCPU.cpp$@-Wno-error=unused-function
|
||||
build --per_file_copt=//:aten/src/ATen/RegisterSparseCsrCPU.cpp$@-Wno-error=unused-function
|
||||
build --per_file_copt=//:aten/src/ATen/RegisterZeroTensor.cpp$@-Wno-error=unused-function
|
||||
build --per_file_copt=//:torch/csrc/lazy/generated/RegisterAutogradLazy.cpp@-Wno-error=unused-function
|
||||
build --per_file_copt=//:torch/csrc/lazy/generated/RegisterLazy.cpp@-Wno-error=unused-function
|
||||
build --per_file_copt='//:aten/src/ATen/RegisterCompositeExplicitAutograd\.cpp$'@-Wno-error=unused-function
|
||||
build --per_file_copt='//:aten/src/ATen/RegisterCompositeImplicitAutograd\.cpp$'@-Wno-error=unused-function
|
||||
build --per_file_copt='//:aten/src/ATen/RegisterMkldnnCPU\.cpp$'@-Wno-error=unused-function
|
||||
build --per_file_copt='//:aten/src/ATen/RegisterNestedTensorCPU\.cpp$'@-Wno-error=unused-function
|
||||
build --per_file_copt='//:aten/src/ATen/RegisterQuantizedCPU\.cpp$'@-Wno-error=unused-function
|
||||
build --per_file_copt='//:aten/src/ATen/RegisterSparseCPU\.cpp$'@-Wno-error=unused-function
|
||||
build --per_file_copt='//:aten/src/ATen/RegisterSparseCsrCPU\.cpp$'@-Wno-error=unused-function
|
||||
build --per_file_copt='//:aten/src/ATen/RegisterZeroTensor\.cpp$'@-Wno-error=unused-function
|
||||
build --per_file_copt='//:torch/csrc/lazy/generated/RegisterAutogradLazy\.cpp$'@-Wno-error=unused-function
|
||||
build --per_file_copt='//:torch/csrc/lazy/generated/RegisterLazy\.cpp$'@-Wno-error=unused-function
|
||||
|
Reference in New Issue
Block a user