From 992563e0a6953a15a75c9c9ba85af9b68efe8040 Mon Sep 17 00:00:00 2001 From: Jake Hemstad Date: Fri, 23 Oct 2020 10:53:14 -0500 Subject: [PATCH] Add missing host/device on test functions. --- .../std/utilities/time/time.hms/time.hms.members/hours.pass.cpp | 1 + .../time/time.hms/time.hms.members/is_negative.pass.cpp | 1 + .../utilities/time/time.hms/time.hms.members/minutes.pass.cpp | 1 + .../utilities/time/time.hms/time.hms.members/precision.pass.cpp | 1 + .../time/time.hms/time.hms.members/precision_type.pass.cpp | 1 + .../utilities/time/time.hms/time.hms.members/seconds.pass.cpp | 1 + .../utilities/time/time.hms/time.hms.members/subseconds.pass.cpp | 1 + .../time/time.hms/time.hms.members/to_duration.pass.cpp | 1 + .../std/utilities/time/time.hms/time.hms.members/width.pass.cpp | 1 + 9 files changed, 9 insertions(+) diff --git a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/hours.pass.cpp b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/hours.pass.cpp index 03f501c76c..4b730b946f 100644 --- a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/hours.pass.cpp +++ b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/hours.pass.cpp @@ -30,6 +30,7 @@ #include "test_macros.h" template +__host__ __device__ constexpr long check_hours(Duration d) { using HMS = cuda::std::chrono::hh_mm_ss; diff --git a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/is_negative.pass.cpp b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/is_negative.pass.cpp index 3ae04aca97..028dd77756 100644 --- a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/is_negative.pass.cpp +++ b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/is_negative.pass.cpp @@ -19,6 +19,7 @@ #include "test_macros.h" template +__host__ __device__ constexpr bool check_neg(Duration d) { ASSERT_SAME_TYPE(bool, decltype(cuda::std::declval>().is_negative())); diff --git a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/minutes.pass.cpp b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/minutes.pass.cpp index 15ff3fe817..c3ffd89102 100644 --- a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/minutes.pass.cpp +++ b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/minutes.pass.cpp @@ -21,6 +21,7 @@ #include "test_macros.h" template +__host__ __device__ constexpr long check_minutes(Duration d) { using HMS = cuda::std::chrono::hh_mm_ss; diff --git a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/precision.pass.cpp b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/precision.pass.cpp index 51e5dc05ad..bc7a778d71 100644 --- a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/precision.pass.cpp +++ b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/precision.pass.cpp @@ -47,6 +47,7 @@ constexpr unsigned long long powers[] = { }; template +__host__ __device__ constexpr bool check_precision() { using HMS = cuda::std::chrono::hh_mm_ss; diff --git a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/precision_type.pass.cpp b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/precision_type.pass.cpp index 51e5dc05ad..bc7a778d71 100644 --- a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/precision_type.pass.cpp +++ b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/precision_type.pass.cpp @@ -47,6 +47,7 @@ constexpr unsigned long long powers[] = { }; template +__host__ __device__ constexpr bool check_precision() { using HMS = cuda::std::chrono::hh_mm_ss; diff --git a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/seconds.pass.cpp b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/seconds.pass.cpp index 6e56c32cd5..20f7aef5d1 100644 --- a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/seconds.pass.cpp +++ b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/seconds.pass.cpp @@ -21,6 +21,7 @@ #include "test_macros.h" template +__host__ __device__ constexpr long check_seconds(Duration d) { using HMS = cuda::std::chrono::hh_mm_ss; diff --git a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/subseconds.pass.cpp b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/subseconds.pass.cpp index d6249fcfd7..59f854f598 100644 --- a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/subseconds.pass.cpp +++ b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/subseconds.pass.cpp @@ -21,6 +21,7 @@ #include "test_macros.h" template +__host__ __device__ constexpr long check_subseconds(Duration d) { using HMS = cuda::std::chrono::hh_mm_ss; diff --git a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/to_duration.pass.cpp b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/to_duration.pass.cpp index 0c4779160b..64ef1a94ad 100644 --- a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/to_duration.pass.cpp +++ b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/to_duration.pass.cpp @@ -21,6 +21,7 @@ #include "test_macros.h" template +__host__ __device__ constexpr long long check_duration(Duration d) { using HMS = cuda::std::chrono::hh_mm_ss; diff --git a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/width.pass.cpp b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/width.pass.cpp index 0f108c2b39..30258afef7 100644 --- a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/width.pass.cpp +++ b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/width.pass.cpp @@ -27,6 +27,7 @@ #include "test_macros.h" template +__host__ __device__ constexpr bool check_width() { using HMS = cuda::std::chrono::hh_mm_ss;