#include "common.h"
#include "image.h"
#include <CL/cl.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstddef>
#include <cmath>
#include <cstdlib>
Go to the source code of this file.
|
void | sgemmInitialize (int matrixOrder, float *matrixA, float *matrixB, float *matrixC) |
| Initialize the input matrices with random values.
|
|
int | main (void) |
| Simple SGEMM OpenCL sample.
|
|
Simple SGEMM OpenCL sample.
A sample which calculates the following SGEMM equation: matrixC = alpha * (matrixA * matrixB) + beta * matrixC.
- Returns
- The exit code of the application, non-zero if a problem occurred.
Definition at line 60 of file sgemm.cpp.
void sgemmInitialize |
( |
int |
matrixOrder, |
|
|
float * |
matrixA, |
|
|
float * |
matrixB, |
|
|
float * |
matrixC |
|
) |
| |
Initialize the input matrices with random values.
- Parameters
-
[in] | matrixOrder | The order of the matrices (number of rows and columns). Matrices have to be symmetric. |
[in] | matrixA | First input matrix. |
[in] | matrixB | Second input matrix. |
[in] | matrixC | Third input matrix. |
- Returns
- matrixA, matrixB and matrixC with random values.
Definition at line 32 of file sgemm.cpp.