mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Worked around a bug in nvcc on tegra x1
This commit is contained in:
parent
a2d94fc216
commit
691614bd2c
@ -159,8 +159,8 @@ void test_cuda_trancendental() {
|
||||
Eigen::TensorMap<Eigen::Tensor<Eigen::half, 1>, Eigen::Aligned> gpu_res2_float(
|
||||
d_res2_float, num_elem);
|
||||
|
||||
gpu_float1.device(gpu_device) = gpu_float1.random() - 0.5f;
|
||||
gpu_float2.device(gpu_device) = gpu_float2.random() + 0.5f;;
|
||||
gpu_float1.device(gpu_device) = gpu_float1.random() - gpu_float1.constant(0.5f);
|
||||
gpu_float2.device(gpu_device) = gpu_float2.random() + gpu_float1.constant(0.5f);
|
||||
gpu_res1_float.device(gpu_device) = gpu_float1.exp().cast<Eigen::half>();
|
||||
gpu_res2_float.device(gpu_device) = gpu_float2.log().cast<Eigen::half>();
|
||||
gpu_res1_half.device(gpu_device) = gpu_float1.cast<Eigen::half>().exp();
|
||||
|
Loading…
x
Reference in New Issue
Block a user