Skip to content
Snippets Groups Projects
Commit 99cd3ff7 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Update ranluxcl, use legacy init as recommended by Ivar.

parent cf8f3306
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ import numpy as np
class RanluxGenerator(object):
def __init__(self, queue, num_work_items,
luxury=None, seed=None, no_warmup=False,
use_legacy_init=False, max_work_items=None):
use_legacy_init=True, max_work_items=None):
if luxury is None:
luxury = 4
......
......@@ -551,11 +551,11 @@ void ranluxcl_initialization(uint ins, global ranluxcl_state_t *ranluxcltab)
//allows us to use ins = 0.
int k, maxWorkitems;
#ifdef RANLUXCL_USE_LEGACY_INITIALIZATION
maxWorkitems = RANLUXCL_USE_LEGACY_INITIALIZATION;
#ifdef RANLUXCL_MAXWORKITEMS
maxWorkitems = RANLUXCL_MAXWORKITEMS;
#else
maxWorkitems = RANLUXCL_NUMWORKITEMS;
#endif //RANLUXCL_USE_LEGACY_INITIALIZATION
#endif //RANLUXCL_MAXWORKITEMS
int scaledins = ins * maxWorkitems + 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment