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
dec967d5
There was a problem fetching the pipeline summary.
Commit
dec967d5
authored
7 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Fix vec references in test_array
parent
cf951cb6
No related branches found
No related tags found
Loading
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_array.py
+5
-4
5 additions, 4 deletions
test/test_array.py
with
5 additions
and
4 deletions
test/test_array.py
+
5
−
4
View file @
dec967d5
...
...
@@ -32,6 +32,7 @@ import pytest
import
pyopencl
as
cl
import
pyopencl.array
as
cl_array
import
pyopencl.cltypes
as
cltypes
import
pyopencl.tools
as
cl_tools
from
pyopencl.tools
import
(
# noqa
pytest_generate_tests_for_pyopencl
as
pytest_generate_tests
)
...
...
@@ -194,12 +195,12 @@ def test_vector_fill(ctx_factory):
context
=
ctx_factory
()
queue
=
cl
.
CommandQueue
(
context
)
a_gpu
=
cl_array
.
Array
(
queue
,
100
,
dtype
=
cl
_array
.
vec
.
float4
)
a_gpu
.
fill
(
cl
_array
.
vec
.
make_float4
(
0.0
,
0.0
,
1.0
,
0.0
))
a_gpu
=
cl_array
.
Array
(
queue
,
100
,
dtype
=
cl
types
.
float4
)
a_gpu
.
fill
(
cl
types
.
make_float4
(
0.0
,
0.0
,
1.0
,
0.0
))
a
=
a_gpu
.
get
()
assert
a
.
dtype
==
cl
_array
.
vec
.
float4
assert
a
.
dtype
==
cl
types
.
float4
a_gpu
=
cl_array
.
zeros
(
queue
,
100
,
dtype
=
cl
_array
.
vec
.
float4
)
a_gpu
=
cl_array
.
zeros
(
queue
,
100
,
dtype
=
cl
types
.
float4
)
def
test_absrealimag
(
ctx_factory
):
...
...
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