Skip to content

Commit f502b32

Browse files
authored
Merge branch 'main' into multi_gpu_CI_jobs_for_libcudacxx
2 parents 4e07552 + f150d51 commit f502b32

296 files changed

Lines changed: 12736 additions & 1692 deletions

File tree

Some content is hidden

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

.clang-tidy

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,24 @@ Checks:
2929
- '-modernize-return-braced-init-list'
3030
- '-modernize-use-auto'
3131
- 'clang-diagnostic-*'
32+
- 'bugprone-*'
33+
- '-bugprone-narrowing-conversions'
34+
- '-bugprone-misplaced-widening-cast'
35+
- '-bugprone-exception-escape'
36+
- '-bugprone-crtp-constructor-accessibility'
37+
- '-bugprone-forwarding-reference-overload'
38+
- '-bugprone-branch-clone'
39+
- '-bugprone-use-after-move'
40+
- '-bugprone-undefined-memory-manipulation'
41+
- '-bugprone-unchecked-optional-access'
42+
- '-bugprone-casting-through-void'
43+
- '-bugprone-integer-division'
44+
- '-bugprone-move-forwarding-reference'
45+
- '-bugprone-pointer-arithmetic-on-polymorphic-object'
46+
- '-bugprone-argument-comment'
47+
# This is just noise
48+
- '-bugprone-signed-char-misuse'
49+
- '-bugprone-multi-level-implicit-pointer-conversion'
3250
# END REMOVE ME
3351
# TODO(jfaibussowit):
3452
#
@@ -245,7 +263,6 @@ CheckOptions:
245263
readability-simplify-boolean-expr.ChainedConditionalReturn: 'true'
246264
readability-simplify-boolean-expr.ChainedConditionalAssignment: 'true'
247265
bugprone-dangling-handle.HandleClasses: '::cuda::std::span;::cuda::std::mdspan'
248-
bugprone-misplaced-widening-cast.CheckImplicitCasts: 'true'
249266
bugprone-unused-return-value.AllowCastToVoid: 'true'
250267
readability-enum-initial-value.AllowExplicitZeroFirstInitialValue: 'false'
251268
readability-enum-initial-value.AllowExplicitSequentialInitialValues: 'false'
@@ -297,4 +314,5 @@ CheckOptions:
297314
bugprone-reserved-identifier.AllowedIdentifiers: '^_CCCL.*'
298315
performance-enum-size.EnumIgnoreList: '::cuda::std::.*'
299316
performance-unnecessary-value-param.AllowedTypes: '.*(_ref(erence)?|_ptr|pointer|(_)?[Ii]t(erator)?|IteratorT|__half(2)?|(__nv_bfloat.*)|_view)$'
317+
bugprone-exception-escape.CheckMain: false
300318
...

c/parallel.v2/include/cccl/c/binary_search.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ CCCL_C_EXTERN_C_BEGIN
2626
typedef struct cccl_device_binary_search_build_result_t
2727
{
2828
int cc;
29-
void* cubin;
30-
size_t cubin_size;
29+
void* payload;
30+
size_t payload_size;
3131
void* jit_compiler; // hostjit::JITCompiler*
3232
void* binary_search_fn; // int(*)(void*, ull, void*, ull, void*, void*, void*)
3333
} cccl_device_binary_search_build_result_t;

c/parallel.v2/include/cccl/c/for.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ CCCL_C_EXTERN_C_BEGIN
2626
typedef struct cccl_device_for_build_result_t
2727
{
2828
int cc;
29-
void* cubin;
30-
size_t cubin_size;
29+
void* payload;
30+
size_t payload_size;
3131
void* jit_compiler; // hostjit::JITCompiler*
3232
void* for_fn; // int(*)(void*, unsigned long long, void*)
3333
} cccl_device_for_build_result_t;

c/parallel.v2/include/cccl/c/histogram.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ CCCL_C_EXTERN_C_BEGIN
2727
typedef struct cccl_device_histogram_build_result_t
2828
{
2929
int cc;
30-
void* cubin;
31-
size_t cubin_size;
30+
void* payload;
31+
size_t payload_size;
3232
void* jit_compiler;
3333
void* histogram_fn;
3434
cccl_type_info counter_type;

c/parallel.v2/include/cccl/c/merge_sort.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ CCCL_C_EXTERN_C_BEGIN
2626
typedef struct cccl_device_merge_sort_build_result_t
2727
{
2828
int cc;
29-
void* cubin;
30-
size_t cubin_size;
29+
void* payload;
30+
size_t payload_size;
3131
void* jit_compiler;
3232
void* sort_fn;
3333
// 1 if the build compiled SortKeysCopy (no items), 0 if SortPairsCopy. The

c/parallel.v2/include/cccl/c/radix_sort.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ CCCL_C_EXTERN_C_BEGIN
2727
typedef struct cccl_device_radix_sort_build_result_t
2828
{
2929
int cc;
30-
void* cubin;
31-
size_t cubin_size;
30+
void* payload;
31+
size_t payload_size;
3232
void* jit_compiler; /* Owns both wrappers below — one TU, one cubin */
3333
void* sort_fn; /* Wrapper around CUB's copy-overload (selector always 0) */
3434
void* sort_fn_overwrite; /* Wrapper around CUB's DoubleBuffer overload; reports selector */

c/parallel.v2/include/cccl/c/reduce.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ CCCL_C_EXTERN_C_BEGIN
2626
typedef struct cccl_device_reduce_build_result_t
2727
{
2828
int cc;
29-
void* cubin;
30-
size_t cubin_size;
29+
void* payload;
30+
size_t payload_size;
3131
void* jit_compiler; // hostjit::JITCompiler*
3232
void* reduce_fn; // int(*)(void*, size_t*, void*, void*, unsigned long long, void*, void*, void*) — trailing void* is
3333
// the CUstream

c/parallel.v2/include/cccl/c/scan.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ CCCL_C_EXTERN_C_BEGIN
2727
typedef struct cccl_device_scan_build_result_t
2828
{
2929
int cc;
30-
void* cubin;
31-
size_t cubin_size;
30+
void* payload;
31+
size_t payload_size;
3232
void* jit_compiler;
3333
void* scan_fn;
3434
bool force_inclusive;

c/parallel.v2/include/cccl/c/segmented_reduce.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ CCCL_C_EXTERN_C_BEGIN
2626
typedef struct cccl_device_segmented_reduce_build_result_t
2727
{
2828
int cc;
29-
void* cubin;
30-
size_t cubin_size;
29+
void* payload;
30+
size_t payload_size;
3131
void* jit_compiler;
3232
void* segmented_reduce_fn;
3333
} cccl_device_segmented_reduce_build_result_t;

c/parallel.v2/include/cccl/c/segmented_sort.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ CCCL_C_EXTERN_C_BEGIN
2727
typedef struct cccl_device_segmented_sort_build_result_t
2828
{
2929
int cc;
30-
void* cubin;
31-
size_t cubin_size;
30+
void* payload;
31+
size_t payload_size;
3232
void* jit_compiler; /* Owns both wrappers below — one TU, one cubin */
3333
void* sort_fn; /* Wrapper around CUB's copy-overload (selector always 0) */
3434
void* sort_fn_overwrite; /* Wrapper around CUB's DoubleBuffer overload; reports selector */

0 commit comments

Comments
 (0)