Home

rocblaszgemm

rocblas_zgemm is a function in the ROCm library rocBLAS that implements the general matrix-matrix multiply for double-precision complex matrices on AMD GPUs. It is used to perform high-performance linear algebra operations essential in scientific computing, graphics, and machine learning workloads running on ROCm-enabled hardware.

The operation computes C = alpha * op(A) * op(B) + beta * C, where A, B, and C are complex

Key parameters include a rocBLAS handle that represents the library context, enums or indicators for the desired

rocblas_zgemm is one of several complex GEMM routines in ROCm, with related variants for single precision or

matrices
and
op(X)
denotes
no
transpose,
transpose,
or
conjugate-transpose,
as
specified
by
the
operation
parameters.
The
dimensions
m,
n,
and
k
define
the
sizes
of
the
operands
according
to
the
chosen
op
for
A
and
B,
resulting
in
an
m-by-n
matrix
C.
The
scalars
alpha
and
beta
are
complex
constants
that
scale
the
products
and
the
existing
C,
respectively.
transposition
or
conjugation
of
A
and
B,
the
matrix
dimensions
m,
n,
k,
pointers
to
alpha
and
beta,
pointers
to
A,
B,
and
C
along
with
their
leading
dimensions
lda,
ldb,
and
ldc.
The
matrices
A,
B,
and
C
are
expected
to
be
stored
in
device
memory
in
column-major
order,
consistent
with
BLAS
conventions,
though
rocBLAS
provides
flexibility
through
its
API
to
accommodate
different
layouts
in
practice.
mixed
types,
including
batched
and
strided
variants
to
handle
multiple
matrices
efficiently.
The
function
returns
a
status
value
indicating
success
or
an
error
condition,
enabling
robust
integration
into
larger
GPU-accelerated
workflows.