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.
llvm-svn: 282912
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.
}