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

Commit 5136357

Browse files
atchouprakovalliepiper
authored andcommitted
Fix compilation for clang cuda compiler
1 parent 6008d05 commit 5136357

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

testing/event.cu

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ void test_event_new_stream()
5858
{
5959
auto e0 = thrust::device_event(thrust::new_stream);
6060

61-
auto e0_stream = e0.stream().native_handle();
62-
6361
ASSERT_EQUAL(true, e0.valid_stream());
6462

6563
ASSERT_NOT_EQUAL_QUIET(nullptr, e0.stream().native_handle());

testing/future.cu

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ struct test_future_new_stream
102102
{
103103
auto f0 = thrust::device_future<T>(thrust::new_stream);
104104

105-
auto f0_stream = f0.stream().native_handle();
106-
107105
ASSERT_EQUAL(true, f0.valid_stream());
108106
ASSERT_EQUAL(false, f0.valid_content());
109107

testing/uninitialized_fill.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ DECLARE_VECTOR_UNITTEST(TestUninitializedFillPOD);
147147

148148
struct CopyConstructTest
149149
{
150+
__host__ __device__
150151
CopyConstructTest(void)
151152
:copy_constructed_on_host(false),
152153
copy_constructed_on_device(false)

testing/unittest/runtime_static_assert.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ namespace unittest
7272

7373
namespace detail
7474
{
75+
#ifdef __clang__
76+
__attribute__((used))
77+
#endif
7578
__device__ static static_assert_exception* device_exception = NULL;
7679
}
7780

0 commit comments

Comments
 (0)