Neko 1.99.9
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
math.hip File Reference
#include <hip/hip_runtime.h>
#include <device/device_config.h>
#include <device/hip/check.h>
#include <device/hip/buffer.h>
#include <device/hip/unified.h>
#include "math_kernel.h"
#include <math/bcknd/device/device_mpi_reduce.h>
#include <math/bcknd/device/device_mpi_op.h>

Go to the source code of this file.

Functions

void hip_copy (void *a, void *b, int *n, hipStream_t strm)
 
void hip_masked_copy_0 (void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
 
void hip_masked_copy_aligned (void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
 
void hip_masked_gather_copy (void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
 
void hip_masked_gather_copy_aligned (void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
 
void hip_face_masked_gather_copy (void *a, void *b, void *mask, void *facet, int *n1, int *n2, int *lx, int *ly, int *lz, int *m, hipStream_t strm)
 
void hip_masked_scatter_copy (void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
 
void hip_masked_scatter_copy_aligned (void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
 
void hip_masked_atomic_reduction (void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
 
void hip_cfill_mask (void *a, real *c, int *size, void *mask, int *mask_size, hipStream_t strm)
 
void hip_rzero (void *a, int *n, hipStream_t strm)
 
void hip_cmult (void *a, real *c, int *n, hipStream_t strm)
 
void hip_cmult2 (void *a, void *b, real *c, int *n, hipStream_t strm)
 
void hip_cdiv (void *a, real *c, int *n, hipStream_t strm)
 
void hip_cdiv2 (void *a, void *b, real *c, int *n, hipStream_t strm)
 
void hip_radd (void *a, real *c, int *n, hipStream_t strm)
 
void hip_cadd2 (void *a, void *b, real *c, int *n, hipStream_t strm)
 
void hip_cwrap (void *a, real *min_val, real *max_val, int *n, hipStream_t strm)
 
void hip_sqrt_inplace (void *a, int *n, hipStream_t strm)
 
void hip_power (void *ap, void *a, real *p, int *n, hipStream_t strm)
 
void hip_cfill (void *a, real *c, int *n, hipStream_t strm)
 
void hip_add2 (void *a, void *b, int *n, hipStream_t strm)
 
void hip_add3 (void *a, void *b, void *c, int *n, hipStream_t strm)
 
void hip_add4 (void *a, void *b, void *c, void *d, int *n, hipStream_t strm)
 
void hip_add2s1 (void *a, void *b, real *c1, int *n, hipStream_t strm)
 
void hip_add2s2 (void *a, void *b, real *c1, int *n, hipStream_t strm)
 
void hip_add2s2_many (void *x, void **p, void *alpha, int *j, int *n, hipStream_t strm)
 
void hip_addsqr2s2 (void *a, void *b, real *c1, int *n, hipStream_t strm)
 
void hip_add3s2 (void *a, void *b, void *c, real *c1, real *c2, int *n, hipStream_t strm)
 
void hip_add4s3 (void *a, void *b, void *c, void *d, real *c1, real *c2, real *c3, int *n, hipStream_t strm)
 
void hip_add5s4 (void *a, void *b, void *c, void *d, void *e, real *c1, real *c2, real *c3, real *c4, int *n, hipStream_t strm)
 
void hip_invcol1 (void *a, int *n, hipStream_t strm)
 
void hip_invcol2 (void *a, void *b, int *n, hipStream_t strm)
 
void hip_invcol3 (void *a, void *b, void *c, int *n, hipStream_t strm)
 
void hip_col2 (void *a, void *b, int *n, hipStream_t strm)
 
void hip_col3 (void *a, void *b, void *c, int *n, hipStream_t strm)
 
void hip_subcol3 (void *a, void *b, void *c, int *n, hipStream_t strm)
 
void hip_sub2 (void *a, void *b, int *n, hipStream_t strm)
 
void hip_sub3 (void *a, void *b, void *c, int *n, hipStream_t strm)
 
void hip_addcol3 (void *a, void *b, void *c, int *n, hipStream_t strm)
 
void hip_addcol4 (void *a, void *b, void *c, void *d, int *n, hipStream_t strm)
 
void hip_addcol3s2 (void *a, void *b, void *c, real *s, int *n, hipStream_t strm)
 
void hip_vdot3 (void *dot, void *u1, void *u2, void *u3, void *v1, void *v2, void *v3, int *n, hipStream_t strm)
 
void hip_vcross (void *u1, void *u2, void *u3, void *v1, void *v2, void *v3, void *w1, void *w2, void *w3, int *n, hipStream_t strm)
 
void hip_redbuf_check_alloc (int nb)
 
void hip_redbuf_check_alloc_xp (int nb)
 
void hip_global_reduce_add (real *bufred, void *bufred_d, int n, const hipStream_t stream)
 
void hip_global_reduce_add_xp (real_xp *bufred, void *bufred_d, int n, const hipStream_t stream)
 
void hip_global_reduce_max (real *bufred, void *bufred_d, int n, const hipStream_t stream)
 
void hip_global_reduce_min (real *bufred, void *bufred_d, int n, const hipStream_t stream)
 
real hip_vlsc3 (void *u, void *v, void *w, int *n, hipStream_t stream)
 
real_xp hip_glsc3 (void *a, void *b, void *c, int *n, hipStream_t stream)
 
void hip_glsc3_many (real_xp *h, void *w, void *v, void *mult, int *j, int *n, hipStream_t stream)
 
real_xp hip_glsc2 (void *a, void *b, int *n, hipStream_t stream)
 
real_xp hip_glsubnorm2 (void *a, void *b, int *n, hipStream_t stream)
 
real_xp hip_glsum (void *a, int *n, hipStream_t stream)
 
real hip_glmax (void *a, real *ninf, int *n, hipStream_t stream)
 
real hip_glmin (void *a, real *pinf, int *n, hipStream_t stream)
 
real hip_glamax (void *a, int *n, hipStream_t stream)
 
void hip_absval (void *a, int *n, hipStream_t stream)
 
void hip_pwmax_vec2 (void *a, void *b, int *n, hipStream_t stream)
 
void hip_pwmax_vec3 (void *a, void *b, void *c, int *n, hipStream_t stream)
 
void hip_pwmax_sca2 (void *a, real *c, int *n, hipStream_t stream)
 
void hip_pwmax_sca3 (void *a, void *b, real *c, int *n, hipStream_t stream)
 
void hip_pwmin_vec2 (void *a, void *b, int *n, hipStream_t stream)
 
void hip_pwmin_vec3 (void *a, void *b, void *c, int *n, hipStream_t stream)
 
void hip_pwmin_sca2 (void *a, real *c, int *n, hipStream_t stream)
 
void hip_pwmin_sca3 (void *a, void *b, real *c, int *n, hipStream_t stream)
 
void hip_iadd (void *a, int *c, int *n, hipStream_t stream)
 

Variables

hip_buffer_t redbuf = HIP_BUFFER_INIT
 
hip_buffer_t redbuf_xp = HIP_BUFFER_INIT
 

Function Documentation

◆ hip_absval()

void hip_absval ( void *  a,
int *  n,
hipStream_t  stream 
)

Fortran wrapper for absval \( a = abs(a) \)

Definition at line 1142 of file math.hip.

Here is the call graph for this function:

◆ hip_add2()

void hip_add2 ( void *  a,
void *  b,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for add2 Vector addition \( a = a + b \)

Definition at line 394 of file math.hip.

Here is the call graph for this function:

◆ hip_add2s1()

void hip_add2s1 ( void *  a,
void *  b,
real *  c1,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for add2s1 Vector addition with scalar multiplication \( a = c_1 a + b \) (multiplication on first argument)

Definition at line 440 of file math.hip.

Here is the call graph for this function:

◆ hip_add2s2()

void hip_add2s2 ( void *  a,
void *  b,
real *  c1,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for add2s2 Vector addition with scalar multiplication \( a = a + c_1 b \) (multiplication on second argument)

Definition at line 456 of file math.hip.

Here is the call graph for this function:

◆ hip_add2s2_many()

void hip_add2s2_many ( void *  x,
void **  p,
void *  alpha,
int *  j,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for add2s2 Vector addition with scalar multiplication \( x = x + c_1 p1 + c_2p2 + ... + c_jpj \) (multiplication on second argument)

Definition at line 473 of file math.hip.

Here is the call graph for this function:

◆ hip_add3()

void hip_add3 ( void *  a,
void *  b,
void *  c,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for add4 Vector addition \( a = b + c + d\)

Definition at line 409 of file math.hip.

Here is the call graph for this function:

◆ hip_add3s2()

void hip_add3s2 ( void *  a,
void *  b,
void *  c,
real *  c1,
real *  c2,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for add3s2 Vector addition with scalar multiplication \( a = c_1 b + c_2 c \) (multiplication on second argument)

Definition at line 507 of file math.hip.

Here is the call graph for this function:

◆ hip_add4()

void hip_add4 ( void *  a,
void *  b,
void *  c,
void *  d,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for add4 Vector addition \( a = b + c + d\)

Definition at line 424 of file math.hip.

Here is the call graph for this function:

◆ hip_add4s3()

void hip_add4s3 ( void *  a,
void *  b,
void *  c,
void *  d,
real *  c1,
real *  c2,
real *  c3,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for add4s3 Vector addition with scalar multiplication \( a = c_1 b + c_2 c + c_3 d \) (multiplication on second argument)

Definition at line 524 of file math.hip.

Here is the call graph for this function:

◆ hip_add5s4()

void hip_add5s4 ( void *  a,
void *  b,
void *  c,
void *  d,
void *  e,
real *  c1,
real *  c2,
real *  c3,
real *  c4,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for add5s4 Vector addition with scalar multiplication \( a = a + c_1 b + c_2 c + c_3 d + c_4 e \) (multiplication on second argument)

Definition at line 541 of file math.hip.

Here is the call graph for this function:

◆ hip_addcol3()

void hip_addcol3 ( void *  a,
void *  b,
void *  c,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for addcol3 \( a = a + b * c \)

Definition at line 676 of file math.hip.

Here is the call graph for this function:

◆ hip_addcol3s2()

void hip_addcol3s2 ( void *  a,
void *  b,
void *  c,
real *  s,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for addcol3s2 \( a = a + s(b * c) \)

Definition at line 707 of file math.hip.

Here is the call graph for this function:

◆ hip_addcol4()

void hip_addcol4 ( void *  a,
void *  b,
void *  c,
void *  d,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for addcol4 \( a = a + b * c * d \)

Definition at line 691 of file math.hip.

Here is the call graph for this function:

◆ hip_addsqr2s2()

void hip_addsqr2s2 ( void *  a,
void *  b,
real *  c1,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for addsqr2s2 Vector addition with scalar multiplication \( a = a + c_1 (b * b) \) (multiplication on second argument)

Definition at line 491 of file math.hip.

Here is the call graph for this function:

◆ hip_cadd2()

void hip_cadd2 ( void *  a,
void *  b,
real *  c,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for cadd2 Add a scalar to a vector \( a = b + s \)

Definition at line 321 of file math.hip.

Here is the call graph for this function:

◆ hip_cdiv()

void hip_cdiv ( void *  a,
real *  c,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for cdiv Division of constant c by array \( a = c / a \)

Definition at line 279 of file math.hip.

Here is the call graph for this function:

◆ hip_cdiv2()

void hip_cdiv2 ( void *  a,
void *  b,
real *  c,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for cdiv Division of constant c by \( a = c / b \)

Definition at line 293 of file math.hip.

Here is the call graph for this function:

◆ hip_cfill()

void hip_cfill ( void *  a,
real *  c,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for cfill Multiplication by constant c \( a = c \cdot a \)

Definition at line 377 of file math.hip.

Here is the call graph for this function:

◆ hip_cfill_mask()

void hip_cfill_mask ( void *  a,
real *  c,
int *  size,
void *  mask,
int *  mask_size,
hipStream_t  strm 
)

Fortran wrapper for cfill_mask Fill a scalar to vector \( a_i = s, for i \in mask \)

Definition at line 215 of file math.hip.

Here is the call graph for this function:

◆ hip_cmult()

void hip_cmult ( void *  a,
real *  c,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for cmult Multiplication by constant c \( a = c \cdot a \)

Definition at line 251 of file math.hip.

Here is the call graph for this function:

◆ hip_cmult2()

void hip_cmult2 ( void *  a,
void *  b,
real *  c,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for cmult Multiplication by constant c \( a = c \cdot b \)

Definition at line 265 of file math.hip.

Here is the call graph for this function:

◆ hip_col2()

void hip_col2 ( void *  a,
void *  b,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for col2 Vector multiplication with 2 vectors \( a = a \cdot b \)

Definition at line 601 of file math.hip.

Here is the call graph for this function:

◆ hip_col3()

void hip_col3 ( void *  a,
void *  b,
void *  c,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for col3 Vector multiplication with 3 vectors \( a = b \cdot c \)

Definition at line 616 of file math.hip.

Here is the call graph for this function:

◆ hip_copy()

void hip_copy ( void *  a,
void *  b,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for copy Copy a vector \( a = b \)

Definition at line 55 of file math.hip.

Here is the call graph for this function:

◆ hip_cwrap()

void hip_cwrap ( void *  a,
real *  min_val,
real *  max_val,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for cwrap Wrap values in a vector to interval [min_val, max_val)

Definition at line 335 of file math.hip.

Here is the call graph for this function:

◆ hip_face_masked_gather_copy()

void hip_face_masked_gather_copy ( void *  a,
void *  b,
void *  mask,
void *  facet,
int *  n1,
int *  n2,
int *  lx,
int *  ly,
int *  lz,
int *  m,
hipStream_t  strm 
)

Fortran wrapper for face-masked gather copy Copy a face-local field \( a(i) = b(face(mask(i), facet(i))) \)

Definition at line 144 of file math.hip.

Here is the call graph for this function:

◆ hip_glamax()

real hip_glamax ( void *  a,
int *  n,
hipStream_t  stream 
)

Fortran wrapper glamax Take the maximum absolute value of a vector of length n

Definition at line 1111 of file math.hip.

Here is the call graph for this function:

◆ hip_glmax()

real hip_glmax ( void *  a,
real *  ninf,
int *  n,
hipStream_t  stream 
)

Fortran wrapper glmax Take the maxmum of a vector of length n

Definition at line 1051 of file math.hip.

Here is the call graph for this function:

◆ hip_glmin()

real hip_glmin ( void *  a,
real *  pinf,
int *  n,
hipStream_t  stream 
)

Fortran wrapper glmin Take the minimum of a vector of length n

Definition at line 1081 of file math.hip.

Here is the call graph for this function:

◆ hip_global_reduce_add()

void hip_global_reduce_add ( real *  bufred,
void *  bufred_d,
int  n,
const hipStream_t  stream 
)

Global additive reduction

Definition at line 776 of file math.hip.

Here is the call graph for this function:

◆ hip_global_reduce_add_xp()

void hip_global_reduce_add_xp ( real_xp *  bufred,
void *  bufred_d,
int  n,
const hipStream_t  stream 
)

Global additive reduction

Definition at line 797 of file math.hip.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hip_global_reduce_max()

void hip_global_reduce_max ( real *  bufred,
void *  bufred_d,
int  n,
const hipStream_t  stream 
)

Global maximise reduction

Definition at line 819 of file math.hip.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hip_global_reduce_min()

void hip_global_reduce_min ( real *  bufred,
void *  bufred_d,
int  n,
const hipStream_t  stream 
)

Global minimise reduction

Definition at line 840 of file math.hip.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hip_glsc2()

real_xp hip_glsc2 ( void *  a,
void *  b,
int *  n,
hipStream_t  stream 
)

Fortran wrapper glsc2 Weighted inner product \( a^T b \)

Definition at line 959 of file math.hip.

Here is the call graph for this function:

◆ hip_glsc3()

real_xp hip_glsc3 ( void *  a,
void *  b,
void *  c,
int *  n,
hipStream_t  stream 
)

Fortran wrapper glsc3 Weighted inner product \( a^T b c \)

Definition at line 891 of file math.hip.

Here is the call graph for this function:

◆ hip_glsc3_many()

void hip_glsc3_many ( real_xp *  h,
void *  w,
void *  v,
void *  mult,
int *  j,
int *  n,
hipStream_t  stream 
)

Fortran wrapper for doing an reduction to an array Weighted inner product \( w^T v(n,1:j) c \)

Definition at line 922 of file math.hip.

Here is the call graph for this function:

◆ hip_glsubnorm2()

real_xp hip_glsubnorm2 ( void *  a,
void *  b,
int *  n,
hipStream_t  stream 
)

Fortran wrapper glsubnorm2 Weighted inner product \( a^T b \)

Definition at line 990 of file math.hip.

Here is the call graph for this function:

◆ hip_glsum()

real_xp hip_glsum ( void *  a,
int *  n,
hipStream_t  stream 
)

Fortran wrapper glsum Sum a vector of length n

Definition at line 1021 of file math.hip.

Here is the call graph for this function:

◆ hip_iadd()

void hip_iadd ( void *  a,
int *  c,
int *  n,
hipStream_t  stream 
)

Fortran wrapper for cadd Add a scalar to vector \( a = \sum a_i + s \)

Definition at line 1279 of file math.hip.

Here is the call graph for this function:

◆ hip_invcol1()

void hip_invcol1 ( void *  a,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for invcol1 Invert a vector \( a = 1 / a \)

Definition at line 558 of file math.hip.

Here is the call graph for this function:

◆ hip_invcol2()

void hip_invcol2 ( void *  a,
void *  b,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for invcol2 Vector division \( a = a / b \)

Definition at line 572 of file math.hip.

Here is the call graph for this function:

◆ hip_invcol3()

void hip_invcol3 ( void *  a,
void *  b,
void *  c,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for invcol3 Vector division \( a = b / c \)

Definition at line 586 of file math.hip.

Here is the call graph for this function:

◆ hip_masked_atomic_reduction()

void hip_masked_atomic_reduction ( void *  a,
void *  b,
void *  mask,
int *  n,
int *  m,
hipStream_t  strm 
)

Fortran wrapper for masked atomic reduction update a vector \( a += b(mask) \) where mask is not unique

Definition at line 198 of file math.hip.

Here is the call graph for this function:

◆ hip_masked_copy_0()

void hip_masked_copy_0 ( void *  a,
void *  b,
void *  mask,
int *  n,
int *  m,
hipStream_t  strm 
)

Fortran wrapper for masked copy Copy a vector \( a(mask) = b(mask) \)

Definition at line 78 of file math.hip.

Here is the call graph for this function:

◆ hip_masked_copy_aligned()

void hip_masked_copy_aligned ( void *  a,
void *  b,
void *  mask,
int *  n,
int *  m,
hipStream_t  strm 
)

Fortran wrapper for masked copy Copy a vector \( a(mask) = b(mask) \)

Definition at line 95 of file math.hip.

Here is the call graph for this function:

◆ hip_masked_gather_copy()

void hip_masked_gather_copy ( void *  a,
void *  b,
void *  mask,
int *  n,
int *  m,
hipStream_t  strm 
)

Fortran wrapper for masked gather copy Copy a vector \( a = b(mask) \)

Definition at line 112 of file math.hip.

Here is the call graph for this function:

◆ hip_masked_gather_copy_aligned()

void hip_masked_gather_copy_aligned ( void *  a,
void *  b,
void *  mask,
int *  n,
int *  m,
hipStream_t  strm 
)

Fortran wrapper for masked gather copy with mask_t Copy a vector \( a = b(mask) \)

Definition at line 128 of file math.hip.

Here is the call graph for this function:

◆ hip_masked_scatter_copy()

void hip_masked_scatter_copy ( void *  a,
void *  b,
void *  mask,
int *  n,
int *  m,
hipStream_t  strm 
)

Fortran wrapper for masked scatter copy Copy a vector \( a(mask) = b \)

Definition at line 164 of file math.hip.

Here is the call graph for this function:

◆ hip_masked_scatter_copy_aligned()

void hip_masked_scatter_copy_aligned ( void *  a,
void *  b,
void *  mask,
int *  n,
int *  m,
hipStream_t  strm 
)

Fortran wrapper for masked scatter copy for aligned mask Copy a vector \( a(mask) = b \)

Definition at line 181 of file math.hip.

Here is the call graph for this function:

◆ hip_power()

void hip_power ( void *  ap,
void *  a,
real *  p,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for power Take the power of a vector \( a^p \)

Definition at line 363 of file math.hip.

Here is the call graph for this function:

◆ hip_pwmax_sca2()

void hip_pwmax_sca2 ( void *  a,
real *  c,
int *  n,
hipStream_t  stream 
)

Fortran wrapper for pwmax_sca2

Compute the maximum of vector and scalar \( a = \max(a, c) \)

Definition at line 1189 of file math.hip.

Here is the call graph for this function:

◆ hip_pwmax_sca3()

void hip_pwmax_sca3 ( void *  a,
void *  b,
real *  c,
int *  n,
hipStream_t  stream 
)

Fortran wrapper for pwmax_sca3

Compute the maximum of vector and scalar \( a = \max(b, c) \)

Definition at line 1203 of file math.hip.

Here is the call graph for this function:

◆ hip_pwmax_vec2()

void hip_pwmax_vec2 ( void *  a,
void *  b,
int *  n,
hipStream_t  stream 
)

Fortran wrapper for pwmax_vec2

Compute the maximum of two vectors \( a = \max(a, b) \)

Definition at line 1160 of file math.hip.

Here is the call graph for this function:

◆ hip_pwmax_vec3()

void hip_pwmax_vec3 ( void *  a,
void *  b,
void *  c,
int *  n,
hipStream_t  stream 
)

Fortran wrapper for pwmax_vec3

Compute the maximum of two vectors \( a = \max(b, c) \)

Definition at line 1174 of file math.hip.

Here is the call graph for this function:

◆ hip_pwmin_sca2()

void hip_pwmin_sca2 ( void *  a,
real *  c,
int *  n,
hipStream_t  stream 
)

Fortran wrapper for pwmin_sca2

Compute the minimum of vector and scalar \( a = \min(a, c) \)

Definition at line 1248 of file math.hip.

Here is the call graph for this function:

◆ hip_pwmin_sca3()

void hip_pwmin_sca3 ( void *  a,
void *  b,
real *  c,
int *  n,
hipStream_t  stream 
)

Fortran wrapper for pwmin_sca3

Compute the minimum of vector and scalar \( a = \min(b, c) \)

Definition at line 1263 of file math.hip.

Here is the call graph for this function:

◆ hip_pwmin_vec2()

void hip_pwmin_vec2 ( void *  a,
void *  b,
int *  n,
hipStream_t  stream 
)

Fortran wrapper for pwmin_vec2

Compute the minimum of two vectors \( a = \min(a, b) \)

Definition at line 1218 of file math.hip.

Here is the call graph for this function:

◆ hip_pwmin_vec3()

void hip_pwmin_vec3 ( void *  a,
void *  b,
void *  c,
int *  n,
hipStream_t  stream 
)

Fortran wrapper for pwmin_vec3

Compute the minimum of two vectors \( a = \min(b, c) \)

Definition at line 1233 of file math.hip.

Here is the call graph for this function:

◆ hip_radd()

void hip_radd ( void *  a,
real *  c,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for cadd Add a scalar to vector \( a = \sum a_i + s \)

Definition at line 307 of file math.hip.

Here is the call graph for this function:

◆ hip_redbuf_check_alloc()

void hip_redbuf_check_alloc ( int  nb)

Definition at line 765 of file math.hip.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hip_redbuf_check_alloc_xp()

void hip_redbuf_check_alloc_xp ( int  nb)

Definition at line 769 of file math.hip.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hip_rzero()

void hip_rzero ( void *  a,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for rzero Zero a real vector

Definition at line 231 of file math.hip.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hip_sqrt_inplace()

void hip_sqrt_inplace ( void *  a,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for sqrt_inplace Sqrt a vector \( a = sqrt(a) \)

Definition at line 350 of file math.hip.

Here is the call graph for this function:

◆ hip_sub2()

void hip_sub2 ( void *  a,
void *  b,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for sub2 Vector subtraction \( a = a - b \)

Definition at line 646 of file math.hip.

Here is the call graph for this function:

◆ hip_sub3()

void hip_sub3 ( void *  a,
void *  b,
void *  c,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for sub3 Vector subtraction \( a = b - c \)

Definition at line 661 of file math.hip.

Here is the call graph for this function:

◆ hip_subcol3()

void hip_subcol3 ( void *  a,
void *  b,
void *  c,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for subcol3 Vector multiplication with 3 vectors \( a = b \cdot c \)

Definition at line 631 of file math.hip.

Here is the call graph for this function:

◆ hip_vcross()

void hip_vcross ( void *  u1,
void *  u2,
void *  u3,
void *  v1,
void *  v2,
void *  v3,
void *  w1,
void *  w2,
void *  w3,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for vdot3 \( u = v \times w \)

Definition at line 741 of file math.hip.

Here is the call graph for this function:

◆ hip_vdot3()

void hip_vdot3 ( void *  dot,
void *  u1,
void *  u2,
void *  u3,
void *  v1,
void *  v2,
void *  v3,
int *  n,
hipStream_t  strm 
)

Fortran wrapper for vdot3 \( dot = u \cdot v \)

Definition at line 723 of file math.hip.

Here is the call graph for this function:

◆ hip_vlsc3()

real hip_vlsc3 ( void *  u,
void *  v,
void *  w,
int *  n,
hipStream_t  stream 
)

Fortran wrapper vlsc3 Compute multiplication sum \( dot = u \cdot v \cdot w \)

Definition at line 862 of file math.hip.

Here is the call graph for this function:

Variable Documentation

◆ redbuf

Definition at line 762 of file math.hip.

◆ redbuf_xp

Definition at line 763 of file math.hip.