Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
batmen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
sepia-pub
mael
batmen
Commits
575cd76c
Commit
575cd76c
authored
6 years ago
by
Millian Poquet
Browse files
Options
Downloads
Patches
Plain Diff
[code] PEMPEK_ASSERT -> PEMPEK_ASSERT_ERROR
parent
38f782d2
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
src/protocol.cpp
+12
-12
12 additions, 12 deletions
src/protocol.cpp
src/schedule.cpp
+1
-1
1 addition, 1 deletion
src/schedule.cpp
with
13 additions
and
13 deletions
src/protocol.cpp
+
12
−
12
View file @
575cd76c
...
...
@@ -29,7 +29,7 @@ void JsonProtocolWriter::append_query_consumed_energy(double date)
}
} */
PPK_ASSERT
(
date
>=
_last_date
,
"Date inconsistency"
);
PPK_ASSERT
_ERROR
(
date
>=
_last_date
,
"Date inconsistency"
);
_last_date
=
date
;
_is_empty
=
false
;
...
...
@@ -110,7 +110,7 @@ void JsonProtocolWriter::append_submit_job(const string &job_id,
}
} */
PPK_ASSERT
(
date
>=
_last_date
,
"Date inconsistency"
);
PPK_ASSERT
_ERROR
(
date
>=
_last_date
,
"Date inconsistency"
);
_last_date
=
date
;
_is_empty
=
false
;
...
...
@@ -165,7 +165,7 @@ void JsonProtocolWriter::append_submit_profile(const string &workload_name,
}
} */
PPK_ASSERT
(
date
>=
_last_date
,
"Date inconsistency"
);
PPK_ASSERT
_ERROR
(
date
>=
_last_date
,
"Date inconsistency"
);
_last_date
=
date
;
_is_empty
=
false
;
...
...
@@ -206,7 +206,7 @@ void JsonProtocolWriter::append_execute_job(const string &job_id,
}
} */
PPK_ASSERT
(
date
>=
_last_date
,
"Date inconsistency"
);
PPK_ASSERT
_ERROR
(
date
>=
_last_date
,
"Date inconsistency"
);
_last_date
=
date
;
_is_empty
=
false
;
...
...
@@ -246,7 +246,7 @@ void JsonProtocolWriter::append_reject_job(const string &job_id,
"data": { "job_id": "w12!45" }
} */
PPK_ASSERT
(
date
>=
_last_date
,
"Date inconsistency"
);
PPK_ASSERT
_ERROR
(
date
>=
_last_date
,
"Date inconsistency"
);
_last_date
=
date
;
_is_empty
=
false
;
...
...
@@ -270,7 +270,7 @@ void JsonProtocolWriter::append_kill_job(const vector<string> &job_ids,
"data": {"job_ids": ["w0!1", "w0!2"]}
} */
PPK_ASSERT
(
date
>=
_last_date
,
"Date inconsistency"
);
PPK_ASSERT
_ERROR
(
date
>=
_last_date
,
"Date inconsistency"
);
_last_date
=
date
;
_is_empty
=
false
;
...
...
@@ -300,7 +300,7 @@ void JsonProtocolWriter::append_set_resource_state(IntervalSet resources,
"data": {"resources": "1 2 3-5", "state": "42"}
} */
PPK_ASSERT
(
date
>=
_last_date
,
"Date inconsistency"
);
PPK_ASSERT
_ERROR
(
date
>=
_last_date
,
"Date inconsistency"
);
_last_date
=
date
;
_is_empty
=
false
;
...
...
@@ -329,7 +329,7 @@ void JsonProtocolWriter::append_set_job_metadata(const string & job_id,
}
} */
PPK_ASSERT
(
date
>=
_last_date
,
"Date inconsistency"
);
PPK_ASSERT
_ERROR
(
date
>=
_last_date
,
"Date inconsistency"
);
_last_date
=
date
;
_is_empty
=
false
;
...
...
@@ -354,7 +354,7 @@ void JsonProtocolWriter::append_call_me_later(double future_date,
"data": {"timestamp": 25.5}
} */
PPK_ASSERT
(
date
>=
_last_date
,
"Date inconsistency"
);
PPK_ASSERT
_ERROR
(
date
>=
_last_date
,
"Date inconsistency"
);
_last_date
=
date
;
_is_empty
=
false
;
...
...
@@ -377,7 +377,7 @@ void JsonProtocolWriter::append_scheduler_finished_submitting_jobs(double date)
"data": { "type": "submission_finished" }
} */
PPK_ASSERT
(
date
>=
_last_date
,
"Date inconsistency"
);
PPK_ASSERT
_ERROR
(
date
>=
_last_date
,
"Date inconsistency"
);
_last_date
=
date
;
_is_empty
=
false
;
...
...
@@ -404,8 +404,8 @@ void JsonProtocolWriter::clear()
string
JsonProtocolWriter
::
generate_current_message
(
double
date
)
{
PPK_ASSERT
(
date
>=
_last_date
,
"Date inconsistency"
);
PPK_ASSERT
(
_events
.
IsArray
(),
PPK_ASSERT
_ERROR
(
date
>=
_last_date
,
"Date inconsistency"
);
PPK_ASSERT
_ERROR
(
_events
.
IsArray
(),
"Successive calls to JsonProtocolWriter::generate_current_message without calling "
"the clear() method is not supported"
);
...
...
This diff is collapsed.
Click to expand it.
src/schedule.cpp
+
1
−
1
View file @
575cd76c
...
...
@@ -21,7 +21,7 @@ Schedule::Schedule(int nb_machines, Rational initial_time)
slice
.
length
=
slice
.
end
-
slice
.
begin
;
slice
.
available_machines
.
insert
(
IntervalSet
::
ClosedInterval
(
0
,
nb_machines
-
1
));
slice
.
nb_available_machines
=
nb_machines
;
PPK_ASSERT
(
slice
.
available_machines
.
size
()
==
(
unsigned
int
)
nb_machines
);
PPK_ASSERT
_ERROR
(
slice
.
available_machines
.
size
()
==
(
unsigned
int
)
nb_machines
);
_profile
.
push_back
(
slice
);
...
...
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