Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
063c10d0
Commit
063c10d0
authored
Dec 6, 2020
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Skip Vectorisation test if arch is not avx
parent
197ddd4e
No related branches found
No related tags found
1 merge request
!192
FIX pystencils install bug
Pipeline
#28468
failed
Dec 6, 2020
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils_tests/test_vectorization.py
+5
-0
5 additions, 0 deletions
pystencils_tests/test_vectorization.py
with
5 additions
and
0 deletions
pystencils_tests/test_vectorization.py
+
5
−
0
View file @
063c10d0
...
...
@@ -6,6 +6,9 @@ from pystencils.backends.simd_instruction_sets import get_supported_instruction_
from
pystencils.cpu.vectorization
import
vectorize
from
pystencils.fast_approximation
import
insert_fast_sqrts
,
insert_fast_divisions
from
pystencils.transformations
import
replace_inner_stride_with_one
from
pystencils.backends.simd_instruction_sets
import
get_supported_instruction_sets
supported_instruction_sets
=
get_supported_instruction_sets
()
if
get_supported_instruction_sets
()
else
[]
def
test_vector_type_propagation
():
...
...
@@ -27,6 +30,8 @@ def test_vector_type_propagation():
np
.
testing
.
assert_equal
(
dst
[
1
:
-
1
,
1
:
-
1
],
2
*
10.0
+
3
)
@pytest.mark.skipif
(
'
avx
'
in
supported_instruction_sets
,
reason
=
"
This test case is specifically for AVX architectures
"
)
def
test_inplace_update
():
shape
=
(
9
,
9
,
3
)
arr
=
np
.
ones
(
shape
,
order
=
'
f
'
)
...
...
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
sign in
to comment