diff options
author | Jonathan Hseu <jhseu@google.com> | 2017-06-22 13:36:21 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-06-22 13:40:08 -0700 |
commit | 73d4647db1fc2fbfa6cc84895e783e3d49b1924e (patch) | |
tree | d6b26ef2c85755d3aeefa3847765d0fdedb0ed6c /tensorflow/core/util/cuda_kernel_helper_test.cu.cc | |
parent | 0f6a65e57d6a3516456d3739933417fc88cbfcda (diff) |
Fix cuda_kernel_helper_test. std::numeric_limits<int32>::max() doesn't pass, so
I didn't use that.
PiperOrigin-RevId: 159869169
Diffstat (limited to 'tensorflow/core/util/cuda_kernel_helper_test.cu.cc')
-rw-r--r-- | tensorflow/core/util/cuda_kernel_helper_test.cu.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tensorflow/core/util/cuda_kernel_helper_test.cu.cc b/tensorflow/core/util/cuda_kernel_helper_test.cu.cc index abd72b7d77..623f7bab90 100644 --- a/tensorflow/core/util/cuda_kernel_helper_test.cu.cc +++ b/tensorflow/core/util/cuda_kernel_helper_test.cu.cc @@ -164,7 +164,7 @@ TEST_F(CudaLaunchConfigTest, GetCudaLaunchConfig) { TEST_LAUNCH_PARAMETER(8191); TEST_LAUNCH_PARAMETER(8192); TEST_LAUNCH_PARAMETER(123456); - TEST_LAUNCH_PARAMETER(1 << 31 - 1); // max value of int + TEST_LAUNCH_PARAMETER(1 << 30); #undef TEST_LAUNCH_PARAMETER } @@ -243,8 +243,8 @@ TEST_F(CudaLaunchConfigTest, GetCuda2DLaunchConfig) { TEST_LAUNCH_PARAMETER(8191, 1); TEST_LAUNCH_PARAMETER(8192, 10); TEST_LAUNCH_PARAMETER(123456, 12); - TEST_LAUNCH_PARAMETER(1, (1 << 31 - 1)); - TEST_LAUNCH_PARAMETER((1 << 31 - 1), 1); + TEST_LAUNCH_PARAMETER(1, 1 << 30); + TEST_LAUNCH_PARAMETER(1 << 30, 1); #undef TEST_LAUNCH_PARAMETER } @@ -292,9 +292,9 @@ TEST_F(CudaLaunchConfigTest, GetCuda3DLaunchConfig) { TEST_LAUNCH_PARAMETER(8191, 1, 1024); TEST_LAUNCH_PARAMETER(8192, 10, 32); TEST_LAUNCH_PARAMETER(123456, 12, 21); - TEST_LAUNCH_PARAMETER(1, 1, (1 << 31 - 1)); - TEST_LAUNCH_PARAMETER(1, (1 << 31 - 1), 1); - TEST_LAUNCH_PARAMETER((1 << 31 - 1), 1, 1); + TEST_LAUNCH_PARAMETER(1, 1, 1 << 30); + TEST_LAUNCH_PARAMETER(1, 1 << 30, 1); + TEST_LAUNCH_PARAMETER(1 << 30, 1, 1); #undef TEST_LAUNCH_PARAMETER } |