-
Notifications
You must be signed in to change notification settings - Fork 22.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid type qualifier specified more than once #72411
Conversation
Summary: Fixes: ``` caffe2/aten/src/ATen/cuda/CUDAApplyUtils.cuh(328): warning: parameter "n" was declared but never referenced detected during: instantiation of "void at::cuda::<unnamed>::ApplyOp2<Op, scalar1, scalar2, IndexType, ADims, BDims, remaining_steps, Offsets...>::apply(at::cuda::detail::TensorInfo<scalar1, IndexType> &, at::cuda::detail::TensorInfo<scalar2, IndexType> &, const Op &, int64_t, IndexType, Offsets..., Offsets...) [with Op=lambda [](double &, const double &)->void, scalar1=double, scalar2=double, IndexType=unsigned int, ADims=1, BDims=1, remaining_steps=1, Offsets=<>]" (370): here instantiation of "void at::cuda::<unnamed>::kernelPointwiseApply2<Op,scalar1,scalar2,IndexType,ADims,BDims,step,max_threads_per_block,min_blocks_per_sm>(at::cuda::detail::TensorInfo<scalar1, IndexType>, at::cuda::detail::TensorInfo<scalar2, IndexType>, IndexType, Op) [with Op=lambda [](double &, const double &)->void, scalar1=double, scalar2=double, IndexType=unsigned int, ADims=1, BDims=1, step=1, max_threads_per_block=512, min_blocks_per_sm=2]" (487): here instantiation of "__nv_bool at::cuda::CUDA_tensor_apply2<scalar1,scalar2,step,Op,max_threads_per_block,min_blocks_per_sm>(at::Tensor, at::Tensor, Op, at::cuda::TensorArgType, at::cuda::TensorArgType) [with scalar1=double, scalar2=double, step=1, Op=lambda [](double &, const double &)->void, max_threads_per_block=512, min_blocks_per_sm=2]" (533): here instantiation of "__nv_bool at::cuda::CUDA_tensor_apply2<scalar1,scalar2,Op,max_threads_per_block,min_blocks_per_sm>(at::Tensor, at::Tensor, Op, at::cuda::TensorArgType, at::cuda::TensorArgType) [with scalar1=double, scalar2=double, Op=lambda [](double &, const double &)->void, max_threads_per_block=512, min_blocks_per_sm=2]" caffe2/aten/src/ATen/native/cuda/Distributions.cu(60): here instantiation of "void <unnamed>::poisson_cuda_kernel<scalar_t>(at::Tensor &, const at::Tensor &, at::PhiloxCudaState) [with scalar_t=double]" caffe2/aten/src/ATen/native/cuda/Distributions.cu(169): here caffe2/aten/src/ATen/cuda/CUDAApplyUtils.cuh(328): warning: parameter "linearIndex" was declared but never referenced detected during: instantiation of "void at::cuda::<unnamed>::ApplyOp2<Op, scalar1, scalar2, IndexType, ADims, BDims, remaining_steps, Offsets...>::apply(at::cuda::detail::TensorInfo<scalar1, IndexType> &, at::cuda::detail::TensorInfo<scalar2, IndexType> &, const Op &, int64_t, IndexType, Offsets..., Offsets...) [with Op=lambda [](double &, const double &)->void, scalar1=double, scalar2=double, IndexType=unsigned int, ADims=1, BDims=1, remaining_steps=1, Offsets=<>]" (370): here instantiation of "void at::cuda::<unnamed>::kernelPointwiseApply2<Op,scalar1,scalar2,IndexType,ADims,BDims,step,max_threads_per_block,min_blocks_per_sm>(at::cuda::detail::TensorInfo<scalar1, IndexType>, at::cuda::detail::TensorInfo<scalar2, IndexType>, IndexType, Op) [with Op=lambda [](double &, const double &)->void, scalar1=double, scalar2=double, IndexType=unsigned int, ADims=1, BDims=1, step=1, max_threads_per_block=512, min_blocks_per_sm=2]" (487): here instantiation of "__nv_bool at::cuda::CUDA_tensor_apply2<scalar1,scalar2,step,Op,max_threads_per_block,min_blocks_per_sm>(at::Tensor, at::Tensor, Op, at::cuda::TensorArgType, at::cuda::TensorArgType) [with scalar1=double, scalar2=double, step=1, Op=lambda [](double &, const double &)->void, max_threads_per_block=512, min_blocks_per_sm=2]" (533): here instantiation of "__nv_bool at::cuda::CUDA_tensor_apply2<scalar1,scalar2,Op,max_threads_per_block,min_blocks_per_sm>(at::Tensor, at::Tensor, Op, at::cuda::TensorArgType, at::cuda::TensorArgType) [with scalar1=double, scalar2=double, Op=lambda [](double &, const double &)->void, max_threads_per_block=512, min_blocks_per_sm=2]" caffe2/aten/src/ATen/native/cuda/Distributions.cu(60): here instantiation of "void <unnamed>::poisson_cuda_kernel<scalar_t>(at::Tensor &, const at::Tensor &, at::PhiloxCudaState) [with scalar_t=double]" caffe2/aten/src/ATen/native/cuda/Distributions.cu(169): here caffe2/aten/src/ATen/cuda/CUDAApplyUtils.cuh(328): warning: parameter "linearIndex" was declared but never referenced detected during: instantiation of "void at::cuda::<unnamed>::ApplyOp2<Op, scalar1, scalar2, IndexType, ADims, BDims, remaining_steps, Offsets...>::apply(at::cuda::detail::TensorInfo<scalar1, IndexType> &, at::cuda::detail::TensorInfo<scalar2, IndexType> &, const Op &, int64_t, IndexType, Offsets..., Offsets...) [with Op=lambda [](double &, const double &)->void, scalar1=double, scalar2=double, IndexType=unsigned int, ADims=1, BDims=1, remaining_steps=1, Offsets=<>]" (370): here instantiation of "void at::cuda::<unnamed>::kernelPointwiseApply2<Op,scalar1,scalar2,IndexType,ADims,BDims,step,max_threads_per_block,min_blocks_per_sm>(at::cuda::detail::TensorInfo<scalar1, IndexType>, at::cuda::detail::TensorInfo<scalar2, IndexType>, IndexType, Op) [with Op=lambda [](double &, const double &)->void, scalar1=double, scalar2=double, IndexType=unsigned int, ADims=1, BDims=1, step=1, max_threads_per_block=512, min_blocks_per_sm=2]" (487): here instantiation of "__nv_bool at::cuda::CUDA_tensor_apply2<scalar1,scalar2,step,Op,max_threads_per_block,min_blocks_per_sm>(at::Tensor, at::Tensor, Op, at::cuda::TensorArgType, at::cuda::TensorArgType) [with scalar1=double, scalar2=double, step=1, Op=lambda [](double &, const double &)->void, max_threads_per_block=512, min_blocks_per_sm=2]" (533): here instantiation of "__nv_bool at::cuda::CUDA_tensor_apply2<scalar1,scalar2,Op,max_threads_per_block,min_blocks_per_sm>(at::Tensor, at::Tensor, Op, at::cuda::TensorArgType, at::cuda::TensorArgType) [with scalar1=double, scalar2=double, Op=lambda [](double &, const double &)->void, max_threads_per_block=512, min_blocks_per_sm=2]" caffe2/aten/src/ATen/native/cuda/Distributions.cu(60): here instantiation of "void <unnamed>::poisson_cuda_kernel<scalar_t>(at::Tensor &, const at::Tensor &, at::PhiloxCudaState) [with scalar_t=double]" caffe2/aten/src/ATen/native/cuda/Distributions.cu(169): here caffe2/aten/src/ATen/cuda/CUDAApplyUtils.cuh(328): warning: parameter "n" was declared but never referenced detected during: instantiation of "void at::cuda::<unnamed>::ApplyOp2<Op, scalar1, scalar2, IndexType, ADims, BDims, remaining_steps, Offsets...>::apply(at::cuda::detail::TensorInfo<scalar1, IndexType> &, at::cuda::detail::TensorInfo<scalar2, IndexType> &, const Op &, int64_t, IndexType, Offsets..., Offsets...) [with Op=lambda [](double &, const double &)->void, scalar1=double, scalar2=double, IndexType=unsigned int, ADims=1, BDims=1, remaining_steps=1, Offsets=<>]" (370): here instantiation of "void at::cuda::<unnamed>::kernelPointwiseApply2<Op,scalar1,scalar2,IndexType,ADims,BDims,step,max_threads_per_block,min_blocks_per_sm>(at::cuda::detail::TensorInfo<scalar1, IndexType>, at::cuda::detail::TensorInfo<scalar2, IndexType>, IndexType, Op) [with Op=lambda [](double &, const double &)->void, scalar1=double, scalar2=double, IndexType=unsigned int, ADims=1, BDims=1, step=1, max_threads_per_block=512, min_blocks_per_sm=2]" (487): here instantiation of "__nv_bool at::cuda::CUDA_tensor_apply2<scalar1,scalar2,step,Op,max_threads_per_block,min_blocks_per_sm>(at::Tensor, at::Tensor, Op, at::cuda::TensorArgType, at::cuda::TensorArgType) [with scalar1=double, scalar2=double, step=1, Op=lambda [](double &, const double &)->void, max_threads_per_block=512, min_blocks_per_sm=2]" (533): here instantiation of "__nv_bool at::cuda::CUDA_tensor_apply2<scalar1,scalar2,Op,max_threads_per_block,min_blocks_per_sm>(at::Tensor, at::Tensor, Op, at::cuda::TensorArgType, at::cuda::TensorArgType) [with scalar1=double, scalar2=double, Op=lambda [](double &, const double &)->void, max_threads_per_block=512, min_blocks_per_sm=2]" caffe2/aten/src/ATen/native/cuda/Distributions.cu(60): here instantiation of "void <unnamed>::poisson_cuda_kernel<scalar_t>(at::Tensor &, const at::Tensor &, at::PhiloxCudaState) [with scalar_t=double]" caffe2/aten/src/ATen/native/cuda/Distributions.cu(169): here caffe2/aten/src/ATen/cuda/CUDAApplyUtils.cuh(328): warning: parameter "linearIndex" was declared but never referenced detected during: instantiation of "void at::cuda::<unnamed>::ApplyOp2<Op, scalar1, scalar2, IndexType, ADims, BDims, remaining_steps, Offsets...>::apply(at::cuda::detail::TensorInfo<scalar1, IndexType> &, at::cuda::detail::TensorInfo<scalar2, IndexType> &, const Op &, int64_t, IndexType, Offsets..., Offsets...) [with Op=lambda [](double &, const double &)->void, scalar1=double, scalar2=double, IndexType=unsigned int, ADims=1, BDims=1, remaining_steps=1, Offsets=<>]" (370): here instantiation of "void at::cuda::<unnamed>::kernelPointwiseApply2<Op,scalar1,scalar2,IndexType,ADims,BDims,step,max_threads_per_block,min_blocks_per_sm>(at::cuda::detail::TensorInfo<scalar1, IndexType>, at::cuda::detail::TensorInfo<scalar2, IndexType>, IndexType, Op) [with Op=lambda [](double &, const double &)->void, scalar1=double, scalar2=double, IndexType=unsigned int, ADims=1, BDims=1, step=1, max_threads_per_block=512, min_blocks_per_sm=2]" (487): here instantiation of "__nv_bool at::cuda::CUDA_tensor_apply2<scalar1,scalar2,step,Op,max_threads_per_block,min_blocks_per_sm>(at::Tensor, at::Tensor, Op, at::cuda::TensorArgType, at::cuda::TensorArgType) [with scalar1=double, scalar2=double, step=1, Op=lambda [](double &, const double &)->void, max_threads_per_block=512, min_blocks_per_sm=2]" (533): here instantiation of "__nv_bool at::cuda::CUDA_tensor_apply2<scalar1,scalar2,Op,max_threads_per_block,min_blocks_per_sm>(at::Tensor, at::Tensor, Op, at::cuda::TensorArgType, at::cuda::TensorArgType) [with scalar1=double, scalar2=double, Op=lambda [](double &, const double &)->void, max_threads_per_block=512, min_blocks_per_sm=2]" caffe2/aten/src/ATen/native/cuda/Distributions.cu(60): here instantiation of "void <unnamed>::poisson_cuda_kernel<scalar_t>(at::Tensor &, const at::Tensor &, at::PhiloxCudaState) [with scalar_t=double]" caffe2/aten/src/ATen/native/cuda/Distributions.cu(169): here ``` Test Plan: Sandcastle Differential Revision: D34034374 fbshipit-source-id: 573a70f11d7cb6f672cb97187d51d0bb3521b29b
Summary: Fixes ``` caffe2/caffe2/operators/max_pool_with_index.cu(16): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(28): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(61): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(62): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(74): warning: type qualifier specified more than once ``` Test Plan: Sandcastle Differential Revision: D34034382 fbshipit-source-id: 87dc9c2dd7dcc96fe4eee5299d873a1b6b694268
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 8927ee5 (more details on the Dr. CI page): ✅ None of the CI failures appear to be your fault 💚
🚧 1 fixed upstream failure:These were probably caused by upstream breakages that were already fixed.
Please rebase on the
|
This pull request was exported from Phabricator. Differential Revision: D34034382 |
Summary: Pull Request resolved: #72411 Fixes ``` caffe2/caffe2/operators/max_pool_with_index.cu(16): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(28): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(61): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(62): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(74): warning: type qualifier specified more than once ``` Test Plan: Sandcastle Reviewed By: malfet Differential Revision: D34034382 fbshipit-source-id: 2b73c55358632090baf673b32b800656ae874040
Summary: Pull Request resolved: pytorch/pytorch#72411 Fixes ``` caffe2/caffe2/operators/max_pool_with_index.cu(16): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(28): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(61): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(62): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(74): warning: type qualifier specified more than once ``` Test Plan: Sandcastle Reviewed By: malfet Differential Revision: D34034382 fbshipit-source-id: 2b73c55358632090baf673b32b800656ae874040 (cherry picked from commit ab3f3f9a798b31002c2dc1bf0819695b69ab242d)
Summary: Pull Request resolved: pytorch/pytorch#72411 Fixes ``` caffe2/caffe2/operators/max_pool_with_index.cu(16): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(28): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(61): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(62): warning: type qualifier specified more than once caffe2/caffe2/operators/max_pool_with_index.cu(74): warning: type qualifier specified more than once ``` Test Plan: Sandcastle Reviewed By: malfet Differential Revision: D34034382 fbshipit-source-id: 2b73c55358632090baf673b32b800656ae874040 (cherry picked from commit ab3f3f9a798b31002c2dc1bf0819695b69ab242d)
Summary:
Fixes
Test Plan: Sandcastle
Differential Revision: D34034382