mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
mark parameters maybe_unused
This commit is contained in:
parent
eb3d4e9203
commit
67f7bba512
@ -304,12 +304,12 @@ init(int verbosity_)
|
|||||||
|
|
||||||
template<class Scalar>
|
template<class Scalar>
|
||||||
void HipKernels<Scalar>::
|
void HipKernels<Scalar>::
|
||||||
vmul(const Scalar alpha,
|
vmul([[maybe_unused]] const Scalar alpha,
|
||||||
Scalar* in1,
|
[[maybe_unused]] Scalar* in1,
|
||||||
Scalar* in2,
|
[[maybe_unused]] Scalar* in2,
|
||||||
Scalar* out,
|
[[maybe_unused]] Scalar* out,
|
||||||
int N,
|
[[maybe_unused]] int N,
|
||||||
hipStream_t stream)
|
[[maybe_unused]] hipStream_t stream)
|
||||||
{
|
{
|
||||||
Timer t_vmul;
|
Timer t_vmul;
|
||||||
#ifdef __HIP__
|
#ifdef __HIP__
|
||||||
@ -333,11 +333,11 @@ vmul(const Scalar alpha,
|
|||||||
|
|
||||||
template<class Scalar>
|
template<class Scalar>
|
||||||
void HipKernels<Scalar>::
|
void HipKernels<Scalar>::
|
||||||
full_to_pressure_restriction(const Scalar* fine_y,
|
full_to_pressure_restriction([[maybe_unused]] const Scalar* fine_y,
|
||||||
Scalar* weights,
|
[[maybe_unused]] Scalar* weights,
|
||||||
Scalar* coarse_y,
|
[[maybe_unused]] Scalar* coarse_y,
|
||||||
int Nb,
|
[[maybe_unused]] int Nb,
|
||||||
hipStream_t stream)
|
[[maybe_unused]] hipStream_t stream)
|
||||||
{
|
{
|
||||||
Timer t;
|
Timer t;
|
||||||
#ifdef __HIP__
|
#ifdef __HIP__
|
||||||
@ -361,11 +361,11 @@ full_to_pressure_restriction(const Scalar* fine_y,
|
|||||||
|
|
||||||
template<class Scalar>
|
template<class Scalar>
|
||||||
void HipKernels<Scalar>::
|
void HipKernels<Scalar>::
|
||||||
add_coarse_pressure_correction(Scalar* coarse_x,
|
add_coarse_pressure_correction([[maybe_unused]] Scalar* coarse_x,
|
||||||
Scalar* fine_x,
|
[[maybe_unused]] Scalar* fine_x,
|
||||||
int pressure_idx,
|
[[maybe_unused]] int pressure_idx,
|
||||||
int Nb,
|
[[maybe_unused]] int Nb,
|
||||||
hipStream_t stream)
|
[[maybe_unused]] hipStream_t stream)
|
||||||
{
|
{
|
||||||
Timer t;
|
Timer t;
|
||||||
#ifdef __HIP__
|
#ifdef __HIP__
|
||||||
@ -389,11 +389,11 @@ add_coarse_pressure_correction(Scalar* coarse_x,
|
|||||||
|
|
||||||
template<class Scalar>
|
template<class Scalar>
|
||||||
void HipKernels<Scalar>::
|
void HipKernels<Scalar>::
|
||||||
prolongate_vector(const Scalar* in,
|
prolongate_vector([[maybe_unused]] const Scalar* in,
|
||||||
Scalar* out,
|
[[maybe_unused]] Scalar* out,
|
||||||
const int* cols,
|
[[maybe_unused]] const int* cols,
|
||||||
int N,
|
[[maybe_unused]] int N,
|
||||||
hipStream_t stream)
|
[[maybe_unused]] hipStream_t stream)
|
||||||
{
|
{
|
||||||
Timer t;
|
Timer t;
|
||||||
|
|
||||||
@ -419,15 +419,15 @@ prolongate_vector(const Scalar* in,
|
|||||||
|
|
||||||
template<class Scalar>
|
template<class Scalar>
|
||||||
void HipKernels<Scalar>::
|
void HipKernels<Scalar>::
|
||||||
residual(Scalar* vals,
|
residual([[maybe_unused]] Scalar* vals,
|
||||||
int* cols,
|
[[maybe_unused]] int* cols,
|
||||||
int* rows,
|
[[maybe_unused]] int* rows,
|
||||||
Scalar* x,
|
[[maybe_unused]] Scalar* x,
|
||||||
const Scalar* rhs,
|
[[maybe_unused]] const Scalar* rhs,
|
||||||
Scalar* out,
|
[[maybe_unused]] Scalar* out,
|
||||||
int Nb,
|
[[maybe_unused]] int Nb,
|
||||||
unsigned int block_size,
|
[[maybe_unused]] unsigned int block_size,
|
||||||
hipStream_t stream)
|
[[maybe_unused]] hipStream_t stream)
|
||||||
{
|
{
|
||||||
Timer t_residual;
|
Timer t_residual;
|
||||||
|
|
||||||
@ -458,14 +458,14 @@ residual(Scalar* vals,
|
|||||||
|
|
||||||
template<class Scalar>
|
template<class Scalar>
|
||||||
void HipKernels<Scalar>::
|
void HipKernels<Scalar>::
|
||||||
spmv(Scalar* vals,
|
spmv([[maybe_unused]] Scalar* vals,
|
||||||
int* cols,
|
[[maybe_unused]] int* cols,
|
||||||
int* rows,
|
[[maybe_unused]] int* rows,
|
||||||
Scalar* x,
|
[[maybe_unused]] Scalar* x,
|
||||||
Scalar* y,
|
[[maybe_unused]] Scalar* y,
|
||||||
int Nb,
|
[[maybe_unused]] int Nb,
|
||||||
unsigned int block_size,
|
[[maybe_unused]] unsigned int block_size,
|
||||||
hipStream_t stream)
|
[[maybe_unused]] hipStream_t stream)
|
||||||
{//NOTE: block_size not used since I use this kernel only for block sizes 1, other uses use rocsparse!
|
{//NOTE: block_size not used since I use this kernel only for block sizes 1, other uses use rocsparse!
|
||||||
Timer t_spmv;
|
Timer t_spmv;
|
||||||
#ifdef __HIP__
|
#ifdef __HIP__
|
||||||
|
Loading…
Reference in New Issue
Block a user