Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
bccfa9ff
"git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "6a825932841db7cc41e343b5e66c1585ecace7a0"
Unverified
Commit
bccfa9ff
authored
Jul 16, 2021
by
Zhenhua Han
Committed by
GitHub
Jul 16, 2021
Browse files
execute removeGpuReservation first to release GPUs properly (#3941)
parent
30df69bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ts/nni_manager/training_service/reusable/trialDispatcher.ts
ts/nni_manager/training_service/reusable/trialDispatcher.ts
+3
-3
No files found.
ts/nni_manager/training_service/reusable/trialDispatcher.ts
View file @
bccfa9ff
...
@@ -732,6 +732,9 @@ class TrialDispatcher implements TrainingService {
...
@@ -732,6 +732,9 @@ class TrialDispatcher implements TrainingService {
* @param trial
* @param trial
*/
*/
private
releaseEnvironment
(
trial
:
TrialDetail
):
void
{
private
releaseEnvironment
(
trial
:
TrialDetail
):
void
{
if
(
true
===
this
.
enableGpuScheduler
)
{
this
.
gpuScheduler
.
removeGpuReservation
(
trial
);
}
if
(
trial
.
environment
!==
undefined
)
{
if
(
trial
.
environment
!==
undefined
)
{
if
(
trial
.
environment
.
runningTrialCount
<=
0
)
{
if
(
trial
.
environment
.
runningTrialCount
<=
0
)
{
throw
new
Error
(
`TrialDispatcher: environment
${
trial
.
environment
.
id
}
has no counted running trial!`
);
throw
new
Error
(
`TrialDispatcher: environment
${
trial
.
environment
.
id
}
has no counted running trial!`
);
...
@@ -740,9 +743,6 @@ class TrialDispatcher implements TrainingService {
...
@@ -740,9 +743,6 @@ class TrialDispatcher implements TrainingService {
trial
.
environment
.
latestTrialReleasedTime
=
Date
.
now
();
trial
.
environment
.
latestTrialReleasedTime
=
Date
.
now
();
trial
.
environment
=
undefined
;
trial
.
environment
=
undefined
;
}
}
if
(
true
===
this
.
enableGpuScheduler
)
{
this
.
gpuScheduler
.
removeGpuReservation
(
trial
);
}
}
}
private
async
handleMetricData
(
trialId
:
string
,
data
:
any
):
Promise
<
void
>
{
private
async
handleMetricData
(
trialId
:
string
,
data
:
any
):
Promise
<
void
>
{
...
...
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