1
1
/*
2
- Copyright (c) 2017-2021 , Intel Corporation
2
+ Copyright (c) 2017-2024 , Intel Corporation
3
3
4
4
Redistribution and use in source and binary forms, with or without
5
5
modification, are permitted provided that the following conditions are met:
@@ -1510,7 +1510,7 @@ void irk_discrete_uniform_long_vec(irk_state *state, npy_intp len, long *res, co
1510
1510
int *buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
1511
1511
assert (buf != nullptr );
1512
1512
1513
- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, -1 , (const int )max);
1513
+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, -1 , (int )max);
1514
1514
assert (err == VSL_STATUS_OK);
1515
1515
1516
1516
DIST_PRAGMA_VECTOR
@@ -1626,7 +1626,7 @@ void irk_rand_bool_vec(irk_state *state, npy_intp len, npy_bool *res, const npy_
1626
1626
buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
1627
1627
assert (buf != nullptr );
1628
1628
1629
- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (const int )lo, (const int )hi + 1 );
1629
+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (int )lo, (int )hi + 1 );
1630
1630
assert (err == VSL_STATUS_OK);
1631
1631
1632
1632
DIST_PRAGMA_VECTOR
@@ -1666,7 +1666,7 @@ void irk_rand_uint8_vec(irk_state *state, npy_intp len, npy_uint8 *res, const np
1666
1666
buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
1667
1667
assert (buf != nullptr );
1668
1668
1669
- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (const int )lo, (const int )hi + 1 );
1669
+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (int )lo, (int )hi + 1 );
1670
1670
assert (err == VSL_STATUS_OK);
1671
1671
1672
1672
DIST_PRAGMA_VECTOR
@@ -1706,7 +1706,7 @@ void irk_rand_int8_vec(irk_state *state, npy_intp len, npy_int8 *res, const npy_
1706
1706
buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
1707
1707
assert (buf != nullptr );
1708
1708
1709
- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (const int )lo, (const int )hi + 1 );
1709
+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (int )lo, (int )hi + 1 );
1710
1710
assert (err == VSL_STATUS_OK);
1711
1711
1712
1712
DIST_PRAGMA_VECTOR
@@ -1746,7 +1746,7 @@ void irk_rand_uint16_vec(irk_state *state, npy_intp len, npy_uint16 *res, const
1746
1746
buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
1747
1747
assert (buf != nullptr );
1748
1748
1749
- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (const int )lo, (const int )hi + 1 );
1749
+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (int )lo, (int )hi + 1 );
1750
1750
assert (err == VSL_STATUS_OK);
1751
1751
1752
1752
DIST_PRAGMA_VECTOR
@@ -1786,7 +1786,7 @@ void irk_rand_int16_vec(irk_state *state, npy_intp len, npy_int16 *res, const np
1786
1786
buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
1787
1787
assert (buf != nullptr );
1788
1788
1789
- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (const int )lo, (const int )hi + 1 );
1789
+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (int )lo, (int )hi + 1 );
1790
1790
assert (err == VSL_STATUS_OK);
1791
1791
1792
1792
DIST_PRAGMA_VECTOR
@@ -1831,7 +1831,7 @@ void irk_rand_uint32_vec(irk_state *state, npy_intp len, npy_uint32 *res, const
1831
1831
if (lo)
1832
1832
shft++;
1833
1833
1834
- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, (int *)res, (const int )(lo - shft), (const int )(hi - shft + 1U ));
1834
+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, (int *)res, (int )(lo - shft), (int )(hi - shft + 1U ));
1835
1835
assert (err == VSL_STATUS_OK);
1836
1836
1837
1837
DIST_PRAGMA_VECTOR
@@ -1840,7 +1840,7 @@ void irk_rand_uint32_vec(irk_state *state, npy_intp len, npy_uint32 *res, const
1840
1840
}
1841
1841
else
1842
1842
{
1843
- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, (int *)res, (const int )lo, (const int )hi + 1 );
1843
+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, (int *)res, (int )lo, (int )hi + 1 );
1844
1844
assert (err == VSL_STATUS_OK);
1845
1845
}
1846
1846
}
@@ -1873,7 +1873,7 @@ void irk_rand_int32_vec(irk_state *state, npy_intp len, npy_int32 *res, const np
1873
1873
}
1874
1874
else
1875
1875
{
1876
- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, (int *)res, (const int )lo, (const int )hi + 1 );
1876
+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, (int *)res, (int )lo, (int )hi + 1 );
1877
1877
assert (err == VSL_STATUS_OK);
1878
1878
}
1879
1879
}
@@ -1921,7 +1921,7 @@ void irk_rand_uint64_vec(irk_state *state, npy_intp len, npy_uint64 *res, const
1921
1921
int *buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
1922
1922
assert (buf != nullptr );
1923
1923
1924
- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, 0 , (const int )rng);
1924
+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, 0 , (int )rng);
1925
1925
assert (err == VSL_STATUS_OK);
1926
1926
1927
1927
DIST_PRAGMA_VECTOR
0 commit comments