DEAL_II_CUDA_HOST_DEV Tensor<0,dim,Number>::operator Number &()
{
// We cannot use Assert inside a CUDA kernel
-#ifndef DEAL_II_WITH_CUDA
+#ifndef __CUDA_ARCH__
Assert(dim != 0, ExcMessage("Cannot access an object of type Tensor<0,0,Number>"));
#endif
return value;
DEAL_II_CUDA_HOST_DEV Tensor<0,dim,Number>::operator const Number &() const
{
// We cannot use Assert inside a CUDA kernel
-#ifndef DEAL_II_WITH_CUDA
+#ifndef __CUDA_ARCH__
Assert(dim != 0, ExcMessage("Cannot access an object of type Tensor<0,0,Number>"));
#endif
return value;
DEAL_II_CUDA_HOST_DEV Tensor<0,dim,Number>::norm_square () const
{
// We cannot use Assert inside a CUDA kernel
-#ifndef DEAL_II_WITH_CUDA
+#ifndef __CUDA_ARCH__
Assert(dim != 0, ExcMessage("Cannot access an object of type Tensor<0,0,Number>"));
#endif
return numbers::NumberTraits<Number>::abs_square (value);
std::integral_constant<int, dim>)
{
// We cannot use Assert in a CUDA kernel
-#ifndef DEAL_II_WITH_CUDA
+#ifndef __CUDA_ARCH__
Assert (i<dim, ExcIndexRange(i, 0, dim));
#endif
return values[i];
std::integral_constant<int, 0>)
{
// We cannot use Assert in a CUDA kernel
-#ifndef DEAL_II_WITH_CUDA
+#ifndef __CUDA_ARCH__
Assert(false, ExcMessage("Cannot access elements of an object of type Tensor<rank,0,Number>."));
#endif
static ArrayElementType t;