Skip to content

chore: format cuda code#6508

Draft
0ax1 wants to merge 1 commit intodevelopfrom
ad/format-cuda-code
Draft

chore: format cuda code#6508
0ax1 wants to merge 1 commit intodevelopfrom
ad/format-cuda-code

Conversation

@0ax1
Copy link
Contributor

@0ax1 0ax1 commented Feb 13, 2026

What changes are included in this PR?

Formats all CUDA code. The clang-format style picked is identical to the style used for vortex-duckdb. Generated code is excluded.

What is the rationale for this change?

Consistent formatting for all CUDA code.

Are there any user-facing changes?

No

Signed-off-by: Alexander Droste <alexander.droste@protonmail.com>
@0ax1 0ax1 force-pushed the ad/format-cuda-code branch from ab089ba to a858b2d Compare February 13, 2026 19:03
@0ax1 0ax1 added the changelog/chore A trivial change label Feb 13, 2026
@0ax1 0ax1 enabled auto-merge (squash) February 13, 2026 19:21
@0ax1 0ax1 requested a review from a10y February 13, 2026 19:21
return filter_bitmask_impl<Type>(d_temp, temp_bytes, d_in, d_bitmask, bit_offset, d_out, d_num_selected, num_items, stream); \
}
#define DEFINE_FILTER_BITMASK(suffix, Type) \
extern "C" cudaError_t filter_bitmask_##suffix( \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, one line per arg actually seems more readable here.

@a10y
Copy link
Contributor

a10y commented Feb 13, 2026

should we have a check for this?

@a10y
Copy link
Contributor

a10y commented Feb 13, 2026

Or a way to plumb it into the normal formatters we run

@0ax1
Copy link
Contributor Author

0ax1 commented Feb 13, 2026

should we have a check for this?

Not sure i want to require everyone to have clang-format installed.

@0ax1
Copy link
Contributor Author

0ax1 commented Feb 13, 2026

Or a way to plumb it into the normal formatters we run

In some way, I'd love CI to just auto-format, re-stage and commit any touched file. Repeating CI runs bc of formatting seems a bit like a waste of time.

@0ax1 0ax1 marked this pull request as draft February 13, 2026 20:46
auto-merge was automatically disabled February 13, 2026 20:46

Pull request was converted to draft

@0ax1
Copy link
Contributor Author

0ax1 commented Feb 13, 2026

Changed to draft: Wanna iterate on the format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants