Skip to content

Commit 24a1b49

Browse files
committed
Merge from upstream
2 parents fd6d392 + 76e14e3 commit 24a1b49

File tree

34 files changed

+624
-6
lines changed

34 files changed

+624
-6
lines changed

External/HIP/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ macro(create_local_hip_tests VariantSuffix)
7070
list(APPEND HIP_LOCAL_TESTS with-fopenmp)
7171
list(APPEND HIP_LOCAL_TESTS saxpy)
7272
list(APPEND HIP_LOCAL_TESTS memmove)
73+
list(APPEND HIP_LOCAL_TESTS memset)
7374
list(APPEND HIP_LOCAL_TESTS split-kernel-args)
7475
list(APPEND HIP_LOCAL_TESTS builtin-logb-scalbn)
7576

External/HIP/array.hip

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <array>
1515
#include <assert.h>
1616

17-
#if __cplusplus >= 201402L && STDLIB_VERSION >= 2014
17+
#if __cplusplus >= 201402L
1818
// call the function in a constexpr and a non-constexpr context
1919
#define TEST(expr) \
2020
do { \
@@ -36,7 +36,7 @@
3636
MAYBE_CONSTEXPR __host__ __device__ size_t test_array() {
3737
// Before C++17 only "operator[] const" is constexpr (thus available on
3838
// device).
39-
#if __cplusplus < 201703L && STDLIB_VERSION < 2017
39+
#if __cplusplus < 201703L
4040
const
4141
#endif
4242
std::array<int, 4>
@@ -45,12 +45,12 @@ MAYBE_CONSTEXPR __host__ __device__ size_t test_array() {
4545
size_t N = A.size();
4646
assert(N == 4);
4747

48-
#if __cplusplus >= 201402L && STDLIB_VERSION >= 2014
48+
#if __cplusplus >= 201402L
4949
int fst = A[0];
5050
assert(fst == 0);
5151
#endif
5252

53-
#if __cplusplus >= 201703L && STDLIB_VERSION >= 2017
53+
#if __cplusplus >= 201703L
5454
A[0] = 4;
5555
int snd = A[0];
5656
assert(snd == 4);

External/HIP/memmove.hip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <cassert>
22
#include <cstring>
33
#include <iostream>
4+
#include <memory>
45
#include <vector>
56

67
#include "hip/hip_runtime.h"

0 commit comments

Comments
 (0)