Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scord
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
eu
ADMIRE
scord
Commits
eaeafd09
Verified
Commit
eaeafd09
authored
2 years ago
by
Alberto Miranda
Browse files
Options
Downloads
Patches
Plain Diff
ADM_deploy_adhoc_storage: Update RPC handler
parent
38f9aad4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!69
Resolve "C API should have `ADM_adhoc_storage_t` and `ADM_pfs_storage_t` types"
Pipeline
#3377
passed
2 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/scord/rpc_handlers.cpp
+5
-6
5 additions, 6 deletions
src/scord/rpc_handlers.cpp
with
5 additions
and
6 deletions
src/scord/rpc_handlers.cpp
+
5
−
6
View file @
eaeafd09
...
@@ -457,16 +457,15 @@ ADM_deploy_adhoc_storage(hg_handle_t h) {
...
@@ -457,16 +457,15 @@ ADM_deploy_adhoc_storage(hg_handle_t h) {
am_result
.
has_value
())
{
am_result
.
has_value
())
{
const
auto
&
storage_info
=
am_result
.
value
();
const
auto
&
storage_info
=
am_result
.
value
();
const
auto
adhoc_storage
=
storage_info
->
adhoc_storage
();
const
auto
adhoc_storage
=
storage_info
->
adhoc_storage
();
ec
=
admire
::
error_code
::
success
;
if
(
adhoc_storage
.
type
()
==
admire
::
storage
::
type
::
gekkofs
)
{
if
(
adhoc_storage
.
type
()
==
admire
::
adhoc_storage
::
type
::
gekkofs
)
{
const
auto
adhoc_ctx
=
const
auto
adhoc_ctx
=
adhoc_storage
.
context
();
(
admire
::
adhoc_storage
::
ctx
*
)
adhoc_storage
.
context
().
get
();
/* Number of nodes */
/* Number of nodes */
const
std
::
string
nodes
=
const
std
::
string
nodes
=
std
::
to_string
(
adhoc_ctx
->
resources
().
nodes
().
size
());
std
::
to_string
(
adhoc_ctx
.
resources
().
nodes
().
size
());
/* Walltime */
/* Walltime */
const
std
::
string
walltime
=
std
::
to_string
(
adhoc_ctx
->
walltime
());
const
std
::
string
walltime
=
std
::
to_string
(
adhoc_ctx
.
walltime
());
/* Launch script */
/* Launch script */
switch
(
const
auto
pid
=
fork
())
{
switch
(
const
auto
pid
=
fork
())
{
...
...
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