Skip to content

Commit

Permalink
Fix compilation for clang cuda compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
atchouprakov authored and alliepiper committed Jun 9, 2020
1 parent 6008d05 commit 5136357
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions testing/event.cu
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ void test_event_new_stream()
{
auto e0 = thrust::device_event(thrust::new_stream);

auto e0_stream = e0.stream().native_handle();

ASSERT_EQUAL(true, e0.valid_stream());

ASSERT_NOT_EQUAL_QUIET(nullptr, e0.stream().native_handle());
Expand Down
2 changes: 0 additions & 2 deletions testing/future.cu
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ struct test_future_new_stream
{
auto f0 = thrust::device_future<T>(thrust::new_stream);

auto f0_stream = f0.stream().native_handle();

ASSERT_EQUAL(true, f0.valid_stream());
ASSERT_EQUAL(false, f0.valid_content());

Expand Down
1 change: 1 addition & 0 deletions testing/uninitialized_fill.cu
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ DECLARE_VECTOR_UNITTEST(TestUninitializedFillPOD);

struct CopyConstructTest
{
__host__ __device__
CopyConstructTest(void)
:copy_constructed_on_host(false),
copy_constructed_on_device(false)
Expand Down
3 changes: 3 additions & 0 deletions testing/unittest/runtime_static_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ namespace unittest

namespace detail
{
#ifdef __clang__
__attribute__((used))
#endif
__device__ static static_assert_exception* device_exception = NULL;
}

Expand Down

0 comments on commit 5136357

Please sign in to comment.