mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
check for exceptions for Cuda
This commit is contained in:
parent
c6af357901
commit
714b064666
@ -756,7 +756,9 @@ namespace ngcore
|
|||||||
for (size_t i = 0; i < size; i++)
|
for (size_t i = 0; i < size; i++)
|
||||||
data[i] = a2.data[i];
|
data[i] = a2.data[i];
|
||||||
}
|
}
|
||||||
#ifdef __cpp_exceptions
|
|
||||||
|
// #ifdef __cpp_exceptions
|
||||||
|
#ifndef __CUDA_ARCH__
|
||||||
else
|
else
|
||||||
throw Exception(std::string("cannot copy-construct Array of type ") + typeid(T).name());
|
throw Exception(std::string("cannot copy-construct Array of type ") + typeid(T).name());
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user