Skip to content

updates intel SDE version #410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 3, 2018
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
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ matrix:
- env: DOCUMENTATION
install: true
script: ci/dox.sh
- script: cargo test --manifest-path crates/stdsimd-verify/Cargo.toml
- env: VERIFY_X86
script: cargo test --manifest-path crates/stdsimd-verify/Cargo.toml
install: true
- env: RUSTFMT=On TARGET=x86_64-unknown-linux-gnu NO_ADD=1
before_script:
Expand All @@ -54,6 +55,7 @@ matrix:
cargo clippy --all -- -D clippy-pedantic
allow_failures:
- env: CLIPPY=On TARGET=x86_64-unknown-linux-gnu NO_ADD=1
- env: VERIFY_X86

before_install:
# FIXME (travis-ci/travis-ci#8920) shouldn't be necessary...
Expand Down
8 changes: 4 additions & 4 deletions ci/docker/x86_64-unknown-linux-gnu-emulated/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:17.10
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
libc6-dev \
Expand All @@ -8,6 +8,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
bzip2

RUN wget https://github.com/gnzlbg/intel_sde/raw/master/sde-external-8.12.0-2017-10-23-lin.tar.bz2
RUN tar -xjf sde-external-8.12.0-2017-10-23-lin.tar.bz2
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="/sde-external-8.12.0-2017-10-23-lin/sde64 --"
RUN wget https://github.com/gnzlbg/intel_sde/raw/master/sde-external-8.16.0-2018-01-30-lin.tar.bz2
RUN tar -xjf sde-external-8.16.0-2018-01-30-lin.tar.bz2
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="/sde-external-8.16.0-2018-01-30-lin/sde64 --"
4 changes: 2 additions & 2 deletions coresimd/ppsv/api/arithmetic_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_arithmetic_ops {
($id: ident) => {
($id:ident) => {
impl ::ops::Add for $id {
type Output = Self;
#[inline]
Expand Down Expand Up @@ -87,7 +87,7 @@ macro_rules! impl_arithmetic_ops {

#[cfg(test)]
macro_rules! test_arithmetic_ops {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
#[test]
fn arithmetic() {
use coresimd::simd::$id;
Expand Down
4 changes: 2 additions & 2 deletions coresimd/ppsv/api/arithmetic_reductions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_arithmetic_reductions {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
impl $id {
/// Lane-wise addition of the vector elements.
///
Expand Down Expand Up @@ -65,7 +65,7 @@ macro_rules! impl_arithmetic_reductions {

#[cfg(test)]
macro_rules! test_arithmetic_reductions {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
fn alternating(x: usize) -> ::coresimd::simd::$id {
use coresimd::simd::$id;
let mut v = $id::splat(1 as $elem_ty);
Expand Down
4 changes: 2 additions & 2 deletions coresimd/ppsv/api/arithmetic_scalar_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_arithmetic_scalar_ops {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
impl ::ops::Add<$elem_ty> for $id {
type Output = Self;
#[inline]
Expand Down Expand Up @@ -117,7 +117,7 @@ macro_rules! impl_arithmetic_scalar_ops {

#[cfg(test)]
macro_rules! test_arithmetic_scalar_ops {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
#[test]
fn arithmetic_scalar() {
use coresimd::simd::$id;
Expand Down
6 changes: 3 additions & 3 deletions coresimd/ppsv/api/bitwise_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_bitwise_ops {
($id: ident, $true_val: expr) => {
($id:ident, $true_val:expr) => {
impl ::ops::Not for $id {
type Output = Self;
#[inline]
Expand Down Expand Up @@ -57,7 +57,7 @@ macro_rules! impl_bitwise_ops {

#[cfg(test)]
macro_rules! test_int_bitwise_ops {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
#[test]
fn bitwise_ops() {
use coresimd::simd::$id;
Expand Down Expand Up @@ -124,7 +124,7 @@ macro_rules! test_int_bitwise_ops {

#[cfg(test)]
macro_rules! test_bool_bitwise_ops {
($id: ident) => {
($id:ident) => {
#[test]
fn bool_arithmetic() {
use coresimd::simd::*;
Expand Down
6 changes: 3 additions & 3 deletions coresimd/ppsv/api/bitwise_reductions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_bitwise_reductions {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
impl $id {
/// Lane-wise bitwise `and` of the vector elements.
#[cfg(not(target_arch = "aarch64"))]
Expand Down Expand Up @@ -68,7 +68,7 @@ macro_rules! impl_bitwise_reductions {
}

macro_rules! impl_bool_bitwise_reductions {
($id: ident, $elem_ty: ident, $internal_ty: ident) => {
($id:ident, $elem_ty:ident, $internal_ty:ident) => {
impl $id {
/// Lane-wise bitwise `and` of the vector elements.
#[cfg(not(target_arch = "aarch64"))]
Expand Down Expand Up @@ -144,7 +144,7 @@ macro_rules! impl_bool_bitwise_reductions {

#[cfg(test)]
macro_rules! test_bitwise_reductions {
($id: ident, $true: expr) => {
($id:ident, $true:expr) => {
#[test]
fn and() {
let false_ = !$true;
Expand Down
6 changes: 3 additions & 3 deletions coresimd/ppsv/api/bitwise_scalar_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_bitwise_scalar_ops {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
impl ::ops::BitXor<$elem_ty> for $id {
type Output = Self;
#[inline]
Expand Down Expand Up @@ -71,7 +71,7 @@ macro_rules! impl_bitwise_scalar_ops {

#[cfg(test)]
macro_rules! test_int_bitwise_scalar_ops {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
#[test]
fn bitwise_scalar_ops() {
use coresimd::simd::$id;
Expand Down Expand Up @@ -157,7 +157,7 @@ macro_rules! test_int_bitwise_scalar_ops {

#[cfg(test)]
macro_rules! test_bool_bitwise_scalar_ops {
($id: ident) => {
($id:ident) => {
#[test]
fn bool_scalar_arithmetic() {
use coresimd::simd::*;
Expand Down
2 changes: 1 addition & 1 deletion coresimd/ppsv/api/bool_vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ macro_rules! impl_bool_minimal {

#[cfg(test)]
macro_rules! test_bool_minimal {
($id: ident, $elem_count: expr) => {
($id:ident, $elem_count:expr) => {
#[test]
fn minimal() {
use coresimd::simd::$id;
Expand Down
4 changes: 2 additions & 2 deletions coresimd/ppsv/api/boolean_reductions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_bool_reductions {
($id: ident) => {
($id:ident) => {
impl $id {
/// Are `all` vector lanes `true`?
#[cfg(not(target_arch = "aarch64"))]
Expand Down Expand Up @@ -47,7 +47,7 @@ macro_rules! impl_bool_reductions {

#[cfg(test)]
macro_rules! test_bool_reductions {
($id: ident) => {
($id:ident) => {
#[test]
fn all() {
use coresimd::simd::$id;
Expand Down
12 changes: 3 additions & 9 deletions coresimd/ppsv/api/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_cmp {
($id: ident, $bool_ty: ident) => {
($id:ident, $bool_ty:ident) => {
impl $id {
/// Lane-wise equality comparison.
#[inline]
Expand Down Expand Up @@ -50,7 +50,7 @@ macro_rules! impl_cmp {
}

macro_rules! impl_bool_cmp {
($id: ident, $bool_ty: ident) => {
($id:ident, $bool_ty:ident) => {
impl $id {
/// Lane-wise equality comparison.
#[inline]
Expand Down Expand Up @@ -99,13 +99,7 @@ macro_rules! impl_bool_cmp {

#[cfg(test)]
macro_rules! test_cmp {
(
$id: ident,
$elem_ty: ident,
$bool_ty: ident,
$true: expr,
$false: expr
) => {
($id:ident, $elem_ty:ident, $bool_ty:ident, $true:expr, $false:expr) => {
#[test]
fn cmp() {
use coresimd::simd::*;
Expand Down
4 changes: 2 additions & 2 deletions coresimd/ppsv/api/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_default {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
impl ::default::Default for $id {
#[inline]
fn default() -> Self {
Expand All @@ -14,7 +14,7 @@ macro_rules! impl_default {

#[cfg(test)]
macro_rules! test_default {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
#[test]
fn default() {
use coresimd::simd::$id;
Expand Down
2 changes: 1 addition & 1 deletion coresimd/ppsv/api/eq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_eq {
($id: ident) => {
($id:ident) => {
impl ::cmp::Eq for $id {}
};
}
4 changes: 2 additions & 2 deletions coresimd/ppsv/api/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_hex_fmt {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
impl ::fmt::LowerHex for $id {
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
use mem;
Expand Down Expand Up @@ -140,7 +140,7 @@ macro_rules! test_hex_fmt_impl {

#[cfg(test)]
macro_rules! test_hex_fmt {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
test_hex_fmt_impl!(
$id,
$elem_ty,
Expand Down
4 changes: 2 additions & 2 deletions coresimd/ppsv/api/from.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#![allow(unused)]

macro_rules! impl_from_impl {
($from: ident, $to: ident) => {
($from:ident, $to:ident) => {
impl ::convert::From<::simd::$from> for $to {
#[inline]
fn from(f: ::simd::$from) -> $to {
Expand All @@ -15,7 +15,7 @@ macro_rules! impl_from_impl {
}

macro_rules! impl_from_ {
($to: ident, $from: ident) => {
($to:ident, $from:ident) => {
vector_impl!([impl_from_impl, $to, $from]);
};
}
Expand Down
4 changes: 2 additions & 2 deletions coresimd/ppsv/api/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_hash {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
impl ::hash::Hash for $id {
#[inline]
fn hash<H: ::hash::Hasher>(&self, state: &mut H) {
Expand All @@ -18,7 +18,7 @@ macro_rules! impl_hash {

#[cfg(test)]
macro_rules! test_hash {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
#[test]
fn hash() {
use coresimd::simd::$id;
Expand Down
4 changes: 2 additions & 2 deletions coresimd/ppsv/api/load_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_load_store {
($id: ident, $elem_ty: ident, $elem_count: expr) => {
($id:ident, $elem_ty:ident, $elem_count:expr) => {
impl $id {
/// Writes the values of the vector to the `slice`.
///
Expand Down Expand Up @@ -149,7 +149,7 @@ macro_rules! impl_load_store {

#[cfg(test)]
macro_rules! test_load_store {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
#[test]
fn store_unaligned() {
use coresimd::simd::$id;
Expand Down
2 changes: 1 addition & 1 deletion coresimd/ppsv/api/minimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ macro_rules! impl_minimal {

#[cfg(test)]
macro_rules! test_minimal {
($id: ident, $elem_ty: ident, $elem_count: expr) => {
($id:ident, $elem_ty:ident, $elem_count:expr) => {
#[test]
fn minimal() {
use coresimd::simd::$id;
Expand Down
4 changes: 2 additions & 2 deletions coresimd/ppsv/api/minmax_reductions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_minmax_reductions {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
impl $id {
/// Largest vector value.
///
Expand Down Expand Up @@ -63,7 +63,7 @@ macro_rules! impl_minmax_reductions {

#[cfg(test)]
macro_rules! test_minmax_reductions {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
#[test]
fn max() {
use coresimd::simd::$id;
Expand Down
4 changes: 2 additions & 2 deletions coresimd/ppsv/api/neg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_neg_op {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
impl ::ops::Neg for $id {
type Output = Self;
#[inline]
Expand All @@ -15,7 +15,7 @@ macro_rules! impl_neg_op {

#[cfg(test)]
macro_rules! test_neg_op {
($id: ident, $elem_ty: ident) => {
($id:ident, $elem_ty:ident) => {
#[test]
fn neg() {
use coresimd::simd::$id;
Expand Down
4 changes: 2 additions & 2 deletions coresimd/ppsv/api/partial_eq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused)]

macro_rules! impl_partial_eq {
($id: ident) => {
($id:ident) => {
impl ::cmp::PartialEq<$id> for $id {
#[inline]
fn eq(&self, other: &Self) -> bool {
Expand All @@ -18,7 +18,7 @@ macro_rules! impl_partial_eq {

#[cfg(test)]
macro_rules! test_partial_eq {
($id: ident, $true: expr, $false: expr) => {
($id:ident, $true:expr, $false:expr) => {
#[test]
fn partial_eq() {
use coresimd::simd::*;
Expand Down
Loading