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
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
pyopencl
Commits
0451fba1
Commit
0451fba1
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into cffi
parents
5cacf0f6
5a709599
Branches
cffi
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/dump-properties.py
+1
-1
1 addition, 1 deletion
examples/dump-properties.py
test/test_clmath.py
+12
-0
12 additions, 0 deletions
test/test_clmath.py
with
13 additions
and
1 deletion
examples/dump-properties.py
+
1
−
1
View file @
0451fba1
...
...
@@ -29,7 +29,7 @@ def print_info(obj, info_cls):
try
:
print
(
"
%s: %s
"
%
(
info_name
,
info_value
))
except
:
print
(
"
%s: <error>
"
)
%
info_name
print
(
"
%s: <error>
"
%
info_name
)
for
platform
in
cl
.
get_platforms
():
print
(
75
*
"
=
"
)
...
...
This diff is collapsed.
Click to expand it.
test/test_clmath.py
+
12
−
0
View file @
0451fba1
...
...
@@ -204,6 +204,10 @@ def test_modf(ctx_factory):
context
=
ctx_factory
()
queue
=
cl
.
CommandQueue
(
context
)
if
context
.
devices
[
0
].
platform
.
name
==
"
Portable Computing Language
"
:
# https://github.com/pocl/pocl/issues/198
pytest
.
skip
(
"
POCL doesn
'
t seem to have modf
"
)
for
s
in
sizes
:
a
=
cl_array
.
arange
(
queue
,
s
,
dtype
=
np
.
float32
)
/
10
fracpart
,
intpart
=
clmath
.
modf
(
a
)
...
...
@@ -223,6 +227,10 @@ def test_frexp(ctx_factory):
context
=
ctx_factory
()
queue
=
cl
.
CommandQueue
(
context
)
if
context
.
devices
[
0
].
platform
.
name
==
"
Portable Computing Language
"
:
# https://github.com/pocl/pocl/issues/198
pytest
.
skip
(
"
POCL doesn
'
t seem to have frexp
"
)
for
s
in
sizes
:
a
=
cl_array
.
arange
(
queue
,
s
,
dtype
=
np
.
float32
)
/
10
significands
,
exponents
=
clmath
.
frexp
(
a
)
...
...
@@ -252,6 +260,10 @@ def test_bessel(ctx_factory):
from
pytest
import
skip
skip
(
"
no double precision support--cannot test bessel function
"
)
if
ctx
.
devices
[
0
].
platform
.
name
==
"
Portable Computing Language
"
:
# https://github.com/pocl/pocl/issues/198
pytest
.
skip
(
"
POCL doesn
'
t seem to have frexp
"
)
nterms
=
30
try
:
...
...
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