Skip to content

Commit ce9e7bd

Browse files
committed
Merge remote-tracking branch 'origin/SYCLomatic' into remove_exp
2 parents a39e929 + 7a31cba commit ce9e7bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+652
-295
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// clang-format off
2+
#include <cstddef>
3+
#include <cub/cub.cuh>
4+
5+
void test(int *d_in) {
6+
// Start
7+
cub::ArgIndexInputIterator<int *> Iter(d_in);
8+
// End
9+
}

clang/examples/DPCT/CUB/cub$$BFE.cu

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// clang-format off
2+
#include <cstddef>
3+
#include <cub/cub.cuh>
4+
5+
__device__ void test(int input, unsigned int bit_start, unsigned int num_bits) {
6+
// Start
7+
cub::BFE(input/*int*/, bit_start/*unsigned int*/, num_bits/*unsigned int*/);
8+
// End
9+
}

clang/examples/DPCT/CUB/cub$$BFI.cu

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// clang-format off
2+
#include <cstddef>
3+
#include <cub/cub.cuh>
4+
5+
__device__ void test(unsigned int a, unsigned int b, unsigned int c, unsigned int bit_start, unsigned int num_bits) {
6+
// Start
7+
cub::BFI(a/*unsigned int*/, b/*unsigned int*/, c/*unsigned int*/, bit_start/*unsigned int*/, num_bits/*unsigned int*/);
8+
// End
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// clang-format off
2+
#include <cstddef>
3+
#include <cub/cub.cuh>
4+
5+
void test(int d_in) {
6+
// Start
7+
cub::ConstantInputIterator<int> Iter(d_in);
8+
// End
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// clang-format off
2+
#include <cstddef>
3+
#include <cub/cub.cuh>
4+
5+
void test(int d_in) {
6+
// Start
7+
cub::CountingInputIterator<int> Iter(d_in);
8+
// End
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// clang-format off
2+
#include <cstddef>
3+
#include <cub/cub.cuh>
4+
5+
__device__ void test(int res) {
6+
// Start
7+
res = cub::CurrentDevice();
8+
// End
9+
}

clang/examples/DPCT/CUB/cub$$Debug.cu

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// clang-format off
2+
#include <cstddef>
3+
#include <cub/cub.cuh>
4+
5+
__device__ void test(cudaError_t e, const char* filename, int line) {
6+
// Start
7+
cub::Debug(e/*cudaError_t*/, filename/*const char**/, line/*int*/);
8+
// End
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// clang-format off
2+
#include <cstddef>
3+
#include <cub/cub.cuh>
4+
5+
__device__ void test(int res) {
6+
// Start
7+
res = cub::DeviceCount();
8+
// End
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// clang-format off
2+
#include <cstddef>
3+
#include <cub/cub.cuh>
4+
5+
__device__ void test(int res) {
6+
// Start
7+
res = cub::DeviceCountCachedValue();
8+
// End
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// clang-format off
2+
#include <cstddef>
3+
#include <cub/cub.cuh>
4+
5+
__device__ void test(int res) {
6+
// Start
7+
res = cub::DeviceCountUncached();
8+
// End
9+
}

0 commit comments

Comments
 (0)