Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Add missing host/device on test functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhemstad committed Oct 23, 2020
1 parent 2bb8b1f commit 992563e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "test_macros.h"

template <typename Duration>
__host__ __device__
constexpr long check_hours(Duration d)
{
using HMS = cuda::std::chrono::hh_mm_ss<Duration>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "test_macros.h"

template <typename Duration>
__host__ __device__
constexpr bool check_neg(Duration d)
{
ASSERT_SAME_TYPE(bool, decltype(cuda::std::declval<cuda::std::chrono::hh_mm_ss<Duration>>().is_negative()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "test_macros.h"

template <typename Duration>
__host__ __device__
constexpr long check_minutes(Duration d)
{
using HMS = cuda::std::chrono::hh_mm_ss<Duration>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ constexpr unsigned long long powers[] = {
};

template <typename Duration, unsigned width>
__host__ __device__
constexpr bool check_precision()
{
using HMS = cuda::std::chrono::hh_mm_ss<Duration>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ constexpr unsigned long long powers[] = {
};

template <typename Duration, unsigned width>
__host__ __device__
constexpr bool check_precision()
{
using HMS = cuda::std::chrono::hh_mm_ss<Duration>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "test_macros.h"

template <typename Duration>
__host__ __device__
constexpr long check_seconds(Duration d)
{
using HMS = cuda::std::chrono::hh_mm_ss<Duration>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "test_macros.h"

template <typename Duration>
__host__ __device__
constexpr long check_subseconds(Duration d)
{
using HMS = cuda::std::chrono::hh_mm_ss<Duration>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "test_macros.h"

template <typename Duration>
__host__ __device__
constexpr long long check_duration(Duration d)
{
using HMS = cuda::std::chrono::hh_mm_ss<Duration>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "test_macros.h"

template <typename Duration, unsigned width>
__host__ __device__
constexpr bool check_width()
{
using HMS = cuda::std::chrono::hh_mm_ss<Duration>;
Expand Down

0 comments on commit 992563e

Please sign in to comment.