Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HyperLoom
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
ADAS
HyperLoom
Commits
b09a8549
Commit
b09a8549
authored
Oct 08, 2016
by
Stanislav Bohm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: more logging
parent
a0dc1a90
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
11 deletions
+17
-11
src/libloom/data/rawdata.cpp
src/libloom/data/rawdata.cpp
+1
-1
src/libloom/tasks/runtask.cpp
src/libloom/tasks/runtask.cpp
+2
-1
src/libloom/worker.cpp
src/libloom/worker.cpp
+1
-1
src/server/compstate.cpp
src/server/compstate.cpp
+11
-0
src/server/compstate.h
src/server/compstate.h
+1
-8
src/server/taskmanager.cpp
src/server/taskmanager.cpp
+1
-0
No files found.
src/libloom/data/rawdata.cpp
View file @
b09a8549
...
...
@@ -133,7 +133,7 @@ void RawData::map(int fd, bool write)
std
::
string
RawData
::
get_info
()
{
return
"RawData
"
;
return
"RawData
file="
+
filename
;
}
void
RawData
::
init_from_string
(
Worker
&
worker
,
const
std
::
string
&
str
)
...
...
src/libloom/tasks/runtask.cpp
View file @
b09a8549
...
...
@@ -72,7 +72,8 @@ void RunTask::start(DataVector &inputs)
std
::
string
path
=
get_path
(
msg
.
map_inputs
(
i
));
std
::
string
filename
=
inputs
[
i
]
->
get_filename
();
assert
(
!
filename
.
empty
());
llog
->
debug
(
"Creating symlink of '{}'"
,
msg
.
map_inputs
(
i
));
llog
->
debug
(
"Creating symlink of '{}' for input id={} filename={}"
,
msg
.
map_inputs
(
i
),
task
->
get_inputs
()[
i
],
filename
);
if
(
symlink
(
filename
.
c_str
(),
path
.
c_str
()))
{
log_errno_abort
(
"symlink"
);
}
...
...
src/libloom/worker.cpp
View file @
b09a8549
...
...
@@ -218,7 +218,7 @@ void Worker::start_task(std::unique_ptr<Task> task)
void
Worker
::
publish_data
(
Id
id
,
const
std
::
shared_ptr
<
Data
>
&
data
)
{
llog
->
debug
(
"Publishing data id={} size={}
"
,
id
,
data
->
get_size
());
llog
->
debug
(
"Publishing data id={} size={}
info={}"
,
id
,
data
->
get_size
(),
data
->
get_info
());
public_data
[
id
]
=
data
;
check_waiting_tasks
();
}
...
...
src/server/compstate.cpp
View file @
b09a8549
...
...
@@ -390,6 +390,17 @@ TaskState &ComputationState::get_state(loom::Id id)
}
TaskState
&
ComputationState
::
get_state_or_create
(
loom
::
Id
id
)
{
auto
it
=
states
.
find
(
id
);
if
(
it
==
states
.
end
())
{
loom
::
llog
->
debug
(
"Creating state id={}"
,
id
);
auto
p
=
states
.
emplace
(
std
::
make_pair
(
id
,
TaskState
(
get_node
(
id
))));
it
=
p
.
first
;
}
return
it
->
second
;
}
void
ComputationState
::
add_ready_nodes
(
const
std
::
vector
<
loom
::
Id
>
&
ids
)
{
for
(
loom
::
Id
id
:
ids
)
{
...
...
src/server/compstate.h
View file @
b09a8549
...
...
@@ -36,14 +36,7 @@ public:
}
}
TaskState
&
get_state_or_create
(
loom
::
Id
id
)
{
auto
it
=
states
.
find
(
id
);
if
(
it
==
states
.
end
())
{
auto
p
=
states
.
emplace
(
std
::
make_pair
(
id
,
TaskState
(
get_node
(
id
))));
it
=
p
.
first
;
}
return
it
->
second
;
}
TaskState
&
get_state_or_create
(
loom
::
Id
id
);
const
PlanNode
&
get_node
(
loom
::
Id
id
)
{
return
plan
.
get_node
(
id
);
...
...
src/server/taskmanager.cpp
View file @
b09a8549
...
...
@@ -62,6 +62,7 @@ void TaskManager::start_task(WorkerConnection *wc, Id task_id)
void
TaskManager
::
remove_state
(
TaskState
&
state
)
{
llog
->
debug
(
"Removing state id={}"
,
state
.
get_id
());
assert
(
state
.
get_ref_counter
()
==
0
);
loom
::
Id
id
=
state
.
get_id
();
state
.
foreach_owner
([
id
](
WorkerConnection
*
wc
)
{
...
...
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