File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
drivers/cpp/benchmarks/reduce/26_reduce_product_of_inverses Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ struct Context {
23
23
};
24
24
25
25
void reset (Context *ctx) {
26
- fillRand (ctx->x , 0 .0 , 100.0 );
26
+ fillRand (ctx->x , 1 .0 , 100.0 );
27
27
BCAST (ctx->x , DOUBLE);
28
28
}
29
29
@@ -58,7 +58,7 @@ bool validate(Context *ctx) {
58
58
const size_t numTries = MAX_VALIDATION_ATTEMPTS;
59
59
for (int trialIter = 0 ; trialIter < numTries; trialIter += 1 ) {
60
60
// set up input
61
- fillRand (x, 0 .0 , 100.0 );
61
+ fillRand (x, 1 .0 , 100.0 );
62
62
BCAST (x, DOUBLE);
63
63
64
64
// compute correct result
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ struct Context {
27
27
};
28
28
29
29
void reset (Context *ctx) {
30
- fillRand (ctx->h_x , 0 .0 , 100.0 );
30
+ fillRand (ctx->h_x , 1 .0 , 100.0 );
31
31
COPY_H2D (ctx->d_x , ctx->h_x .data (), ctx->N * sizeof (double ));
32
32
33
33
double tmp = 1.0 ;
@@ -73,7 +73,7 @@ bool validate(Context *ctx) {
73
73
const size_t numTries = MAX_VALIDATION_ATTEMPTS;
74
74
for (int trialIter = 0 ; trialIter < numTries; trialIter += 1 ) {
75
75
// set up input
76
- fillRand (h_x, 0 .0 , 100.0 );
76
+ fillRand (h_x, 1 .0 , 100.0 );
77
77
COPY_H2D (d_x, h_x.data (), TEST_SIZE * sizeof (double ));
78
78
79
79
double tmp = 1.0 ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ struct Context {
30
30
};
31
31
32
32
void reset (Context *ctx) {
33
- fillRand (ctx->x_host , 0 .0 , 100.0 );
33
+ fillRand (ctx->x_host , 1 .0 , 100.0 );
34
34
35
35
copyVectorToView (ctx->x_host , ctx->xNonConst );
36
36
ctx->x = ctx->xNonConst ;
@@ -68,7 +68,7 @@ bool validate(Context *ctx) {
68
68
const size_t numTries = MAX_VALIDATION_ATTEMPTS;
69
69
for (int trialIter = 0 ; trialIter < numTries; trialIter += 1 ) {
70
70
// set up input
71
- fillRand (x_host, 0 .0 , 100.0 );
71
+ fillRand (x_host, 1 .0 , 100.0 );
72
72
copyVectorToView (x_host, xNonConst);
73
73
Kokkos::View<const double *> x = xNonConst;
74
74
You can’t perform that action at this time.
0 commit comments