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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Jayesh Badwaik (FZ Juelich)
pystencils
Commits
67abd7a1
Commit
67abd7a1
authored
2 years ago
by
Markus Holzer
Browse files
Options
Downloads
Plain Diff
Merge branch 'mr_arm_for_linux' into 'master'
ARM for linux See merge request
pycodegen/pystencils!320
parents
8cc89044
ff855629
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
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
+6
-4
6 additions, 4 deletions
pystencils/cpu/cpujit.py
with
8 additions
and
5 deletions
pystencils/backends/simd_instruction_sets.py
+
2
−
1
View file @
67abd7a1
...
...
@@ -43,7 +43,8 @@ def get_supported_instruction_sets():
return
_cache
.
copy
()
if
'
PYSTENCILS_SIMD
'
in
os
.
environ
:
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
'
]
elif
platform
.
system
()
==
'
Linux
'
and
platform
.
machine
().
startswith
(
'
riscv
'
):
# not supported by cpuinfo
libc
=
CDLL
(
'
libc.so.6
'
)
...
...
This diff is collapsed.
Click to expand it.
pystencils/cpu/cpujit.py
+
6
−
4
View file @
67abd7a1
...
...
@@ -13,7 +13,7 @@ in a configuration file.
3. or in your home directory at ``~/.config/pystencils/config.json`` (Linux) or
``%HOMEPATH%\.pystencils\config.json`` (Windows)
If no configuration file is found, a default configuration is created at the above
mentioned location in your home.
If no configuration file is found, a default configuration is created at the above
-
mentioned location in your home.
So run *pystencils* once, then edit the created configuration file.
...
...
@@ -23,7 +23,7 @@ Compiler Config (Linux)
- **
'
os
'
**: should be detected automatically as
'
linux
'
- **
'
command
'
**: path to C++ compiler (defaults to
'
g++
'
)
- **
'
flags
'
**: space separated list of compiler flags. Make sure to activate OpenMP in your compiler
- **
'
restrict_qualifier
'
**: the restrict qualifier is not standardized ac
c
ross compilers.
- **
'
restrict_qualifier
'
**: the
'
restrict
'
qualifier is not standardized across compilers.
For most Linux compilers the qualifier is ``__restrict__``
...
...
@@ -39,7 +39,7 @@ Then 'cl.exe' is used to compile.
where Visual Studio is installed. This path has to contain a file called
'
vcvarsall.bat
'
- **
'
arch
'
**:
'
x86
'
or
'
x64
'
- **
'
flags
'
**: flags passed to
'
cl.exe
'
, make sure OpenMP is activated
- **
'
restrict_qualifier
'
**: the restrict qualifier is not standardized across compilers.
- **
'
restrict_qualifier
'
**: the
'
restrict
'
qualifier is not standardized across compilers.
For Windows compilers the qualifier should be ``__restrict``
"""
...
...
@@ -146,7 +146,9 @@ def read_config():
(
'
flags
'
,
'
-Ofast -DNDEBUG -fPIC -march=native -fopenmp -std=c++11
'
),
(
'
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
'
,
'
-mcpu=native
'
)
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