silence unused parameter warnings in the gpu lib tree

This commit is contained in:
Axel Kohlmeyer
2024-02-06 20:18:43 -05:00
parent b9ec85427d
commit 031cef558e
7 changed files with 61 additions and 61 deletions

View File

@ -491,17 +491,17 @@ template<int mem1, int mem2> struct _ucl_memcpy;
// Both are images
template<> struct _ucl_memcpy<2,2> {
template <class p1, class p2>
static inline void mc(p1 &dst, const p2 &src, const size_t n,
cl_command_queue &cq, const cl_bool block,
const size_t dst_offset, const size_t src_offset) {
static inline void mc(p1 &/*dst*/, const p2 &/*src*/, const size_t /*n*/,
cl_command_queue &/*cq*/, const cl_bool /*block*/,
const size_t /*dst_offset*/, const size_t /*src_offset*/) {
assert(0==1);
}
template <class p1, class p2>
static inline void mc(p1 &dst, const size_t dpitch, const p2 &src,
const size_t spitch, const size_t cols,
const size_t rows, cl_command_queue &cq,
const cl_bool block,
const size_t dst_offset, const size_t src_offset) {
static inline void mc(p1 &/*dst*/, const size_t /*dpitch*/, const p2 &/*src*/,
const size_t /*spitch*/, const size_t /*cols*/,
const size_t /*rows*/, cl_command_queue &/*cq*/,
const cl_bool /*block*/,
const size_t /*dst_offset*/, const size_t /*src_offset*/) {
assert(0==1);
}
};
@ -509,17 +509,17 @@ template<> struct _ucl_memcpy<2,2> {
// Destination is texture, source on device
template<> struct _ucl_memcpy<2,0> {
template <class p1, class p2>
static inline void mc(p1 &dst, const p2 &src, const size_t n,
cl_command_queue &cq, const cl_bool block,
const size_t dst_offset, const size_t src_offset) {
static inline void mc(p1 &/*dst*/, const p2 &/*src*/, const size_t /*n*/,
cl_command_queue &/*cq*/, const cl_bool /*block*/,
const size_t /*dst_offset*/, const size_t /*src_offset*/) {
assert(0==1);
}
template <class p1, class p2>
static inline void mc(p1 &dst, const size_t dpitch, const p2 &src,
const size_t spitch, const size_t cols,
const size_t rows, cl_command_queue &cq,
const cl_bool block,
const size_t dst_offset, const size_t src_offset) {
static inline void mc(p1 &/*dst*/, const size_t /*dpitch*/, const p2 &/*src*/,
const size_t /*spitch*/, const size_t /*cols*/,
const size_t /*rows*/, cl_command_queue &/*cq*/,
const cl_bool /*block*/,
const size_t /*dst_offset*/, const size_t /*src_offset*/) {
assert(0==1);
}
};
@ -527,17 +527,17 @@ template<> struct _ucl_memcpy<2,0> {
// Destination is texture, source on host
template<> struct _ucl_memcpy<2,1> {
template <class p1, class p2>
static inline void mc(p1 &dst, const p2 &src, const size_t n,
cl_command_queue &cq, const cl_bool block,
const size_t dst_offset, const size_t src_offset) {
static inline void mc(p1 &/*dst*/, const p2 &/*src*/, const size_t /*n*/,
cl_command_queue &/*cq*/, const cl_bool /*block*/,
const size_t /*dst_offset*/, const size_t /*src_offset*/) {
assert(0==1);
}
template <class p1, class p2>
static inline void mc(p1 &dst, const size_t dpitch, const p2 &src,
const size_t spitch, const size_t cols,
const size_t rows, cl_command_queue &cq,
const cl_bool block,
const size_t dst_offset, const size_t src_offset) {
static inline void mc(p1 &/*dst*/, const size_t /*dpitch*/, const p2 &/*src*/,
const size_t /*spitch*/, const size_t /*cols*/,
const size_t /*rows*/, cl_command_queue &/*cq*/,
const cl_bool /*block*/,
const size_t /*dst_offset*/, const size_t /*src_offset*/) {
assert(0==1);
}
};
@ -545,17 +545,17 @@ template<> struct _ucl_memcpy<2,1> {
// Source is texture, dest on device
template<> struct _ucl_memcpy<0,2> {
template <class p1, class p2>
static inline void mc(p1 &dst, const p2 &src, const size_t n,
cl_command_queue &cq, const cl_bool block,
const size_t dst_offset, const size_t src_offset) {
static inline void mc(p1 &/*dst*/, const p2 &/*src*/, const size_t /*n*/,
cl_command_queue &/*cq*/, const cl_bool /*block*/,
const size_t /*dst_offset*/, const size_t /*src_offset*/) {
assert(0==1);
}
template <class p1, class p2>
static inline void mc(p1 &dst, const size_t dpitch, const p2 &src,
const size_t spitch, const size_t cols,
const size_t rows, cl_command_queue &cq,
const cl_bool block,
const size_t dst_offset, const size_t src_offset) {
static inline void mc(p1 &/*dst*/, const size_t /*dpitch*/, const p2 &/*src*/,
const size_t /*spitch*/, const size_t /*cols*/,
const size_t /*rows*/, cl_command_queue &/*cq*/,
const cl_bool /*block*/,
const size_t /*dst_offset*/, const size_t /*src_offset*/) {
assert(0==1);
}
};
@ -563,17 +563,17 @@ template<> struct _ucl_memcpy<0,2> {
// Source is texture, dest on host
template<> struct _ucl_memcpy<1,2> {
template <class p1, class p2>
static inline void mc(p1 &dst, const p2 &src, const size_t n,
cl_command_queue &cq, const cl_bool block,
const size_t dst_offset, const size_t src_offset) {
static inline void mc(p1 &/*dst*/, const p2 &/*src*/, const size_t /*n*/,
cl_command_queue &/*cq*/, const cl_bool /*block*/,
const size_t /*dst_offset*/, const size_t /*src_offset*/) {
assert(0==1);
}
template <class p1, class p2>
static inline void mc(p1 &dst, const size_t dpitch, const p2 &src,
const size_t spitch, const size_t cols,
const size_t rows, cl_command_queue &cq,
const cl_bool block,
const size_t dst_offset, const size_t src_offset) {
static inline void mc(p1 &/*dst*/, const size_t /*dpitch*/, const p2 &/*src*/,
const size_t /*spitch*/, const size_t /*cols*/,
const size_t /*rows*/, cl_command_queue &/*cq*/,
const cl_bool /*block*/,
const size_t /*dst_offset*/, const size_t /*src_offset*/) {
assert(0==1);
}
};

View File

@ -507,7 +507,7 @@ template <> struct _ucl_cast_copy<0,0> {
}
template <class mat1, class mat2, class mat3>
static inline void cc(mat1 & /*dst*/, const mat2 & /*src*/, const size_t /*rows*/,
const size_t cols, mat3 & /*cast_buffer*/, command_queue & /*cq*/) {
const size_t /*cols*/, mat3 & /*cast_buffer*/, command_queue & /*cq*/) {
assert(0==1);
}
};

View File

@ -156,7 +156,7 @@ class UCL_D_Vec : public UCL_BaseMat {
* \param stride Number of _elements_ between the start of each row **/
template <class ucl_type>
inline void view(ucl_type &input, const size_t rows, const size_t cols,
const size_t stride) { view(input,rows,cols); }
const size_t /*stride*/) { view(input,rows,cols); }
/// Do not allocate memory, instead use an existing allocation from Geryon
/** This function must be passed a Geryon vector or matrix container.
@ -185,7 +185,7 @@ class UCL_D_Vec : public UCL_BaseMat {
* - The view does not prevent the memory from being freed by the
* allocating container when using CUDA APIs **/
template <class ptr_type>
inline void view(ptr_type input, const size_t rows, const size_t cols,
inline void view(ptr_type input, const size_t /*rows*/, const size_t cols,
UCL_Device &dev) {
#ifdef UCL_DEBUG
assert(rows==1);
@ -213,7 +213,7 @@ class UCL_D_Vec : public UCL_BaseMat {
* \param stride Number of _elements_ between the start of each row **/
template <class ptr_type>
inline void view(ptr_type input, const size_t rows, const size_t cols,
const size_t stride, UCL_Device &dev)
const size_t stride, UCL_Device &/*dev*/)
{ view(input,rows,cols,stride); }
/// Do not allocate memory, instead use an existing allocation
@ -262,7 +262,7 @@ class UCL_D_Vec : public UCL_BaseMat {
* \param stride Number of _elements_ between the start of each row **/
template <class ucl_type>
inline void view_offset(const size_t offset,ucl_type &input,const size_t rows,
const size_t cols, const size_t stride)
const size_t cols, const size_t /*stride*/)
{ view_offset(offset,input,rows,cols); }
/// Do not allocate memory, instead use an existing allocation from Geryon
@ -292,7 +292,7 @@ class UCL_D_Vec : public UCL_BaseMat {
* - The view does not prevent the memory from being freed by the
* allocating container when using CUDA APIs **/
template <class ptr_type>
inline void view_offset(const size_t offset,ptr_type input,const size_t rows,
inline void view_offset(const size_t offset,ptr_type input,const size_t /*rows*/,
const size_t cols, UCL_Device &dev) {
#ifdef UCL_DEBUG
assert(rows==1);
@ -328,7 +328,7 @@ class UCL_D_Vec : public UCL_BaseMat {
* \param stride Number of _elements_ between the start of each row **/
template <class ptr_type>
inline void view_offset(const size_t offset,ptr_type input,const size_t rows,
const size_t cols,const size_t stride,UCL_Device &dev)
const size_t cols,const size_t stride,UCL_Device &/*dev*/)
{ view_offset(offset,input,rows,cols,stride); }
/// Do not allocate memory, instead use an existing allocation

View File

@ -156,7 +156,7 @@ class UCL_H_Vec : public UCL_BaseMat {
* \param stride Number of _elements_ between the start of each row **/
template <class ucl_type>
inline void view(ucl_type &input, const size_t rows, const size_t cols,
const size_t stride) { view(input,rows,cols); }
const size_t /*stride*/) { view(input,rows,cols); }
/// Do not allocate memory, instead use an existing allocation from Geryon
/** This function must be passed a Geryon vector or matrix container.
@ -214,7 +214,7 @@ class UCL_H_Vec : public UCL_BaseMat {
* \param stride Number of _elements_ between the start of each row **/
template <class ptr_type>
inline void view(ptr_type *input, const size_t rows, const size_t cols,
const size_t stride, UCL_Device &dev)
const size_t stride, UCL_Device &/*dev*/)
{ view(input,rows,cols,stride); }
/// Do not allocate memory, instead use an existing allocation
@ -259,7 +259,7 @@ class UCL_H_Vec : public UCL_BaseMat {
* \param stride Number of _elements_ between the start of each row **/
template <class ucl_type>
inline void view_offset(const size_t offset,ucl_type &input,const size_t rows,
const size_t cols, const size_t stride)
const size_t cols, const size_t /*stride*/)
{ view_offset(offset,input,rows,cols); }
/// Do not allocate memory, instead use an existing allocation from Geryon
@ -382,10 +382,10 @@ class UCL_H_Vec : public UCL_BaseMat {
/// Get element at index i
inline const numtyp & operator[](const int i) const { return _array[i]; }
/// 2D access (row should always be 0)
inline numtyp & operator()(const int row, const int col)
inline numtyp & operator()(const int /*row*/, const int col)
{ return _array[col]; }
/// 2D access (row should always be 0)
inline const numtyp & operator()(const int row, const int col) const
inline const numtyp & operator()(const int /*row*/, const int col) const
{ return _array[col]; }
/// Returns pointer to memory pointer for allocation on host

View File

@ -35,7 +35,7 @@ template <> struct _ucl_print<1> {
}
template <class mat_type>
static inline void p(const mat_type &mat, const size_t n, std::ostream &out,
const std::string delim, UCL_Device &dev) {
const std::string delim, UCL_Device &/*dev*/) {
p(mat,n,out,delim);
}
template <class mat_type>
@ -59,7 +59,7 @@ template <> struct _ucl_print<1> {
template <class mat_type>
static inline void p(const mat_type &mat,const size_t rows,const size_t cols,
std::ostream &out,const std::string delim,
const std::string row_delim, UCL_Device &dev) {
const std::string row_delim, UCL_Device &/*dev*/) {
p(mat,rows,cols,out,delim,row_delim);
}
};

View File

@ -53,7 +53,7 @@ template <> struct _ucl_s_obj_help<1> {
}
template <class t1, class t2, class t3, class mat_type>
static inline int alloc(t1 &host, t2 &device, t3 &_buffer,
static inline int alloc(t1 &host, t2 &device, t3 &/*_buffer*/,
const int cols, mat_type &cq,
const enum UCL_MEMOPT kind1,
const enum UCL_MEMOPT kind2) {
@ -79,7 +79,7 @@ template <> struct _ucl_s_obj_help<1> {
}
template <class t1, class t2, class t3>
static inline int alloc(t1 &host, t2 &device, t3 &_buffer,
static inline int alloc(t1 &host, t2 &device, t3 &/*_buffer*/,
const int rows, const int cols, UCL_Device &acc,
const enum UCL_MEMOPT kind1,
const enum UCL_MEMOPT kind2) {
@ -105,7 +105,7 @@ template <> struct _ucl_s_obj_help<1> {
}
template <class t1, class t2, class t3, class mat_type>
static inline int alloc(t1 &host, t2 &device, t3 &_buffer,
static inline int alloc(t1 &host, t2 &device, t3 &/*_buffer*/,
const int rows, const int cols, mat_type &cq,
const enum UCL_MEMOPT kind1,
const enum UCL_MEMOPT kind2) {
@ -177,7 +177,7 @@ template <> struct _ucl_s_obj_help<1> {
}
template <class t1, class t2, class t3>
static inline int dev_resize(t1 &device, t2 &host, t3 &buff, const int rows,
static inline int dev_resize(t1 &device, t2 &host, t3 &/*buff*/, const int rows,
const int cols) {
if (device.kind()==UCL_VIEW) {
device.view(host);
@ -369,7 +369,7 @@ template <int st> struct _ucl_s_obj_help {
}
template <class t1, class t2, class t3>
static inline int dev_resize(t1 &device, t2 &host, t3 &buff, const int rows,
static inline int dev_resize(t1 &device, t2 &/*host*/, t3 &buff, const int rows,
const int cols) {
int err=buff.resize(rows,cols);
if (err!=UCL_SUCCESS)

View File

@ -147,10 +147,10 @@ class UCL_Vector {
/// Get element at index i
inline const hosttype & operator[](const int i) const { return host[i]; }
/// 2D access (row should always be 0)
inline hosttype & operator()(const int row, const int col)
inline hosttype & operator()(const int /*row*/, const int col)
{ return host[col]; }
/// 2D access (row should always be 0)
inline const hosttype & operator()(const int row, const int col) const
inline const hosttype & operator()(const int /*row*/, const int col) const
{ return host[col]; }
/// Returns pointer to memory pointer for allocation on host