Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loopy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Kaushik Kulkarni
loopy
Commits
b03a9222
Commit
b03a9222
authored
7 years ago
by
James Stevens
Browse files
Options
Downloads
Patches
Plain Diff
defined work-item, sub-group, and group
parent
4af3e4be
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
loopy/statistics.py
+15
-5
15 additions, 5 deletions
loopy/statistics.py
with
15 additions
and
5 deletions
loopy/statistics.py
+
15
−
5
View file @
b03a9222
...
...
@@ -501,7 +501,12 @@ class Op(Record):
.. attribute:: count_granularity
A :class:`str` that specifies whether this operation should be counted
once per *work-item*, *sub-group*, or *group*.
once per *work-item*, *sub-group*, or *group*. A work-item is a single
instance of computation executing on a single processor (think
'
thread
'
),
a collection of which may be grouped together into a work-group. Each
work-group executes on a single compute unit with all work-items within
the group sharing local memory. A sub-group is an implementation-dependent
grouping of work-items within a work-group, analagous to an NVIDIA CUDA warp.
"""
...
...
@@ -1320,10 +1325,15 @@ def get_mem_access_map(knl, numpy_types=True, count_redundant_work=False,
(Likely desirable for performance modeling, but undesirable for
code optimization.)
:arg subgroup_size: A :class:`int` that specifies the sub-group size. This
is used, e.g., when counting a :class:`MemAccess` whose count_granularity
specifies that it should only be counted once per sub-group. The default
sub-group_size is 32.
:arg subgroup_size: A :class:`int` that specifies the sub-group size. An OpenCL
sub-group is an implementation-dependent grouping of work-items within a
work-group, analagous to an NVIDIA CUDA warp. subgroup_size is used, e.g.,
when counting a :class:`MemAccess` whose count_granularity specifies that it
should only be counted once per sub-group. If set to None an attempt to find
the sub-group size using the device will be made. A :class:`string`
'
guess
'
may also be passed as the subgroup_size, in which case get_mem_access_map
will attempt to find the sub-group sizeusing the device and, if
unsuccessful, will make a wild guess.
:return: A :class:`ToCountMap` of **{** :class:`MemAccess` **:**
:class:`islpy.PwQPolynomial` **}**.
...
...
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