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
186ed5ef
Commit
186ed5ef
authored
12 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Remove "AMD double" support from reduction.
parent
0bd4a8c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyopencl/reduction.py
+2
-8
2 additions, 8 deletions
pyopencl/reduction.py
with
2 additions
and
8 deletions
pyopencl/reduction.py
+
2
−
8
View file @
186ed5ef
...
@@ -51,9 +51,6 @@ KERNEL = """//CL//
...
@@ -51,9 +51,6 @@ KERNEL = """//CL//
% if double_support:
% if double_support:
#pragma OPENCL EXTENSION cl_khr_fp64: enable
#pragma OPENCL EXTENSION cl_khr_fp64: enable
#define PYOPENCL_DEFINE_CDOUBLE
#define PYOPENCL_DEFINE_CDOUBLE
% elif amd_double_support:
#pragma OPENCL EXTENSION cl_amd_fp64: enable
#define PYOPENCL_DEFINE_CDOUBLE
% endif
% endif
#include <pyopencl-complex.h>
#include <pyopencl-complex.h>
...
@@ -195,7 +192,7 @@ def _get_reduction_source(
...
@@ -195,7 +192,7 @@ def _get_reduction_source(
from
mako.template
import
Template
from
mako.template
import
Template
from
pytools
import
all
from
pytools
import
all
from
pyopencl.characterize
import
has_double_support
,
has_amd_double_support
from
pyopencl.characterize
import
has_double_support
src
=
str
(
Template
(
KERNEL
).
render
(
src
=
str
(
Template
(
KERNEL
).
render
(
out_type
=
out_type
,
out_type
=
out_type
,
arguments
=
"
,
"
.
join
(
arg
.
declarator
()
for
arg
in
parsed_args
),
arguments
=
"
,
"
.
join
(
arg
.
declarator
()
for
arg
in
parsed_args
),
...
@@ -206,10 +203,7 @@ def _get_reduction_source(
...
@@ -206,10 +203,7 @@ def _get_reduction_source(
map_expr
=
map_expr
,
map_expr
=
map_expr
,
name
=
name
,
name
=
name
,
preamble
=
preamble
,
preamble
=
preamble
,
double_support
=
all
(
double_support
=
all
(
has_double_support
(
dev
)
for
dev
in
devices
),
has_double_support
(
dev
)
for
dev
in
devices
),
amd_double_support
=
all
(
has_amd_double_support
(
dev
)
for
dev
in
devices
)
))
))
from
pytools
import
Record
from
pytools
import
Record
...
...
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