-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hello @mattldawson,
Reviewing my old notes, I had seen that a difference worth to comment of my GPU branch with the main branch.
In the camp_solver.c file there's a rand() factor in the guesser function like this:
// Scale incomplete jumps
if (i_fast >= 0 && h_n > ZERO)
h_j *= 0.95 + 0.1 * rand() / (double)RAND_MAX;
h_j = t_n < t_0 + t_j + h_j ? t_n - (t_0 + t_j) : h_j;
In my notes, this random factor is difficulting the profiling, therefore it is disabled (replaced by just h_j *= 0.95 + 0.1) for the GPU branch. Should I keep both versions alive with a compiler option like #ifdef USE_GPU? Or do you have another suggestion?
Metadata
Metadata
Assignees
Labels
No labels