pytorch/torch/csrc/cuda
Pritam Damania 2b221a9599 Remove PyCFunction casts as much as possible. (#46227)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46227

Follow up from https://github.com/pytorch/pytorch/issues/45419, in
this PR I've removed as many PyCFunction casts as I could from the codebase.

The only ones I didn't remove were the ones with `METH_VARARGS | METH_KEYWORDS`
which have 3 parameters instead of 2 and had to be casted. Example: `
{"copy_", (PyCFunction)(void(*)(void))THPStorage_(copy_), METH_VARARGS |
METH_KEYWORDS, nullptr},`
ghstack-source-id: 114632704

Test Plan: waitforbuildbot

Reviewed By: albanD

Differential Revision: D24269435

fbshipit-source-id: 025cfd43a9a2a3e59f6b2951c1a78749193d77cf
2020-10-20 15:01:51 -07:00
..
shared Make cudaHostRegister actually useful on cudart. (#45159) 2020-09-23 11:05:44 -07:00
comm.cpp Add torch::cuda::ncll::all2all (#45900) 2020-10-07 23:56:31 -07:00
comm.h Add out= variants for cuda.comm.broadcast/gather/scatter (#39681) 2020-06-24 12:58:19 -07:00
device_set.h
Event.cpp Remove PyCFunction casts as much as possible. (#46227) 2020-10-20 15:01:51 -07:00
Event.h
Module.cpp Remove PyCFunction casts as much as possible. (#46227) 2020-10-20 15:01:51 -07:00
Module.h
nccl.cpp [NCCL] Add torch::cuda::nccl::send/recv (#45926) 2020-10-08 19:20:40 -07:00
nccl.h [NCCL] Add torch::cuda::nccl::send/recv (#45926) 2020-10-08 19:20:40 -07:00
override_macros.h
python_comm.cpp Add out= variants for cuda.comm.broadcast/gather/scatter (#39681) 2020-06-24 12:58:19 -07:00
python_comm.h
python_nccl.cpp Enable torch.cuda.nccl typechecking (#45344) 2020-09-25 17:02:47 -07:00
python_nccl.h
restore_macros.h
serialization.cpp Python API for Complex Storage and storage copy logic (#35771) 2020-05-01 11:47:22 -07:00
serialization.h Python API for Complex Storage and storage copy logic (#35771) 2020-05-01 11:47:22 -07:00
Storage.cpp Do not use PRId64 in torch/csrc (#44767) 2020-09-17 14:00:02 -07:00
Storage.h Python API for Complex Storage and storage copy logic (#35771) 2020-05-01 11:47:22 -07:00
Stream.cpp Remove PyCFunction casts as much as possible. (#46227) 2020-10-20 15:01:51 -07:00
Stream.h Define the record_stream method in native_functions.yaml (#44301) 2020-10-13 09:15:22 -07:00
Tensor.cpp
THCP.h
undef_macros.h
utils.cpp Python API for Complex Storage and storage copy logic (#35771) 2020-05-01 11:47:22 -07:00
utils.h Python API for Complex Storage and storage copy logic (#35771) 2020-05-01 11:47:22 -07:00