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:
parent
cddb08e848
commit
ee4e5986d1
1 changed files with 5 additions and 6 deletions
11
atax/atax.cu
11
atax/atax.cu
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue