Initial commit

This commit is contained in:
Matthias
2017-04-11 15:49:55 +02:00
commit 3d8f381bae
106 changed files with 4407 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
float** BENCH = sin->BENCH.getValue();
int bots_arg_size = sin->bots_arg_size.getValue();
int kk = sin->kk.getValue();
lu0(BENCH[kk*bots_arg_size+kk]);
sout->BENCHout.setValue(BENCH);
+4
View File
@@ -0,0 +1,4 @@
name=lu0
entries=1
entry.0=atomic1.code
+17
View File
@@ -0,0 +1,17 @@
float** BENCH = sin->BENCH.getValue();
int bots_arg_size = sin->bots_arg_size.getValue();
int kk = sin->kk.getValue();
int tmax = sin->tmax.getValue();
int t = sin->tindex.getValue();
int itercount = bots_arg_size - (kk+1);
int iterslice = itercount / (tmax+1);
int start = kk+1 + iterslice*t;
int stop = kk+1 + iterslice*(t+1);
if (t == tmax-1 && stop != bots_arg_size) {
stop = bots_arg_size;
}
for (int jj=start; jj<stop; jj++)
if (BENCH[kk*bots_arg_size+jj] != NULL) {
fwd(BENCH[kk*bots_arg_size+kk], BENCH[kk*bots_arg_size+jj]);
}
sout->BENCHout.setValue(BENCH);
+4
View File
@@ -0,0 +1,4 @@
name=fwd
entries=1
entry.0=atomic2.code
+18
View File
@@ -0,0 +1,18 @@
float** BENCH = sin->BENCH.getEntryValue(0);
int bots_arg_size = sin->bots_arg_size.getValue();
int kk = sin->kk.getValue();
int tmax = sin->tmax.getValue();
int t = sin->tindex.getValue();
int itercount = bots_arg_size - (kk+1);
int iterslice = itercount / (tmax+1);
int start = kk+1 + iterslice*t;
int stop = kk+1 + iterslice*(t+1);
if (t == tmax-1 && stop != bots_arg_size) {
stop = bots_arg_size;
}
for (int ii=start; ii<stop; ii++) {
if (BENCH[ii*bots_arg_size+kk] != NULL) {
bdiv (BENCH[kk*bots_arg_size+kk], BENCH[ii*bots_arg_size+kk]);
}
}
sout->BENCHout.setValue(BENCH);
+4
View File
@@ -0,0 +1,4 @@
name=bdiv
entries=1
entry.0=atomic3.code
+22
View File
@@ -0,0 +1,22 @@
float** BENCH = sin->BENCH.getEntryValue(0);
int bots_arg_size = sin->bots_arg_size.getValue();
int kk = sin->kk.getValue();
int tmax = sin->tmax.getValue();
int t = sin->tindex.getValue();
int itercount = bots_arg_size - (kk+1);
int iterslice = itercount / (tmax+1);
int start = kk+1 + iterslice*t;
int stop = kk+1 + iterslice*(t+1);
if (t == tmax-1 && stop != bots_arg_size) {
stop = bots_arg_size;
}
for (int ii=start; ii<stop; ii++)
if (BENCH[ii*bots_arg_size+kk] != NULL)
for (int jj=kk+1; jj<bots_arg_size; jj++)
if (BENCH[kk*bots_arg_size+jj] != NULL)
//#pragma omp task untied firstprivate(kk, jj, ii) shared(BENCH)
{
if (BENCH[ii*bots_arg_size+jj]==NULL) BENCH[ii*bots_arg_size+jj] = allocate_clean_block();
bmod(BENCH[ii*bots_arg_size+kk], BENCH[kk*bots_arg_size+jj], BENCH[ii*bots_arg_size+jj]);
}
sout->BENCHout.setValue(BENCH);
+4
View File
@@ -0,0 +1,4 @@
name=bmod
entries=1
entry.0=atomic4.code
+1
View File
@@ -0,0 +1 @@
#include "sparselu.h"