Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython_plus_experiments
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Julien Jerphanion
cython_plus_experiments
Commits
88933876
Commit
88933876
authored
Jun 14, 2021
by
Julien Jerphanion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt for taskset
parent
14e2dfe3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
kdtree/Makefile
kdtree/Makefile
+7
-13
No files found.
kdtree/Makefile
View file @
88933876
...
...
@@ -5,7 +5,6 @@ VENV_PATH=`conda info --base`/envs/${PROJECT}
PIP_EXECUTABLE
=
${VENV_PATH}
/bin/pip
PYTHON_EXECUTABLE
=
${VENV_PATH}
/bin/python
PYTEST_EXECUTABLE
=
${VENV_PATH}
/bin/pytest
COMMIT
=
`
git rev-parse
--short
HEAD
`
# Used when not using the python runtime
INCLUDE_DIRS
=
-I
/usr/include/python3.9
...
...
@@ -26,7 +25,7 @@ help: Makefile
## all: Run the main targets
.PHONY
:
all
all
:
install benchmark
-sequential benchmark-parallel
all
:
install benchmark
## install: Install conda env.
.PHONY
:
install
...
...
@@ -67,18 +66,13 @@ clean:
.PRECIOUS
:
%.cpp
## benchmark
-sequential: Run benchmarks for sequential execution, 'NAME' variable can be provided
## benchmark
: Run benchmarks
# Uses taskset to cap to a cpu solely
.PHONY
:
benchmark-sequential
benchmark-sequential
:
@
[
"
${NAME}
"
]
||
export
NAME
=
${COMMIT}
taskset
-c
0
${PYTHON_EXECUTABLE}
benchmarks/benchmark.py
${NAME}
seq
## benchmark-parallel: Run benchmarks for parallel execution, 'NAME' variable can be provided
.PHONY
:
benchmark-parallel
benchmark-parallel
:
@
[
"
${NAME}
"
]
||
export
NAME
=
${COMMIT}
${PYTHON_EXECUTABLE}
benchmarks/benchmark.py
${NAME}
par
.PHONY
:
benchmark
benchmark
:
for
i
in
{
0..5
}
;
do
\
taskset
-c
0-
$$
((
2
**
i-1
))
${PYTHON_EXECUTABLE}
benchmarks/benchmark.py
`
git rev-parse
--short
HEAD
`
_
$$
((
2
**
i-1
))
_thread
;
\
done
## test: Launch all the test.
.PHONY
:
test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment