pytorch/c10/core
Michael Andreas Dagitses ab2ca95dd1 turn on -Werror=unused-variable in our Bazel CPU build
Summary:
We also fix any existing issues. Note that we only do this for the CPU
build because nvcc is considered a C++ toolchain but it does not have
the same flag support. Adding flags to the GPU build will cause nvcc
errors.

Test Plan: Built locally, rely on CI to confirm.

Reviewers: malfet

Subscribers:

Tasks:

Tags:

Pull Request resolved: https://github.com/pytorch/pytorch/pull/79156

Approved by: https://github.com/seemethere, https://github.com/osalpekar, https://github.com/albanD
2022-06-11 02:46:34 +00:00
..
impl add strides to slow path 2022-06-10 16:59:14 +00:00
alignment.h extract out //c10/core:alignment (#70858) 2022-01-27 07:34:52 +00:00
Allocator.cpp Report more information for memory profiling (#61282) 2021-08-04 15:03:14 -07:00
Allocator.h [LT] Support Tensor.is_alias_of 2022-04-14 07:28:03 +00:00
AutogradState.cpp New TLS to disable forward mode AD (#63117) 2021-08-27 11:59:24 -07:00
AutogradState.h New TLS to disable forward mode AD (#63117) 2021-08-27 11:59:24 -07:00
Backend.h Add Meta backend 2022-06-09 15:28:46 +00:00
BUILD.bazel extract //c10/core:ScalarType to its own library (#70855) 2022-01-26 16:31:26 +00:00
build.bzl define //c10/core:CPUAllocator target (#70862) 2022-01-27 07:34:53 +00:00
CompileTimeFunctionPointer.h [PyTorch] Autoformat c10 (#56830) 2021-04-30 21:23:28 -07:00
CopyBytes.cpp [PyTorch] Autoformat c10 (#56830) 2021-04-30 21:23:28 -07:00
CopyBytes.h
CPUAllocator.cpp extract out //c10/core:alloc_cpu (#70859) 2022-01-27 07:34:52 +00:00
CPUAllocator.h extract out //c10/core:alloc_cpu (#70859) 2022-01-27 07:34:52 +00:00
DefaultDtype.cpp Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00
DefaultDtype.h [PyTorch] Autoformat c10 (#56830) 2021-04-30 21:23:28 -07:00
DefaultTensorOptions.h [PyTorch] Autoformat c10 (#56830) 2021-04-30 21:23:28 -07:00
Device.cpp Add new PrivateUse1 DeviceType for non-public devices (#77208) 2022-05-13 16:03:27 +00:00
Device.h Add slow path for device 2022-05-24 21:56:01 +00:00
DeviceArray.h Remove native_functions.yaml dependency from TensorModeKernel.cu (#66913) 2021-11-30 04:22:09 -08:00
DeviceGuard.h [PyTorch] Autoformat c10 (#56830) 2021-04-30 21:23:28 -07:00
DeviceType.cpp Add new PrivateUse1 DeviceType for non-public devices (#77208) 2022-05-13 16:03:27 +00:00
DeviceType.h Add new PrivateUse1 DeviceType for non-public devices (#77208) 2022-05-13 16:03:27 +00:00
DispatchKey.cpp Make Meta into a backend component 2022-05-31 18:59:16 +00:00
DispatchKey.h Make Meta into a backend component 2022-05-31 18:59:16 +00:00
DispatchKeySet.cpp Make Meta into a backend component 2022-05-31 18:59:16 +00:00
DispatchKeySet.h turn on -Werror=unused-variable in our Bazel CPU build 2022-06-11 02:46:34 +00:00
DynamicCast.h Always convert truthy booleans to 1 2022-06-07 16:00:30 +00:00
Event.h Add device() method to c10::Event (#57293) 2021-05-01 16:12:51 -07:00
GeneratorImpl.cpp [caffe2] drop XROS ports (#76366) 2022-04-26 23:54:22 +00:00
GeneratorImpl.h [PyTorch] Autoformat c10 (#56830) 2021-04-30 21:23:28 -07:00
GradMode.cpp New TLS to disable forward mode AD (#63117) 2021-08-27 11:59:24 -07:00
GradMode.h New TLS to disable forward mode AD (#63117) 2021-08-27 11:59:24 -07:00
InferenceMode.cpp Add a common autograd TLS state (#63860) 2021-08-24 15:34:06 -07:00
InferenceMode.h New TLS to disable forward mode AD (#63117) 2021-08-27 11:59:24 -07:00
Layout.h Introduce sparse compressed layouts: SparseCsr, SparseBsr, SparseBsc 2022-04-15 03:55:32 +00:00
MemoryFormat.h Fix optional dtype/layout/memory_format pycall; fix memory format 2022-05-16 16:46:08 +00:00
OptionalRef.h clamp: port to structured kernel (#61361) 2021-07-23 02:02:07 -07:00
QEngine.h Add onednn quant backend (#74137) 2022-03-15 01:28:21 +00:00
QScheme.h [PyTorch] Autoformat c10 (#56830) 2021-04-30 21:23:28 -07:00
SafePyObject.cpp Introduce SafePyObject, make TorchDispatchTypeObject use it 2022-04-04 14:35:01 +00:00
SafePyObject.h Typofix 2022-04-04 23:54:52 +00:00
Scalar.cpp [PyTorch] Autoformat c10 (#56830) 2021-04-30 21:23:28 -07:00
Scalar.h [reland][chalf] where(cpu and cuda), pow(cuda) (#78665) 2022-06-02 18:04:06 +00:00
ScalarType.h [fix] complex type promotion (#77524) 2022-05-20 10:23:56 +00:00
ScalarTypeToTypeMeta.h Cleanup ATen-core forward declarations 2022-05-02 14:50:48 +00:00
Storage.cpp [PyTorch] Autoformat c10 (#56830) 2021-04-30 21:23:28 -07:00
Storage.h Eliminate unused parameters in PyTorch (#73749) 2022-03-04 02:31:37 +00:00
StorageImpl.cpp
StorageImpl.h [PyTorch] intrusive_ptr: don't guarantee release_resources will be called 2022-06-10 19:30:35 +00:00
Stream.cpp Add query and synchronize to c10::Stream (#59560) 2021-06-10 01:42:40 -07:00
Stream.h External stream (#59527) 2021-06-14 13:46:11 -07:00
StreamGuard.h [PyTorch] Autoformat c10 (#56830) 2021-04-30 21:23:28 -07:00
SymbolicIntNode.h [symint] add support for negative integers 2022-05-20 03:46:29 +00:00
SymInt.cpp [symint] Make TensorImpl::sizes_and_strides_ contain SymInt 2022-05-25 20:54:51 +00:00
SymInt.h [symint] Make TensorImpl::sizes_and_strides_ contain SymInt 2022-05-25 20:54:51 +00:00
SymIntArrayRef.cpp [symint] Make TensorImpl::sizes_and_strides_ contain SymInt 2022-05-25 20:54:51 +00:00
SymIntArrayRef.h [symint] Make TensorImpl::sizes_and_strides_ contain SymInt 2022-05-25 20:54:51 +00:00
SymIntTable.cpp [symint] add support for negative integers 2022-05-20 03:46:29 +00:00
TensorImpl.cpp [PyTorch] intrusive_ptr: don't guarantee release_resources will be called 2022-06-10 19:30:35 +00:00
TensorImpl.h [PyTorch] intrusive_ptr: don't guarantee release_resources will be called 2022-06-10 19:30:35 +00:00
TensorOptions.cpp [PyTorch] Autoformat c10 (#56830) 2021-04-30 21:23:28 -07:00
TensorOptions.h Fix ParameterList printing meta tensor 2022-06-01 00:46:52 +00:00
thread_pool.cpp Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00
thread_pool.h [warnings][Caffe2] Suppress warnings in caffe2 headers (#71196) 2022-01-12 10:16:35 -08:00
UndefinedTensorImpl.cpp Consolidate customization contiguous/sizes policy into unified policy 2022-05-11 00:23:07 +00:00
UndefinedTensorImpl.h Consolidate customization contiguous/sizes policy into unified policy 2022-05-11 00:23:07 +00:00
WrapDimMinimal.cpp Optimize size(dim) and stride(dim) 2022-04-09 02:58:46 +00:00
WrapDimMinimal.h Optimize size(dim) and stride(dim) 2022-04-09 02:58:46 +00:00