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
f0629644
Commit
f0629644
authored
12 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Scan: pepper with *restrict.
parent
186ed5ef
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
pyopencl/scan.py
+9
-9
9 additions, 9 deletions
pyopencl/scan.py
with
9 additions
and
9 deletions
pyopencl/scan.py
+
9
−
9
View file @
f0629644
...
...
@@ -129,18 +129,18 @@ KERNEL
REQD_WG_SIZE(WG_SIZE, 1, 1)
void ${name_prefix}_scan_intervals(
${argument_signature},
GLOBAL_MEM scan_type *partial_scan_buffer,
GLOBAL_MEM scan_type *
restrict
partial_scan_buffer,
const index_type N,
const index_type interval_size
%if is_first_level:
, GLOBAL_MEM scan_type *interval_results
, GLOBAL_MEM scan_type *
restrict
interval_results
%endif
%if is_segmented and is_first_level:
// NO_SEG_BOUNDARY if no segment boundary in interval.
, GLOBAL_MEM index_type *g_first_segment_start_in_interval
, GLOBAL_MEM index_type *
restrict
g_first_segment_start_in_interval
%endif
%if store_segment_start_flags:
, GLOBAL_MEM char *g_segment_start_flags
, GLOBAL_MEM char *
restrict
g_segment_start_flags
%endif
)
{
...
...
@@ -591,13 +591,13 @@ void ${name_prefix}_final_update(
${argument_signature},
const index_type N,
const index_type interval_size,
GLOBAL_MEM scan_type *interval_results,
GLOBAL_MEM scan_type *partial_scan_buffer
GLOBAL_MEM scan_type *
restrict
interval_results,
GLOBAL_MEM scan_type *
restrict
partial_scan_buffer
%if is_segmented:
, GLOBAL_MEM index_type *g_first_segment_start_in_interval
, GLOBAL_MEM index_type *
restrict
g_first_segment_start_in_interval
%endif
%if is_segmented and use_lookbehind_update:
, GLOBAL_MEM char *g_segment_start_flags
, GLOBAL_MEM char *
restrict
g_segment_start_flags
%endif
)
{
...
...
@@ -762,7 +762,7 @@ _IGNORED_WORDS = set("""
typedef for endfor if void while endwhile endfor endif else const printf
None return bool n char true false ifdef pycl_printf str xrange assert
np iinfo max itemsize __packed__ struct
np iinfo max itemsize __packed__ struct
restrict
set iteritems len setdefault
...
...
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