1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2025-02-16 17:13:57 +00:00

Format document

This commit is contained in:
Steffo 2022-11-29 17:10:36 +01:00 committed by GitHub
parent cddb08e848
commit ee4e5986d1
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,20 +99,19 @@ __host__ static void kernel_atax(DATA_TYPE** A, DATA_TYPE* x, DATA_TYPE* y)
*/
__host__ int main(int argc, char **argv)
{
DATA_TYPE **A = new DATA_TYPE*[NX];
DATA_TYPE x[NY], y[NX];
for(size_t i=0; i<NX; i++)
DATA_TYPE** A = new DATA_TYPE*[NX] {};
for(int i = 0; i < NX; i++)
{
A[i] = new DATA_TYPE[NY];
}
DATA_TYPE* x = new DATA_TYPE[NY] {};
DATA_TYPE* y = new DATA_TYPE[NX] {};
#ifdef POLYBENCH_INCLUDE_INIT
polybench_start_instruments;
#endif
init_array(A, x);
#ifndef POLYBENCH_INCLUDE_INIT