pytorch/test/cpp_extensions
Gao, Xiang a1f9a3c643 Fix UB in library.h (#57962)
Summary:
The function name and return type both are called `class_`, therefore they are ambiguous and this is UB and does not work on NVCC. See the tests for the failure case.

Thanks for the help of Thibaut Lutz from NVIDIA's compiler team.

cc: yueyericardo ptrblck

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

Reviewed By: mruberry

Differential Revision: D28359400

Pulled By: ezyang

fbshipit-source-id: c64ec89203f99f656611aba34f7424eed7bc9e7c
2021-05-11 16:04:02 -07:00
..
no_python_abi_suffix_test
self_compiler_include_dirs_test
torch_test_cpp_extension
cpp_c10d_extension.cpp [torch distributed] Implementing all_gather_base (#56315) 2021-04-23 14:16:47 -07:00
cpp_c10d_extension.hpp [torch distributed] Implementing all_gather_base (#56315) 2021-04-23 14:16:47 -07:00
cpp_frontend_extension.cpp
cuda_extension_kernel.cu Check CUDA kernel launches (/fbcode/caffe2/) (#49145) 2020-12-10 10:43:03 -08:00
cuda_extension_kernel2.cu Check CUDA kernel launches (/fbcode/caffe2/) (#49145) 2020-12-10 10:43:03 -08:00
cuda_extension.cpp
cuda_extension.cu Check CUDA kernel launches (/fbcode/caffe2/) (#49145) 2020-12-10 10:43:03 -08:00
cudnn_extension.cpp
doubler.h
extension.cpp
jit_extension.cpp
jit_extension2.cpp
msnpu_extension.cpp Pass Scalar by reference (#53583) 2021-03-15 23:17:06 -07:00
rng_extension.cpp Move generator state APIs to ATen (#49589) 2021-01-06 18:26:56 -08:00
setup.py Fix ordered_dict.h for CUDA on Windows (#55275) 2021-04-07 23:43:35 -07:00
torch_library.cu Fix UB in library.h (#57962) 2021-05-11 16:04:02 -07:00