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

Fix compilation for clang cuda compiler #1181

Merged
merged 1 commit into from
Jun 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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