Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gaudi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Gaudi
Gaudi
Commits
4d24f6c6
Commit
4d24f6c6
authored
2 years ago
by
Marco Clemencic
Browse files
Options
Downloads
Patches
Plain Diff
fix platform exclusion for non x86_64
parent
daf0bda2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1396
Fixes to support builds on ARM processors
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GaudiKernel/tests/nose/test_instructionsetLevel.py
+9
-0
9 additions, 0 deletions
GaudiKernel/tests/nose/test_instructionsetLevel.py
with
9 additions
and
0 deletions
GaudiKernel/tests/nose/test_instructionsetLevel.py
+
9
−
0
View file @
4d24f6c6
...
...
@@ -9,10 +9,19 @@
# or submit itself to any jurisdiction. #
#####################################################################################
import
os
from
platform
import
processor
from
subprocess
import
PIPE
,
Popen
from
nose
import
SkipTest
def
test
():
if
processor
()
!=
"
x86_64
"
:
raise
SkipTest
(
"
platform {} not supported (instructionsetLevel only works on x86_64
"
.
format
(
processor
()
)
)
out
=
Popen
([
"
instructionsetLevel
"
,
"
all
"
],
stdout
=
PIPE
).
communicate
()[
0
]
out
=
out
.
decode
(
"
utf-8
"
)
known_flags
=
set
(
l
.
strip
()
for
l
in
out
.
splitlines
())
...
...
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