pytorch/torch/utils
Edward Yang 8614860210 Uniformly apply Windows logic in cpp_extensions everywhere (#31161)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/31161

Previously, it wasn't necessary to specify `DT_NEEDED` in C++ extensions on Linux (aka pass `-l` flags) because all of the symbols would have already been loaded with `RTLD_GLOBAL`, so there wouldn't be any undefined symbols.  But when we switch to loading `_C` with `RTLD_LOCAL`, it's now necessary for all the C++ extensions to know what libraries to link with. The resulting code is clearer and more uniform, so it's wins all around.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Test Plan: Imported from OSS

Differential Revision: D19262578

Pulled By: ezyang

fbshipit-source-id: a893cc96f2e9aad1c064a6de4f7ccf79257dec3f
2020-01-09 07:28:11 -08:00
..
backcompat Simplify python warning settings and cleanup tests. 2017-06-11 05:37:59 -04:00
bottleneck Turn on F401: Unused import warning. (#18598) 2019-03-30 09:01:17 -07:00
data Enable len(dataloader) for iterable dataset (#23587) 2019-12-06 15:38:05 -08:00
ffi remove support for c extensions (#12122) 2018-10-01 13:55:28 -07:00
hipify Add native/quantized to the list of header rewrites (#31151) 2019-12-11 21:59:29 -08:00
tensorboard fixed scale_factor calculation for uint8 tensor (#31778) 2020-01-06 10:27:35 -08:00
__init__.py Ignore F401 in all __init__.py without putting noqa (#25823) 2019-10-23 15:28:13 -07:00
__init__.pyi Stubs for torch.nn (#19089) 2019-07-01 09:50:17 -07:00
_cpp_extension_versioner.py arc lint torch/utils (#13141) 2018-10-25 14:59:03 -07:00
checkpoint.py Fully deprecate variadic inputs of checkpoint_sequential (#25985) 2019-12-05 09:23:28 -08:00
collect_env.py Use system locale in collect_env.py (#22579) 2019-07-07 20:55:31 -07:00
cpp_extension.py Uniformly apply Windows logic in cpp_extensions everywhere (#31161) 2020-01-09 07:28:11 -08:00
dlpack.py arc lint torch/utils (#13141) 2018-10-25 14:59:03 -07:00
file_baton.py Fix python2 and python 3 compatibility found by lint. (#13140) 2018-10-25 17:20:11 -07:00
hooks.py Some modifications to improve readability (#31352) 2020-01-02 12:48:34 -08:00
hooks.pyi Stubs for torch.nn (#19089) 2019-07-01 09:50:17 -07:00
mkldnn.py module dedupe (#26666) 2019-10-12 09:51:57 -07:00
model_zoo.py add/move a few apis in torch.hub (#18758) 2019-04-10 23:10:39 -07:00
throughput_benchmark.py Fix lint error in format_time() in throughput_benchmark.py and clean it up a bit. (#22424) 2019-07-01 22:15:37 -07:00