Skip to content

Commit

Permalink
Add test for simd, fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Jul 9, 2021
1 parent 9970a5d commit 7ef5319
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ jobs:
export CARGO_TARGET_DIR="/github/home/target"
cd arrow
cargo test --features "simd"
- name: Check new project build with simd features
run: |
export CARGO_HOME="/github/home/.cargo"
export CARGO_TARGET_DIR="/github/home/target"
cd arrow/test/dependency/simd
cargo check
windows-and-macos:
name: Test on ${{ matrix.os }} Rust ${{ matrix.rust }}
Expand Down
4 changes: 2 additions & 2 deletions arrow/src/compute/kernels/comparison.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ where

let bitmask = T::mask_to_u64(&simd_result);
let bytes = bitmask.to_le_bytes();
&result_slice[0..lanes / 8].copy_from_slice(&bytes[0..lanes / 8]);
result_slice[0..lanes / 8].copy_from_slice(&bytes[0..lanes / 8]);

&mut result_slice[lanes / 8..]
},
Expand Down Expand Up @@ -669,7 +669,7 @@ where

let bitmask = T::mask_to_u64(&simd_result);
let bytes = bitmask.to_le_bytes();
&result_slice[0..lanes / 8].copy_from_slice(&bytes[0..lanes / 8]);
result_slice[0..lanes / 8].copy_from_slice(&bytes[0..lanes / 8]);

&mut result_slice[lanes / 8..]
},
Expand Down
3 changes: 1 addition & 2 deletions arrow/test/dependency/simd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
arrow = { path = "../../../../arrow", version = "5.0.0-SNAPSHOT" features = ["simd"]}

arrow = { path = "../../../../arrow", version = "5.0.0-SNAPSHOT", features = ["simd"]}

[workspace]

0 comments on commit 7ef5319

Please sign in to comment.