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
7f1a4a4b
Commit
7f1a4a4b
authored
2 years ago
by
Andreas Klöckner
Committed by
Andreas Klöckner
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Cast size/id macros to signed in scan
parent
1be001b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#305743
passed with warnings
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyopencl/_cluda.py
+12
-12
12 additions, 12 deletions
pyopencl/_cluda.py
with
12 additions
and
12 deletions
pyopencl/_cluda.py
+
12
−
12
View file @
7f1a4a4b
...
...
@@ -30,21 +30,21 @@ CLUDA_PREAMBLE = """
#define LOCAL_MEM_ARG __local
#define REQD_WG_SIZE(X,Y,Z) __attribute__((reqd_work_group_size(X, Y, Z)))
#define LID_0 get_local_id(0)
#define LID_1 get_local_id(1)
#define LID_2 get_local_id(2)
#define LID_0
((ptrdiff_t)
get_local_id(0)
)
#define LID_1
((ptrdiff_t)
get_local_id(1)
)
#define LID_2
((ptrdiff_t)
get_local_id(2)
)
#define GID_0 get_group_id(0)
#define GID_1 get_group_id(1)
#define GID_2 get_group_id(2)
#define GID_0
((ptrdiff_t)
get_group_id(0)
)
#define GID_1
((ptrdiff_t)
get_group_id(1)
)
#define GID_2
((ptrdiff_t)
get_group_id(2)
)
#define LDIM_0 get_local_size(0)
#define LDIM_1 get_local_size(1)
#define LDIM_2 get_local_size(2)
#define LDIM_0
((ptrdiff_t)
get_local_size(0)
)
#define LDIM_1
((ptrdiff_t)
get_local_size(1)
)
#define LDIM_2
((ptrdiff_t)
get_local_size(2)
)
#define GDIM_0 get_num_groups(0)
#define GDIM_1 get_num_groups(1)
#define GDIM_2 get_num_groups(2)
#define GDIM_0
((ptrdiff_t)
get_num_groups(0)
)
#define GDIM_1
((ptrdiff_t)
get_num_groups(1)
)
#define GDIM_2
((ptrdiff_t)
get_num_groups(2)
)
% if double_support:
#if __OPENCL_C_VERSION__ < 120
...
...
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