I'd said that nvcc doesn't allow you to add __host__ or __device__
attributes on lambdas in all circumstances, but I believe this was user
error on my part. I can't reproduce these warnings/errors if I pass
--expt-extended-lambda to nvcc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282912
91177308-0d34-0410-b5e6-
96231b3b80d8
Method->addAttr(CUDADeviceAttr::CreateImplicit(Context));
Method->addAttr(CUDAHostAttr::CreateImplicit(Context));
}
-
- // TODO: nvcc doesn't allow you to specify __host__ or __device__ attributes
- // on lambdas in all contexts -- we should emit a compatibility warning where
- // we're more permissive.
}