Skip to content

Commit

Permalink
Problem size
Browse files Browse the repository at this point in the history
  • Loading branch information
Kepins committed Nov 8, 2024
1 parent 50b3578 commit 284b82b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cudampilib/apps/collatz/app-streams-collatz.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OU

struct __cudampi__arguments_type __cudampi__arguments;

long long VECTORSIZE = COLLATZ_VECTORSIZE;
long long VECTORSIZE;

double *vectora;
double *vectorc;
Expand All @@ -48,6 +48,7 @@ int main(int argc, char **argv)

streamcount = __cudampi__arguments.number_of_streams;
batchsize = __cudampi__arguments.batch_size;
VECTORSIZE = __cudampi__arguments.problem_size;

int alldevicescount = 0;

Expand Down
3 changes: 2 additions & 1 deletion cudampilib/apps/patternsearch/app-streams-patternsearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OU

struct __cudampi__arguments_type __cudampi__arguments;

long long VECTORSIZE = PATTERNSEARCH_VECTORSIZE;
long long VECTORSIZE;

char *vectora;
char *vectorc;
Expand All @@ -49,6 +49,7 @@ int main(int argc, char **argv)

streamcount = __cudampi__arguments.number_of_streams;
batchsize = __cudampi__arguments.batch_size;
VECTORSIZE = __cudampi__arguments.problem_size;

int alldevicescount = 0;

Expand Down
3 changes: 2 additions & 1 deletion cudampilib/apps/vecadd/app-streams-vecadd.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OU

struct __cudampi__arguments_type __cudampi__arguments;

long long VECTORSIZE = VECADD_VECTOR_SIZE;
long long VECTORSIZE;

double *vectora;
double *vectorb;
Expand All @@ -48,6 +48,7 @@ int main(int argc, char **argv)

streamcount = __cudampi__arguments.number_of_streams;
batchsize = __cudampi__arguments.batch_size;
VECTORSIZE = __cudampi__arguments.problem_size;

int alldevicescount = 0;

Expand Down
3 changes: 2 additions & 1 deletion cudampilib/apps/vecmaxdiv/app-streams-vecmaxdiv.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OU

struct __cudampi__arguments_type __cudampi__arguments;

long long VECTORSIZE = VECMAXDIV_VECTORSIZE;
long long VECTORSIZE;

double *vectora;
double *vectorb;
Expand All @@ -50,6 +50,7 @@ int main(int argc, char **argv)

streamcount = __cudampi__arguments.number_of_streams;
batchsize = __cudampi__arguments.batch_size;
VECTORSIZE = __cudampi__arguments.problem_size;

int alldevicescount = 0;

Expand Down

0 comments on commit 284b82b

Please sign in to comment.