Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ jobs:
run: |
git ls-files vortex-cuda vortex-cxx vortex-duckdb vortex-ffi \
| grep -E '\.(cpp|hpp|cu|cuh|h)$' \
| grep -v 'kernels/src/bit_unpack_.*\.cu$' \
| xargs clang-format --dry-run --Werror --style=file

rust-lint-no-default:
Expand Down
23 changes: 4 additions & 19 deletions vortex-cuda/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,10 @@ fn main() {
{
println!("cargo:rerun-if-changed={}", entry.path().display());
}
let unpack_files = [
generate_unpack::<u8>(&kernels_src, 32).expect("Failed to generate unpack for u8"),
generate_unpack::<u16>(&kernels_src, 32).expect("Failed to generate unpack for u16"),
generate_unpack::<u32>(&kernels_src, 32).expect("Failed to generate unpack for u32"),
generate_unpack::<u64>(&kernels_src, 16).expect("Failed to generate unpack for u64"),
];
// Run clang-format on the generated files.
if let Ok(status) = Command::new("clang-format")
.arg("-i")
.arg("--style=file")
.args(&unpack_files)
.status()
{
if !status.success() {
println!("cargo:warning=clang-format exited with status {status}");
}
} else {
println!("cargo:warning=clang-format not found, skipping formatting of generated files");
}
generate_unpack::<u8>(&kernels_src, 32).expect("Failed to generate unpack for u8");
generate_unpack::<u16>(&kernels_src, 32).expect("Failed to generate unpack for u16");
generate_unpack::<u32>(&kernels_src, 32).expect("Failed to generate unpack for u32");
generate_unpack::<u64>(&kernels_src, 16).expect("Failed to generate unpack for u64");

let out_dir = PathBuf::from(env::var("OUT_DIR").expect("OUT_DIR not set"));
generate_dynamic_dispatch_bindings(&kernels_src, &out_dir);
Expand Down
Loading
Loading