summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-06-25 11:50:36 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2017-06-25 11:50:36 +0200
commit1a8ed48a358bbea8a68b23fe8c76593ba3029eb2 (patch)
tree46d96009312e776b1157890de32ae488dba400b9
parent7eab65b6996736094ea6517beec7cb3f3642f0e6 (diff)
Fixed some Clang and MSVC warnings
-rw-r--r--scripts/generator/generator/cpp.py9
-rw-r--r--scripts/generator/generator/routine.py4
-rw-r--r--src/database/kernels/xtrsv.hpp10
-rw-r--r--test/wrapper_cblas.hpp260
4 files changed, 141 insertions, 142 deletions
diff --git a/scripts/generator/generator/cpp.py b/scripts/generator/generator/cpp.py
index 17e418e3..964b8f3e 100644
--- a/scripts/generator/generator/cpp.py
+++ b/scripts/generator/generator/cpp.py
@@ -241,7 +241,7 @@ def wrapper_cblas(routine):
# Special case for scalar outputs
assignment = ""
- postfix = ""
+ postfix, postpostfix = "", ""
end_of_line = ""
extra_argument = ""
for output_buffer in routine.outputs:
@@ -253,8 +253,9 @@ def wrapper_cblas(routine):
extra_argument += "reinterpret_cast<return_pointer_" + flavour.buffer_type[:-1] + ">"
extra_argument += "(&" + output_buffer + "_buffer[" + output_buffer + "_offset])"
elif output_buffer in routine.index_buffers():
- assignment = "((int*)&" + output_buffer + "_buffer[0])[" + output_buffer + "_offset] = "
- indent += " " * len(assignment)
+ assignment = "reinterpret_cast<int*>(&" + output_buffer + "_buffer[0])[" + output_buffer + "_offset] = static_cast<int>("
+ postpostfix = ")"
+ indent += " " * (len(assignment) + 1)
else:
assignment = output_buffer + "_buffer[" + output_buffer + "_offset]"
if flavour.name in ["Sc", "Dz"]:
@@ -266,7 +267,7 @@ def wrapper_cblas(routine):
result += " " + assignment + "cblas_" + flavour.name.lower() + routine.name + postfix + "("
result += ("," + NL + indent).join([a for a in arguments])
- result += extra_argument + end_of_line + ");" + NL
+ result += extra_argument + end_of_line + ")" + postpostfix + ";" + NL
# There is no CBLAS available, forward the call to one of the available functions
else: # Half-precision
diff --git a/scripts/generator/generator/routine.py b/scripts/generator/generator/routine.py
index 1c534611..b2422dad 100644
--- a/scripts/generator/generator/routine.py
+++ b/scripts/generator/generator/routine.py
@@ -336,10 +336,8 @@ class Routine:
else:
a = ["&" + name + "_buffer[" + name + "_offset]"]
c = []
- if name in ["x", "y"]:
+ if name in ["x", "y", "a", "b", "c"]:
c = ["static_cast<int>(" + name + "_" + self.postfix(name) + ")"]
- elif name in ["a", "b", "c"]:
- c = [name + "_" + self.postfix(name)]
return [", ".join(a + c)]
return []
diff --git a/src/database/kernels/xtrsv.hpp b/src/database/kernels/xtrsv.hpp
index c6ebadba..6633b8b7 100644
--- a/src/database/kernels/xtrsv.hpp
+++ b/src/database/kernels/xtrsv.hpp
@@ -19,7 +19,7 @@ const Database::DatabaseEntry XtrsvHalf = {
"Xtrsv", Precision::kHalf, {"TRSV_BLOCK_SIZE"}, {
{ // Default
kDeviceTypeAll, "default", {
- { "default", { { 32 } } },
+ { "default", { 32 } },
}
},
}
@@ -31,7 +31,7 @@ const Database::DatabaseEntry XtrsvSingle = {
"Xtrsv", Precision::kSingle, {"TRSV_BLOCK_SIZE"}, {
{ // Default
kDeviceTypeAll, "default", {
- { "default", { { 32 } } },
+ { "default", { 32 } },
}
},
}
@@ -43,7 +43,7 @@ const Database::DatabaseEntry XtrsvComplexSingle = {
"Xtrsv", Precision::kComplexSingle, {"TRSV_BLOCK_SIZE"}, {
{ // Default
kDeviceTypeAll, "default", {
- { "default", { { 32 } } },
+ { "default", { 32 } },
}
},
}
@@ -55,7 +55,7 @@ const Database::DatabaseEntry XtrsvDouble = {
"Xtrsv", Precision::kDouble, {"TRSV_BLOCK_SIZE"}, {
{ // Default
kDeviceTypeAll, "default", {
- { "default", { { 32 } } },
+ { "default", { 32 } },
}
},
}
@@ -67,7 +67,7 @@ const Database::DatabaseEntry XtrsvComplexDouble = {
"Xtrsv", Precision::kComplexDouble, {"TRSV_BLOCK_SIZE"}, {
{ // Default
kDeviceTypeAll, "default", {
- { "default", { { 32 } } },
+ { "default", { 32 } },
}
},
}
diff --git a/test/wrapper_cblas.hpp b/test/wrapper_cblas.hpp
index 070d44b5..408f084b 100644
--- a/test/wrapper_cblas.hpp
+++ b/test/wrapper_cblas.hpp
@@ -453,26 +453,26 @@ void cblasXasum(const size_t n,
void cblasXamax(const size_t n,
std::vector<float>& imax_buffer, const size_t imax_offset,
const std::vector<float>& x_buffer, const size_t x_offset, const size_t x_inc) {
- ((int*)&imax_buffer[0])[imax_offset] = cblas_isamax(static_cast<int>(n),
- &x_buffer[x_offset], static_cast<int>(x_inc));
+ reinterpret_cast<int*>(&imax_buffer[0])[imax_offset] = static_cast<int>(cblas_isamax(static_cast<int>(n),
+ &x_buffer[x_offset], static_cast<int>(x_inc)));
}
void cblasXamax(const size_t n,
std::vector<double>& imax_buffer, const size_t imax_offset,
const std::vector<double>& x_buffer, const size_t x_offset, const size_t x_inc) {
- ((int*)&imax_buffer[0])[imax_offset] = cblas_idamax(static_cast<int>(n),
- &x_buffer[x_offset], static_cast<int>(x_inc));
+ reinterpret_cast<int*>(&imax_buffer[0])[imax_offset] = static_cast<int>(cblas_idamax(static_cast<int>(n),
+ &x_buffer[x_offset], static_cast<int>(x_inc)));
}
void cblasXamax(const size_t n,
std::vector<float2>& imax_buffer, const size_t imax_offset,
const std::vector<float2>& x_buffer, const size_t x_offset, const size_t x_inc) {
- ((int*)&imax_buffer[0])[imax_offset] = cblas_icamax(static_cast<int>(n),
- reinterpret_cast<const float*>(&x_buffer[x_offset]), static_cast<int>(x_inc));
+ reinterpret_cast<int*>(&imax_buffer[0])[imax_offset] = static_cast<int>(cblas_icamax(static_cast<int>(n),
+ reinterpret_cast<const float*>(&x_buffer[x_offset]), static_cast<int>(x_inc)));
}
void cblasXamax(const size_t n,
std::vector<double2>& imax_buffer, const size_t imax_offset,
const std::vector<double2>& x_buffer, const size_t x_offset, const size_t x_inc) {
- ((int*)&imax_buffer[0])[imax_offset] = cblas_izamax(static_cast<int>(n),
- reinterpret_cast<const double*>(&x_buffer[x_offset]), static_cast<int>(x_inc));
+ reinterpret_cast<int*>(&imax_buffer[0])[imax_offset] = static_cast<int>(cblas_izamax(static_cast<int>(n),
+ reinterpret_cast<const double*>(&x_buffer[x_offset]), static_cast<int>(x_inc)));
}
void cblasXamax(const size_t n,
std::vector<half>& imax_buffer, const size_t imax_offset,
@@ -500,7 +500,7 @@ void cblasXgemv(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose,
cblas_sgemv(layout, a_transpose,
static_cast<int>(m), static_cast<int>(n),
alpha,
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc),
beta,
&y_buffer[y_offset], static_cast<int>(y_inc));
@@ -515,7 +515,7 @@ void cblasXgemv(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose,
cblas_dgemv(layout, a_transpose,
static_cast<int>(m), static_cast<int>(n),
alpha,
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc),
beta,
&y_buffer[y_offset], static_cast<int>(y_inc));
@@ -532,7 +532,7 @@ void cblasXgemv(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose,
cblas_cgemv(layout, a_transpose,
static_cast<int>(m), static_cast<int>(n),
alpha_array.data(),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<const float*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
beta_array.data(),
reinterpret_cast<float*>(&y_buffer[y_offset]), static_cast<int>(y_inc));
@@ -549,7 +549,7 @@ void cblasXgemv(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose,
cblas_zgemv(layout, a_transpose,
static_cast<int>(m), static_cast<int>(n),
alpha_array.data(),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<const double*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
beta_array.data(),
reinterpret_cast<double*>(&y_buffer[y_offset]), static_cast<int>(y_inc));
@@ -585,7 +585,7 @@ void cblasXgbmv(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose,
cblas_sgbmv(layout, a_transpose,
static_cast<int>(m), static_cast<int>(n), static_cast<int>(kl), static_cast<int>(ku),
alpha,
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc),
beta,
&y_buffer[y_offset], static_cast<int>(y_inc));
@@ -600,7 +600,7 @@ void cblasXgbmv(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose,
cblas_dgbmv(layout, a_transpose,
static_cast<int>(m), static_cast<int>(n), static_cast<int>(kl), static_cast<int>(ku),
alpha,
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc),
beta,
&y_buffer[y_offset], static_cast<int>(y_inc));
@@ -617,7 +617,7 @@ void cblasXgbmv(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose,
cblas_cgbmv(layout, a_transpose,
static_cast<int>(m), static_cast<int>(n), static_cast<int>(kl), static_cast<int>(ku),
alpha_array.data(),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<const float*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
beta_array.data(),
reinterpret_cast<float*>(&y_buffer[y_offset]), static_cast<int>(y_inc));
@@ -634,7 +634,7 @@ void cblasXgbmv(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose,
cblas_zgbmv(layout, a_transpose,
static_cast<int>(m), static_cast<int>(n), static_cast<int>(kl), static_cast<int>(ku),
alpha_array.data(),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<const double*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
beta_array.data(),
reinterpret_cast<double*>(&y_buffer[y_offset]), static_cast<int>(y_inc));
@@ -672,7 +672,7 @@ void cblasXhemv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
cblas_chemv(layout, triangle,
static_cast<int>(n),
alpha_array.data(),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<const float*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
beta_array.data(),
reinterpret_cast<float*>(&y_buffer[y_offset]), static_cast<int>(y_inc));
@@ -689,7 +689,7 @@ void cblasXhemv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
cblas_zhemv(layout, triangle,
static_cast<int>(n),
alpha_array.data(),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<const double*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
beta_array.data(),
reinterpret_cast<double*>(&y_buffer[y_offset]), static_cast<int>(y_inc));
@@ -708,7 +708,7 @@ void cblasXhbmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
cblas_chbmv(layout, triangle,
static_cast<int>(n), static_cast<int>(k),
alpha_array.data(),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<const float*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
beta_array.data(),
reinterpret_cast<float*>(&y_buffer[y_offset]), static_cast<int>(y_inc));
@@ -725,7 +725,7 @@ void cblasXhbmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
cblas_zhbmv(layout, triangle,
static_cast<int>(n), static_cast<int>(k),
alpha_array.data(),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<const double*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
beta_array.data(),
reinterpret_cast<double*>(&y_buffer[y_offset]), static_cast<int>(y_inc));
@@ -778,7 +778,7 @@ void cblasXsymv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
cblas_ssymv(layout, triangle,
static_cast<int>(n),
alpha,
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc),
beta,
&y_buffer[y_offset], static_cast<int>(y_inc));
@@ -793,7 +793,7 @@ void cblasXsymv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
cblas_dsymv(layout, triangle,
static_cast<int>(n),
alpha,
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc),
beta,
&y_buffer[y_offset], static_cast<int>(y_inc));
@@ -829,7 +829,7 @@ void cblasXsbmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
cblas_ssbmv(layout, triangle,
static_cast<int>(n), static_cast<int>(k),
alpha,
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc),
beta,
&y_buffer[y_offset], static_cast<int>(y_inc));
@@ -844,7 +844,7 @@ void cblasXsbmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
cblas_dsbmv(layout, triangle,
static_cast<int>(n), static_cast<int>(k),
alpha,
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc),
beta,
&y_buffer[y_offset], static_cast<int>(y_inc));
@@ -927,7 +927,7 @@ void cblasXtrmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<float>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_strmv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n),
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc));
}
void cblasXtrmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -936,7 +936,7 @@ void cblasXtrmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<double>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_dtrmv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n),
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc));
}
void cblasXtrmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -945,7 +945,7 @@ void cblasXtrmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<float2>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_ctrmv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<float*>(&x_buffer[x_offset]), static_cast<int>(x_inc));
}
void cblasXtrmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -954,7 +954,7 @@ void cblasXtrmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<double2>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_ztrmv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<double*>(&x_buffer[x_offset]), static_cast<int>(x_inc));
}
void cblasXtrmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -977,7 +977,7 @@ void cblasXtbmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<float>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_stbmv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n), static_cast<int>(k),
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc));
}
void cblasXtbmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -986,7 +986,7 @@ void cblasXtbmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<double>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_dtbmv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n), static_cast<int>(k),
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc));
}
void cblasXtbmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -995,7 +995,7 @@ void cblasXtbmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<float2>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_ctbmv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n), static_cast<int>(k),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<float*>(&x_buffer[x_offset]), static_cast<int>(x_inc));
}
void cblasXtbmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -1004,7 +1004,7 @@ void cblasXtbmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<double2>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_ztbmv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n), static_cast<int>(k),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<double*>(&x_buffer[x_offset]), static_cast<int>(x_inc));
}
void cblasXtbmv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -1077,7 +1077,7 @@ void cblasXtrsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<float>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_strsv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n),
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc));
}
void cblasXtrsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -1086,7 +1086,7 @@ void cblasXtrsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<double>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_dtrsv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n),
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc));
}
void cblasXtrsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -1095,7 +1095,7 @@ void cblasXtrsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<float2>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_ctrsv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<float*>(&x_buffer[x_offset]), static_cast<int>(x_inc));
}
void cblasXtrsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -1104,7 +1104,7 @@ void cblasXtrsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<double2>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_ztrsv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<double*>(&x_buffer[x_offset]), static_cast<int>(x_inc));
}
@@ -1115,7 +1115,7 @@ void cblasXtbsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<float>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_stbsv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n), static_cast<int>(k),
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc));
}
void cblasXtbsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -1124,7 +1124,7 @@ void cblasXtbsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<double>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_dtbsv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n), static_cast<int>(k),
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
&x_buffer[x_offset], static_cast<int>(x_inc));
}
void cblasXtbsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -1133,7 +1133,7 @@ void cblasXtbsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<float2>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_ctbsv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n), static_cast<int>(k),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<float*>(&x_buffer[x_offset]), static_cast<int>(x_inc));
}
void cblasXtbsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
@@ -1142,7 +1142,7 @@ void cblasXtbsv(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
std::vector<double2>& x_buffer, const size_t x_offset, const size_t x_inc) {
cblas_ztbsv(layout, triangle, a_transpose, diagonal,
static_cast<int>(n), static_cast<int>(k),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
reinterpret_cast<double*>(&x_buffer[x_offset]), static_cast<int>(x_inc));
}
@@ -1196,7 +1196,7 @@ void cblasXger(const CBLAS_ORDER layout,
alpha,
&x_buffer[x_offset], static_cast<int>(x_inc),
&y_buffer[y_offset], static_cast<int>(y_inc),
- &a_buffer[a_offset], a_ld);
+ &a_buffer[a_offset], static_cast<int>(a_ld));
}
void cblasXger(const CBLAS_ORDER layout,
const size_t m, const size_t n,
@@ -1209,7 +1209,7 @@ void cblasXger(const CBLAS_ORDER layout,
alpha,
&x_buffer[x_offset], static_cast<int>(x_inc),
&y_buffer[y_offset], static_cast<int>(y_inc),
- &a_buffer[a_offset], a_ld);
+ &a_buffer[a_offset], static_cast<int>(a_ld));
}
void cblasXger(const CBLAS_ORDER layout,
const size_t m, const size_t n,
@@ -1242,7 +1242,7 @@ void cblasXgeru(const CBLAS_ORDER layout,
alpha_array.data(),
reinterpret_cast<const float*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
reinterpret_cast<const float*>(&y_buffer[y_offset]), static_cast<int>(y_inc),
- reinterpret_cast<float*>(&a_buffer[a_offset]), a_ld);
+ reinterpret_cast<float*>(&a_buffer[a_offset]), static_cast<int>(a_ld));
}
void cblasXgeru(const CBLAS_ORDER layout,
const size_t m, const size_t n,
@@ -1256,7 +1256,7 @@ void cblasXgeru(const CBLAS_ORDER layout,
alpha_array.data(),
reinterpret_cast<const double*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
reinterpret_cast<const double*>(&y_buffer[y_offset]), static_cast<int>(y_inc),
- reinterpret_cast<double*>(&a_buffer[a_offset]), a_ld);
+ reinterpret_cast<double*>(&a_buffer[a_offset]), static_cast<int>(a_ld));
}
// Forwards the Netlib BLAS calls for CGERC/ZGERC
@@ -1272,7 +1272,7 @@ void cblasXgerc(const CBLAS_ORDER layout,
alpha_array.data(),
reinterpret_cast<const float*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
reinterpret_cast<const float*>(&y_buffer[y_offset]), static_cast<int>(y_inc),
- reinterpret_cast<float*>(&a_buffer[a_offset]), a_ld);
+ reinterpret_cast<float*>(&a_buffer[a_offset]), static_cast<int>(a_ld));
}
void cblasXgerc(const CBLAS_ORDER layout,
const size_t m, const size_t n,
@@ -1286,7 +1286,7 @@ void cblasXgerc(const CBLAS_ORDER layout,
alpha_array.data(),
reinterpret_cast<const double*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
reinterpret_cast<const double*>(&y_buffer[y_offset]), static_cast<int>(y_inc),
- reinterpret_cast<double*>(&a_buffer[a_offset]), a_ld);
+ reinterpret_cast<double*>(&a_buffer[a_offset]), static_cast<int>(a_ld));
}
// Forwards the Netlib BLAS calls for CHER/ZHER
@@ -1299,7 +1299,7 @@ void cblasXher(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
static_cast<int>(n),
alpha,
reinterpret_cast<const float*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
- reinterpret_cast<float*>(&a_buffer[a_offset]), a_ld);
+ reinterpret_cast<float*>(&a_buffer[a_offset]), static_cast<int>(a_ld));
}
void cblasXher(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
const size_t n,
@@ -1310,7 +1310,7 @@ void cblasXher(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
static_cast<int>(n),
alpha,
reinterpret_cast<const double*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
- reinterpret_cast<double*>(&a_buffer[a_offset]), a_ld);
+ reinterpret_cast<double*>(&a_buffer[a_offset]), static_cast<int>(a_ld));
}
// Forwards the Netlib BLAS calls for CHPR/ZHPR
@@ -1350,7 +1350,7 @@ void cblasXher2(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
alpha_array.data(),
reinterpret_cast<const float*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
reinterpret_cast<const float*>(&y_buffer[y_offset]), static_cast<int>(y_inc),
- reinterpret_cast<float*>(&a_buffer[a_offset]), a_ld);
+ reinterpret_cast<float*>(&a_buffer[a_offset]), static_cast<int>(a_ld));
}
void cblasXher2(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
const size_t n,
@@ -1364,7 +1364,7 @@ void cblasXher2(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
alpha_array.data(),
reinterpret_cast<const double*>(&x_buffer[x_offset]), static_cast<int>(x_inc),
reinterpret_cast<const double*>(&y_buffer[y_offset]), static_cast<int>(y_inc),
- reinterpret_cast<double*>(&a_buffer[a_offset]), a_ld);
+ reinterpret_cast<double*>(&a_buffer[a_offset]), static_cast<int>(a_ld));
}
// Forwards the Netlib BLAS calls for CHPR2/ZHPR2
@@ -1407,7 +1407,7 @@ void cblasXsyr(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
static_cast<int>(n),
alpha,
&x_buffer[x_offset], static_cast<int>(x_inc),
- &a_buffer[a_offset], a_ld);
+ &a_buffer[a_offset], static_cast<int>(a_ld));
}
void cblasXsyr(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
const size_t n,
@@ -1418,7 +1418,7 @@ void cblasXsyr(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
static_cast<int>(n),
alpha,
&x_buffer[x_offset], static_cast<int>(x_inc),
- &a_buffer[a_offset], a_ld);
+ &a_buffer[a_offset], static_cast<int>(a_ld));
}
void cblasXsyr(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
const size_t n,
@@ -1485,7 +1485,7 @@ void cblasXsyr2(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
alpha,
&x_buffer[x_offset], static_cast<int>(x_inc),
&y_buffer[y_offset], static_cast<int>(y_inc),
- &a_buffer[a_offset], a_ld);
+ &a_buffer[a_offset], static_cast<int>(a_ld));
}
void cblasXsyr2(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
const size_t n,
@@ -1498,7 +1498,7 @@ void cblasXsyr2(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
alpha,
&x_buffer[x_offset], static_cast<int>(x_inc),
&y_buffer[y_offset], static_cast<int>(y_inc),
- &a_buffer[a_offset], a_ld);
+ &a_buffer[a_offset], static_cast<int>(a_ld));
}
void cblasXsyr2(const CBLAS_ORDER layout, const CBLAS_UPLO triangle,
const size_t n,
@@ -1578,10 +1578,10 @@ void cblasXgemm(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose, con
cblas_sgemm(layout, a_transpose, b_transpose,
static_cast<int>(m), static_cast<int>(n), static_cast<int>(k),
alpha,
- &a_buffer[a_offset], a_ld,
- &b_buffer[b_offset], b_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
+ &b_buffer[b_offset], static_cast<int>(b_ld),
beta,
- &c_buffer[c_offset], c_ld);
+ &c_buffer[c_offset], static_cast<int>(c_ld));
}
void cblasXgemm(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose, const CBLAS_TRANSPOSE b_transpose,
const size_t m, const size_t n, const size_t k,
@@ -1593,10 +1593,10 @@ void cblasXgemm(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose, con
cblas_dgemm(layout, a_transpose, b_transpose,
static_cast<int>(m), static_cast<int>(n), static_cast<int>(k),
alpha,
- &a_buffer[a_offset], a_ld,
- &b_buffer[b_offset], b_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
+ &b_buffer[b_offset], static_cast<int>(b_ld),
beta,
- &c_buffer[c_offset], c_ld);
+ &c_buffer[c_offset], static_cast<int>(c_ld));
}
void cblasXgemm(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose, const CBLAS_TRANSPOSE b_transpose,
const size_t m, const size_t n, const size_t k,
@@ -1610,10 +1610,10 @@ void cblasXgemm(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose, con
cblas_cgemm(layout, a_transpose, b_transpose,
static_cast<int>(m), static_cast<int>(n), static_cast<int>(k),
alpha_array.data(),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<const float*>(&b_buffer[b_offset]), b_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<const float*>(&b_buffer[b_offset]), static_cast<int>(b_ld),
beta_array.data(),
- reinterpret_cast<float*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<float*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
void cblasXgemm(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose, const CBLAS_TRANSPOSE b_transpose,
const size_t m, const size_t n, const size_t k,
@@ -1627,10 +1627,10 @@ void cblasXgemm(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose, con
cblas_zgemm(layout, a_transpose, b_transpose,
static_cast<int>(m), static_cast<int>(n), static_cast<int>(k),
alpha_array.data(),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<const double*>(&b_buffer[b_offset]), b_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<const double*>(&b_buffer[b_offset]), static_cast<int>(b_ld),
beta_array.data(),
- reinterpret_cast<double*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<double*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
void cblasXgemm(const CBLAS_ORDER layout, const CBLAS_TRANSPOSE a_transpose, const CBLAS_TRANSPOSE b_transpose,
const size_t m, const size_t n, const size_t k,
@@ -1663,10 +1663,10 @@ void cblasXsymm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_ssymm(layout, side, triangle,
static_cast<int>(m), static_cast<int>(n),
alpha,
- &a_buffer[a_offset], a_ld,
- &b_buffer[b_offset], b_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
+ &b_buffer[b_offset], static_cast<int>(b_ld),
beta,
- &c_buffer[c_offset], c_ld);
+ &c_buffer[c_offset], static_cast<int>(c_ld));
}
void cblasXsymm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPLO triangle,
const size_t m, const size_t n,
@@ -1678,10 +1678,10 @@ void cblasXsymm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_dsymm(layout, side, triangle,
static_cast<int>(m), static_cast<int>(n),
alpha,
- &a_buffer[a_offset], a_ld,
- &b_buffer[b_offset], b_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
+ &b_buffer[b_offset], static_cast<int>(b_ld),
beta,
- &c_buffer[c_offset], c_ld);
+ &c_buffer[c_offset], static_cast<int>(c_ld));
}
void cblasXsymm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPLO triangle,
const size_t m, const size_t n,
@@ -1695,10 +1695,10 @@ void cblasXsymm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_csymm(layout, side, triangle,
static_cast<int>(m), static_cast<int>(n),
alpha_array.data(),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<const float*>(&b_buffer[b_offset]), b_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<const float*>(&b_buffer[b_offset]), static_cast<int>(b_ld),
beta_array.data(),
- reinterpret_cast<float*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<float*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
void cblasXsymm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPLO triangle,
const size_t m, const size_t n,
@@ -1712,10 +1712,10 @@ void cblasXsymm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_zsymm(layout, side, triangle,
static_cast<int>(m), static_cast<int>(n),
alpha_array.data(),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<const double*>(&b_buffer[b_offset]), b_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<const double*>(&b_buffer[b_offset]), static_cast<int>(b_ld),
beta_array.data(),
- reinterpret_cast<double*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<double*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
void cblasXsymm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPLO triangle,
const size_t m, const size_t n,
@@ -1750,10 +1750,10 @@ void cblasXhemm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_chemm(layout, side, triangle,
static_cast<int>(m), static_cast<int>(n),
alpha_array.data(),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<const float*>(&b_buffer[b_offset]), b_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<const float*>(&b_buffer[b_offset]), static_cast<int>(b_ld),
beta_array.data(),
- reinterpret_cast<float*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<float*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
void cblasXhemm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPLO triangle,
const size_t m, const size_t n,
@@ -1767,10 +1767,10 @@ void cblasXhemm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_zhemm(layout, side, triangle,
static_cast<int>(m), static_cast<int>(n),
alpha_array.data(),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<const double*>(&b_buffer[b_offset]), b_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<const double*>(&b_buffer[b_offset]), static_cast<int>(b_ld),
beta_array.data(),
- reinterpret_cast<double*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<double*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
// Forwards the Netlib BLAS calls for SSYRK/DSYRK/CSYRK/ZSYRK
@@ -1783,9 +1783,9 @@ void cblasXsyrk(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
cblas_ssyrk(layout, triangle, a_transpose,
static_cast<int>(n), static_cast<int>(k),
alpha,
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
beta,
- &c_buffer[c_offset], c_ld);
+ &c_buffer[c_offset], static_cast<int>(c_ld));
}
void cblasXsyrk(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose,
const size_t n, const size_t k,
@@ -1796,9 +1796,9 @@ void cblasXsyrk(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
cblas_dsyrk(layout, triangle, a_transpose,
static_cast<int>(n), static_cast<int>(k),
alpha,
- &a_buffer[a_offset], a_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
beta,
- &c_buffer[c_offset], c_ld);
+ &c_buffer[c_offset], static_cast<int>(c_ld));
}
void cblasXsyrk(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose,
const size_t n, const size_t k,
@@ -1811,9 +1811,9 @@ void cblasXsyrk(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
cblas_csyrk(layout, triangle, a_transpose,
static_cast<int>(n), static_cast<int>(k),
alpha_array.data(),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
beta_array.data(),
- reinterpret_cast<float*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<float*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
void cblasXsyrk(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose,
const size_t n, const size_t k,
@@ -1826,9 +1826,9 @@ void cblasXsyrk(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
cblas_zsyrk(layout, triangle, a_transpose,
static_cast<int>(n), static_cast<int>(k),
alpha_array.data(),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
beta_array.data(),
- reinterpret_cast<double*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<double*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
void cblasXsyrk(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose,
const size_t n, const size_t k,
@@ -1857,9 +1857,9 @@ void cblasXherk(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
cblas_cherk(layout, triangle, a_transpose,
static_cast<int>(n), static_cast<int>(k),
alpha,
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
beta,
- reinterpret_cast<float*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<float*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
void cblasXherk(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose,
const size_t n, const size_t k,
@@ -1870,9 +1870,9 @@ void cblasXherk(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS
cblas_zherk(layout, triangle, a_transpose,
static_cast<int>(n), static_cast<int>(k),
alpha,
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
beta,
- reinterpret_cast<double*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<double*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
// Forwards the Netlib BLAS calls for SSYR2K/DSYR2K/CSYR2K/ZSYR2K
@@ -1886,10 +1886,10 @@ void cblasXsyr2k(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLA
cblas_ssyr2k(layout, triangle, ab_transpose,
static_cast<int>(n), static_cast<int>(k),
alpha,
- &a_buffer[a_offset], a_ld,
- &b_buffer[b_offset], b_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
+ &b_buffer[b_offset], static_cast<int>(b_ld),
beta,
- &c_buffer[c_offset], c_ld);
+ &c_buffer[c_offset], static_cast<int>(c_ld));
}
void cblasXsyr2k(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE ab_transpose,
const size_t n, const size_t k,
@@ -1901,10 +1901,10 @@ void cblasXsyr2k(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLA
cblas_dsyr2k(layout, triangle, ab_transpose,
static_cast<int>(n), static_cast<int>(k),
alpha,
- &a_buffer[a_offset], a_ld,
- &b_buffer[b_offset], b_ld,
+ &a_buffer[a_offset], static_cast<int>(a_ld),
+ &b_buffer[b_offset], static_cast<int>(b_ld),
beta,
- &c_buffer[c_offset], c_ld);
+ &c_buffer[c_offset], static_cast<int>(c_ld));
}
void cblasXsyr2k(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE ab_transpose,
const size_t n, const size_t k,
@@ -1918,10 +1918,10 @@ void cblasXsyr2k(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLA
cblas_csyr2k(layout, triangle, ab_transpose,
static_cast<int>(n), static_cast<int>(k),
alpha_array.data(),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<const float*>(&b_buffer[b_offset]), b_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<const float*>(&b_buffer[b_offset]), static_cast<int>(b_ld),
beta_array.data(),
- reinterpret_cast<float*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<float*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
void cblasXsyr2k(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE ab_transpose,
const size_t n, const size_t k,
@@ -1935,10 +1935,10 @@ void cblasXsyr2k(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLA
cblas_zsyr2k(layout, triangle, ab_transpose,
static_cast<int>(n), static_cast<int>(k),
alpha_array.data(),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<const double*>(&b_buffer[b_offset]), b_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<const double*>(&b_buffer[b_offset]), static_cast<int>(b_ld),
beta_array.data(),
- reinterpret_cast<double*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<double*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
void cblasXsyr2k(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE ab_transpose,
const size_t n, const size_t k,
@@ -1972,10 +1972,10 @@ void cblasXher2k(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLA
cblas_cher2k(layout, triangle, ab_transpose,
static_cast<int>(n), static_cast<int>(k),
alpha_array.data(),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<const float*>(&b_buffer[b_offset]), b_ld,
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<const float*>(&b_buffer[b_offset]), static_cast<int>(b_ld),
beta,
- reinterpret_cast<float*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<float*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
void cblasXher2k(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE ab_transpose,
const size_t n, const size_t k,
@@ -1988,10 +1988,10 @@ void cblasXher2k(const CBLAS_ORDER layout, const CBLAS_UPLO triangle, const CBLA
cblas_zher2k(layout, triangle, ab_transpose,
static_cast<int>(n), static_cast<int>(k),
alpha_array.data(),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<const double*>(&b_buffer[b_offset]), b_ld,
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<const double*>(&b_buffer[b_offset]), static_cast<int>(b_ld),
beta,
- reinterpret_cast<double*>(&c_buffer[c_offset]), c_ld);
+ reinterpret_cast<double*>(&c_buffer[c_offset]), static_cast<int>(c_ld));
}
// Forwards the Netlib BLAS calls for STRMM/DTRMM/CTRMM/ZTRMM
@@ -2003,8 +2003,8 @@ void cblasXtrmm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_strmm(layout, side, triangle, a_transpose, diagonal,
static_cast<int>(m), static_cast<int>(n),
alpha,
- &a_buffer[a_offset], a_ld,
- &b_buffer[b_offset], b_ld);
+ &a_buffer[a_offset], static_cast<int>(a_ld),
+ &b_buffer[b_offset], static_cast<int>(b_ld));
}
void cblasXtrmm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
const size_t m, const size_t n,
@@ -2014,8 +2014,8 @@ void cblasXtrmm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_dtrmm(layout, side, triangle, a_transpose, diagonal,
static_cast<int>(m), static_cast<int>(n),
alpha,
- &a_buffer[a_offset], a_ld,
- &b_buffer[b_offset], b_ld);
+ &a_buffer[a_offset], static_cast<int>(a_ld),
+ &b_buffer[b_offset], static_cast<int>(b_ld));
}
void cblasXtrmm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
const size_t m, const size_t n,
@@ -2026,8 +2026,8 @@ void cblasXtrmm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_ctrmm(layout, side, triangle, a_transpose, diagonal,
static_cast<int>(m), static_cast<int>(n),
alpha_array.data(),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<float*>(&b_buffer[b_offset]), b_ld);
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<float*>(&b_buffer[b_offset]), static_cast<int>(b_ld));
}
void cblasXtrmm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
const size_t m, const size_t n,
@@ -2038,8 +2038,8 @@ void cblasXtrmm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_ztrmm(layout, side, triangle, a_transpose, diagonal,
static_cast<int>(m), static_cast<int>(n),
alpha_array.data(),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<double*>(&b_buffer[b_offset]), b_ld);
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<double*>(&b_buffer[b_offset]), static_cast<int>(b_ld));
}
void cblasXtrmm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
const size_t m, const size_t n,
@@ -2065,8 +2065,8 @@ void cblasXtrsm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_strsm(layout, side, triangle, a_transpose, diagonal,
static_cast<int>(m), static_cast<int>(n),
alpha,
- &a_buffer[a_offset], a_ld,
- &b_buffer[b_offset], b_ld);
+ &a_buffer[a_offset], static_cast<int>(a_ld),
+ &b_buffer[b_offset], static_cast<int>(b_ld));
}
void cblasXtrsm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
const size_t m, const size_t n,
@@ -2076,8 +2076,8 @@ void cblasXtrsm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_dtrsm(layout, side, triangle, a_transpose, diagonal,
static_cast<int>(m), static_cast<int>(n),
alpha,
- &a_buffer[a_offset], a_ld,
- &b_buffer[b_offset], b_ld);
+ &a_buffer[a_offset], static_cast<int>(a_ld),
+ &b_buffer[b_offset], static_cast<int>(b_ld));
}
void cblasXtrsm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
const size_t m, const size_t n,
@@ -2088,8 +2088,8 @@ void cblasXtrsm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_ctrsm(layout, side, triangle, a_transpose, diagonal,
static_cast<int>(m), static_cast<int>(n),
alpha_array.data(),
- reinterpret_cast<const float*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<float*>(&b_buffer[b_offset]), b_ld);
+ reinterpret_cast<const float*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<float*>(&b_buffer[b_offset]), static_cast<int>(b_ld));
}
void cblasXtrsm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPLO triangle, const CBLAS_TRANSPOSE a_transpose, const CBLAS_DIAG diagonal,
const size_t m, const size_t n,
@@ -2100,8 +2100,8 @@ void cblasXtrsm(const CBLAS_ORDER layout, const CBLAS_SIDE side, const CBLAS_UPL
cblas_ztrsm(layout, side, triangle, a_transpose, diagonal,
static_cast<int>(m), static_cast<int>(n),
alpha_array.data(),
- reinterpret_cast<const double*>(&a_buffer[a_offset]), a_ld,
- reinterpret_cast<double*>(&b_buffer[b_offset]), b_ld);
+ reinterpret_cast<const double*>(&a_buffer[a_offset]), static_cast<int>(a_ld),
+ reinterpret_cast<double*>(&b_buffer[b_offset]), static_cast<int>(b_ld));
}
// =================================================================================================