aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/cxx11_tensor_gpu.cu
diff options
context:
space:
mode:
authorGravatar Deven Desai <deven.desai.amd@gmail.com>2019-09-06 16:03:49 +0000
committerGravatar Deven Desai <deven.desai.amd@gmail.com>2019-09-06 16:03:49 +0000
commitcdb377d0cba4889fc909d1bbdd430b988db0db97 (patch)
tree57b19e0d3c401c11270bfc03bc913eac0485d4bb /unsupported/test/cxx11_tensor_gpu.cu
parent747c6a51ca36f2cb0d519b83a8a03191b283dfb2 (diff)
Fix for the HIP build+test errors introduced by the ndtri support.
The fixes needed are * adding EIGEN_DEVICE_FUNC attribute to a couple of funcs (else HIPCC will error out when non-device funcs are called from global/device funcs) * switching to using ::<math_func> instead std::<math_func> (only for HIPCC) in cases where the std::<math_func> is not recognized as a device func by HIPCC * removing an errant "j" from a testcase (don't know how that made it in to begin with!)
Diffstat (limited to 'unsupported/test/cxx11_tensor_gpu.cu')
-rw-r--r--unsupported/test/cxx11_tensor_gpu.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/test/cxx11_tensor_gpu.cu b/unsupported/test/cxx11_tensor_gpu.cu
index 0a2fa8e61..aa8470123 100644
--- a/unsupported/test/cxx11_tensor_gpu.cu
+++ b/unsupported/test/cxx11_tensor_gpu.cu
@@ -1091,7 +1091,7 @@ void test_gpu_ndtri()
expected_out(1) = -std::numeric_limits<Scalar>::infinity();
expected_out(2) = Scalar(0.0);
expected_out(3) = Scalar(-0.8416212335729142);
- expected_out(4) = Scalar(0.8416212335729142);j
+ expected_out(4) = Scalar(0.8416212335729142);
expected_out(5) = Scalar(1.2815515655446004);
expected_out(6) = Scalar(-1.2815515655446004);
expected_out(7) = Scalar(2.3263478740408408);