aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/SSE/Complex.h
diff options
context:
space:
mode:
authorGravatar Antonio Sanchez <cantonios@google.com>2021-04-30 08:19:48 -0700
committerGravatar Antonio Sanchez <cantonios@google.com>2021-05-04 13:34:49 -0700
commite3b7f59659689015aa254ed67c48d870831f086f (patch)
tree87a5cc3735f8205393ab8f2b22d89f6d24803cb9 /Eigen/src/Core/arch/SSE/Complex.h
parent1c013be2cc6a999268be2f25575cd6a07bd52c45 (diff)
Simplify TensorRandom and remove time-dependence.
Time-dependence prevents tests from being repeatable. This has long been an issue with debugging the tensor tests. Removing this will allow future tests to be repeatable in the usual way. Also, the recently added macros in !476 are causing headaches across different platforms. For example, checking `_XOPEN_SOURCE` is leading to multiple ambiguous macro errors across Google, and `_DEFAULT_SOURCE`/`_SVID_SOURCE`/`_BSD_SOURCE` are sometimes defined with values, sometimes defined as empty, and sometimes not defined at all when they probably should be. This is leading to multiple build breakages. The simplest approach is to generate a seed via `Eigen::internal::random<uint64_t>()` if on CPU. For GPU, we use a hash based on the current thread ID (since `rand()` isn't supported on GPU). Fixes #1602.
Diffstat (limited to 'Eigen/src/Core/arch/SSE/Complex.h')
0 files changed, 0 insertions, 0 deletions