Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
c5036264
Commit
c5036264
authored
7 years ago
by
Nicola VIGANO
Browse files
Options
Downloads
Patches
Plain Diff
Added oprofile profiling support
Signed-off-by:
Nicola VIGANO
<
N.R.Vigano@cwi.nl
>
parent
4d1397a6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dct_launch.py
+1
-1
1 addition, 1 deletion
dct_launch.py
zUtil_Python/dct_matlab_invocation.py
+2
-0
2 additions, 0 deletions
zUtil_Python/dct_matlab_invocation.py
with
3 additions
and
1 deletion
dct_launch.py
+
1
−
1
View file @
c5036264
...
...
@@ -81,7 +81,7 @@ class DCTLauncher(object):
print
(
"
# python %s matlab_script [commands]
"
%
os
.
path
.
basename
(
__file__
))
print
(
"
Options:
"
)
print
(
"
-h | --help : to show this help
"
)
print
(
"
--profile : to specify the type of profiling. Options:
'
cuda
'"
)
print
(
"
--profile : to specify the type of profiling. Options:
'
cuda
'
,
'
oprofile
'
"
)
print
(
"
--debug : to specify the type of profiling. Options:
'
valgrind
'"
)
print
(
"
--script : to specify the script/commands to be launched
"
)
else
:
...
...
This diff is collapsed.
Click to expand it.
zUtil_Python/dct_matlab_invocation.py
+
2
−
0
View file @
c5036264
...
...
@@ -80,6 +80,8 @@ class DCTMatlabInvocation(object):
cmd
=
[]
if
profiler
==
"
cuda
"
:
cmd
=
cmd
+
[
"
/usr/local/cuda/bin/nvprof
"
,
"
-f
"
,
"
-o
"
,
"
profile_cuda_matlab_script
"
]
#, "--analysis-metrics"
elif
profiler
==
"
oprofile
"
:
cmd
=
cmd
+
[
"
operf
"
]
cmd
=
cmd
+
[
os
.
path
.
join
(
self
.
conf
.
getMatlabPath
(),
"
bin
"
,
"
matlab
"
)]
cmd
=
cmd
+
self
.
conf
.
getMatlabOptions
()
...
...
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