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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
79fbd5bb
Commit
79fbd5bb
authored
2 years ago
by
Helen Schottenhamml
Browse files
Options
Downloads
Patches
Plain Diff
Allow usage of ARM architectures for Linux systems (not just Darwin).
parent
8cc89044
No related branches found
No related tags found
1 merge request
!320
ARM for linux
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pystencils/backends/simd_instruction_sets.py
+2
-1
2 additions, 1 deletion
pystencils/backends/simd_instruction_sets.py
pystencils/cpu/cpujit.py
+3
-1
3 additions, 1 deletion
pystencils/cpu/cpujit.py
with
5 additions
and
2 deletions
pystencils/backends/simd_instruction_sets.py
+
2
−
1
View file @
79fbd5bb
...
@@ -43,7 +43,8 @@ def get_supported_instruction_sets():
...
@@ -43,7 +43,8 @@ def get_supported_instruction_sets():
return
_cache
.
copy
()
return
_cache
.
copy
()
if
'
PYSTENCILS_SIMD
'
in
os
.
environ
:
if
'
PYSTENCILS_SIMD
'
in
os
.
environ
:
return
os
.
environ
[
'
PYSTENCILS_SIMD
'
].
split
(
'
,
'
)
return
os
.
environ
[
'
PYSTENCILS_SIMD
'
].
split
(
'
,
'
)
if
platform
.
system
()
==
'
Darwin
'
and
platform
.
machine
()
==
'
arm64
'
:
# not supported by cpuinfo
if
(
platform
.
system
()
==
'
Darwin
'
or
platform
.
system
()
==
'
Linux
'
)
and
platform
.
machine
()
==
'
arm64
'
:
# not supported by cpuinfo
return
[
'
neon
'
]
return
[
'
neon
'
]
elif
platform
.
system
()
==
'
Linux
'
and
platform
.
machine
().
startswith
(
'
riscv
'
):
# not supported by cpuinfo
elif
platform
.
system
()
==
'
Linux
'
and
platform
.
machine
().
startswith
(
'
riscv
'
):
# not supported by cpuinfo
libc
=
CDLL
(
'
libc.so.6
'
)
libc
=
CDLL
(
'
libc.so.6
'
)
...
...
This diff is collapsed.
Click to expand it.
pystencils/cpu/cpujit.py
+
3
−
1
View file @
79fbd5bb
...
@@ -146,7 +146,9 @@ def read_config():
...
@@ -146,7 +146,9 @@ def read_config():
(
'
flags
'
,
'
-Ofast -DNDEBUG -fPIC -march=native -fopenmp -std=c++11
'
),
(
'
flags
'
,
'
-Ofast -DNDEBUG -fPIC -march=native -fopenmp -std=c++11
'
),
(
'
restrict_qualifier
'
,
'
__restrict__
'
)
(
'
restrict_qualifier
'
,
'
__restrict__
'
)
])
])
if
platform
.
machine
().
startswith
(
'
ppc64
'
):
if
platform
.
machine
()
==
'
arm64
'
:
default_compiler_config
[
'
flags
'
]
=
default_compiler_config
[
'
flags
'
].
replace
(
'
-march=native
'
,
''
)
elif
platform
.
machine
().
startswith
(
'
ppc64
'
):
default_compiler_config
[
'
flags
'
]
=
default_compiler_config
[
'
flags
'
].
replace
(
'
-march=native
'
,
default_compiler_config
[
'
flags
'
]
=
default_compiler_config
[
'
flags
'
].
replace
(
'
-march=native
'
,
'
-mcpu=native
'
)
'
-mcpu=native
'
)
elif
platform
.
system
().
lower
()
==
'
windows
'
:
elif
platform
.
system
().
lower
()
==
'
windows
'
:
...
...
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