Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCDDS-core
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
SPC
SCDDS
SCDDS-core
Commits
22dd005e
Commit
22dd005e
authored
5 years ago
by
Federico Felici
Browse files
Options
Downloads
Patches
Plain Diff
Add open(node,thread)
parent
032167c3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/classes/SCDclass_expcode.m
+18
-4
18 additions, 4 deletions
code/classes/SCDclass_expcode.m
with
18 additions
and
4 deletions
code/classes/SCDclass_expcode.m
+
18
−
4
View file @
22dd005e
...
@@ -175,7 +175,11 @@ classdef SCDclass_expcode
...
@@ -175,7 +175,11 @@ classdef SCDclass_expcode
rtwbuild
(
mynodeslx
{
1
});
rtwbuild
(
mynodeslx
{
1
});
end
end
end
end
function
threadslx
=
getthreadslx
(
inode
,
icpu
)
threadslx
=
sprintf
(
'SCD_rtccode_%02d_%02d'
,
inode
,
icpu
);
end
function
setcachefolder
(
obj
)
function
setcachefolder
(
obj
)
%% Set Cache Folder for experimental code (avoid conflicts with other tmp files)
%% Set Cache Folder for experimental code (avoid conflicts with other tmp files)
CacheFolder
=
fullfile
(
fileparts
(
mfilename
(
'fullpath'
)),
'..'
,
'..'
,
...
CacheFolder
=
fullfile
(
fileparts
(
mfilename
(
'fullpath'
)),
'..'
,
'..'
,
...
...
@@ -582,8 +586,18 @@ classdef SCDclass_expcode
...
@@ -582,8 +586,18 @@ classdef SCDclass_expcode
sim
(
'tcv'
)
sim
(
'tcv'
)
end
end
function
open
(
obj
)
function
open
(
~
,
node
,
cpu
)
open
(
'tcv'
);
if
nargin
==
1
openslx
=
'tcv'
;
elseif
nargin
==
2
assert
(
isnumeric
(
node
))
openslx
=
sprintf
(
'SCD_rtc_%02d'
,
node
);
elseif
nargin
==
3
openslx
=
SCDclass_expcode
.
getthreadslx
(
node
,
cpu
);
else
error
(
'invalid number of arguments'
);
end
open
(
openslx
);
end
end
function
build
(
obj
)
function
build
(
obj
)
...
@@ -596,7 +610,7 @@ classdef SCDclass_expcode
...
@@ -596,7 +610,7 @@ classdef SCDclass_expcode
for
icpu
=
1
:
nodeinfo
.
ncpu
for
icpu
=
1
:
nodeinfo
.
ncpu
if
nodeinfo
.
cpuactive
(
icpu
)
if
nodeinfo
.
cpuactive
(
icpu
)
compileslx_list
=
[
compileslx_list
,
...
compileslx_list
=
[
compileslx_list
,
...
sprintf
(
'SCD_rtccode_%02d_%02d'
,
i
node
,
i
cpu
)];
%#ok<AGROW>
SCDclass_expcode
.
getthreadslx
(
node
,
cpu
)];
%#ok<AGROW>
end
end
end
end
end
end
...
...
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