From e2abf0eb9dda5fe86fddaee2225ac984d9b3445f Mon Sep 17 00:00:00 2001 From: Corey Lowman Date: Mon, 27 Oct 2025 18:45:11 -0400 Subject: [PATCH 1/2] Remove _ for array lengths --- src/driver/result.rs | 4 ++-- src/runtime/result.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/driver/result.rs b/src/driver/result.rs index 0d5ddd15..b2322f5c 100644 --- a/src/driver/result.rs +++ b/src/driver/result.rs @@ -1161,7 +1161,7 @@ pub mod external_memory { handle: sys::CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st__bindgen_ty_1 { fd }, size, flags: 0, - reserved: [0; _], + reserved: [0; 16], }; sys::cuImportExternalMemory(external_memory.as_mut_ptr(), &handle_description).result()?; Ok(external_memory.assume_init()) @@ -1227,7 +1227,7 @@ pub mod external_memory { offset, size, flags: 0, - reserved: [0; _], + reserved: [0; 16], }; sys::cuExternalMemoryGetMappedBuffer( device_ptr.as_mut_ptr(), diff --git a/src/runtime/result.rs b/src/runtime/result.rs index 6cfdae72..a33e1031 100644 --- a/src/runtime/result.rs +++ b/src/runtime/result.rs @@ -944,7 +944,7 @@ pub mod external_memory { size, flags: 0, #[cfg(feature = "cuda-13000")] - reserved: [0; _], + reserved: [0; 16], }; sys::cudaImportExternalMemory(external_memory.as_mut_ptr(), &handle_description) .result()?; @@ -1013,7 +1013,7 @@ pub mod external_memory { size, flags: 0, #[cfg(feature = "cuda-13000")] - reserved: [0; _], + reserved: [0; 16], }; sys::cudaExternalMemoryGetMappedBuffer( device_ptr.as_mut_ptr(), From 26579b60202a3a90e1b292b45f96d65a64578b80 Mon Sep 17 00:00:00 2001 From: Corey Lowman Date: Mon, 27 Oct 2025 18:47:38 -0400 Subject: [PATCH 2/2] Adding new cargo publish dry run workflow --- .github/workflows/cargo-publish-dry-run.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/cargo-publish-dry-run.yaml diff --git a/.github/workflows/cargo-publish-dry-run.yaml b/.github/workflows/cargo-publish-dry-run.yaml new file mode 100644 index 00000000..95bf5bd1 --- /dev/null +++ b/.github/workflows/cargo-publish-dry-run.yaml @@ -0,0 +1,19 @@ +on: [pull_request] + +jobs: + cargo-publish-dry-run: + name: cargo-publish-dry-run + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: actions-rs/cargo@v1 + with: + command: publish + args: --dry-run -F cuda-13000