mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
Made sure that the cxx11_tensor_cuda test can be compiled even without support for cxx11.
This commit is contained in:
parent
2e4e4cb74d
commit
044efea965
@ -853,6 +853,10 @@ void test_cxx11_tensor_cuda()
|
||||
CALL_SUBTEST_3(test_cuda_convolution_3d<ColMajor>());
|
||||
CALL_SUBTEST_3(test_cuda_convolution_3d<RowMajor>());
|
||||
|
||||
#if __cplusplus > 199711L
|
||||
// std::erf, std::erfc, and so on where only added in c++11. We use them
|
||||
// as a golden reference to validate the results produced by Eigen. Therefore
|
||||
// we can only run these tests if we use a c++11 compiler.
|
||||
CALL_SUBTEST_4(test_cuda_lgamma<float>(1.0f));
|
||||
CALL_SUBTEST_4(test_cuda_lgamma<float>(100.0f));
|
||||
CALL_SUBTEST_4(test_cuda_lgamma<float>(0.01f));
|
||||
@ -860,6 +864,7 @@ void test_cxx11_tensor_cuda()
|
||||
|
||||
CALL_SUBTEST_4(test_cuda_digamma<float>());
|
||||
|
||||
|
||||
CALL_SUBTEST_4(test_cuda_erf<float>(1.0f));
|
||||
CALL_SUBTEST_4(test_cuda_erf<float>(100.0f));
|
||||
CALL_SUBTEST_4(test_cuda_erf<float>(0.01f));
|
||||
@ -894,4 +899,5 @@ void test_cxx11_tensor_cuda()
|
||||
|
||||
CALL_SUBTEST_5(test_cuda_igamma<double>());
|
||||
CALL_SUBTEST_5(test_cuda_igammac<double>());
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user