Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyopencl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
pyopencl
Commits
99cd3ff7
Commit
99cd3ff7
authored
13 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Update ranluxcl, use legacy init as recommended by Ivar.
parent
cf8f3306
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyopencl/clrandom.py
+1
-1
1 addition, 1 deletion
pyopencl/clrandom.py
src/cl/pyopencl-ranluxcl.cl
+3
-3
3 additions, 3 deletions
src/cl/pyopencl-ranluxcl.cl
with
4 additions
and
4 deletions
pyopencl/clrandom.py
+
1
−
1
View file @
99cd3ff7
...
@@ -11,7 +11,7 @@ import numpy as np
...
@@ -11,7 +11,7 @@ import numpy as np
class
RanluxGenerator
(
object
):
class
RanluxGenerator
(
object
):
def
__init__
(
self
,
queue
,
num_work_items
,
def
__init__
(
self
,
queue
,
num_work_items
,
luxury
=
None
,
seed
=
None
,
no_warmup
=
False
,
luxury
=
None
,
seed
=
None
,
no_warmup
=
False
,
use_legacy_init
=
Fals
e
,
max_work_items
=
None
):
use_legacy_init
=
Tru
e
,
max_work_items
=
None
):
if
luxury
is
None
:
if
luxury
is
None
:
luxury
=
4
luxury
=
4
...
...
This diff is collapsed.
Click to expand it.
src/cl/pyopencl-ranluxcl.cl
+
3
−
3
View file @
99cd3ff7
...
@@ -551,11 +551,11 @@ void ranluxcl_initialization(uint ins, global ranluxcl_state_t *ranluxcltab)
...
@@ -551,11 +551,11 @@ void ranluxcl_initialization(uint ins, global ranluxcl_state_t *ranluxcltab)
//allows
us
to
use
ins
=
0.
//allows
us
to
use
ins
=
0.
int
k,
maxWorkitems
;
int
k,
maxWorkitems
;
#
ifdef
RANLUXCL_
USE_LEGACY_INITIALIZATION
#
ifdef
RANLUXCL_
MAXWORKITEMS
maxWorkitems
=
RANLUXCL_
USE_LEGACY_INITIALIZATION
;
maxWorkitems
=
RANLUXCL_
MAXWORKITEMS
;
#
else
#
else
maxWorkitems
=
RANLUXCL_NUMWORKITEMS
;
maxWorkitems
=
RANLUXCL_NUMWORKITEMS
;
#
endif
//RANLUXCL_
USE_LEGACY_INITIALIZATION
#
endif
//RANLUXCL_
MAXWORKITEMS
int
scaledins
=
ins
*
maxWorkitems
+
1
;
int
scaledins
=
ins
*
maxWorkitems
+
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment