Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
56d1629e
Commit
56d1629e
authored
8 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Add back function
Commit
5e18d666
was incomplete, missing a function and not buildable.
parent
09afe7a3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/burst_buffer/cray/burst_buffer_cray.c
+16
-0
16 additions, 0 deletions
src/plugins/burst_buffer/cray/burst_buffer_cray.c
with
16 additions
and
0 deletions
src/plugins/burst_buffer/cray/burst_buffer_cray.c
+
16
−
0
View file @
56d1629e
...
@@ -213,6 +213,7 @@ static bb_pools_t *_bb_get_pools(int *num_ent, bb_state_t *state_ptr,
...
@@ -213,6 +213,7 @@ static bb_pools_t *_bb_get_pools(int *num_ent, bb_state_t *state_ptr,
uint32_t
timeout
);
uint32_t
timeout
);
static
bb_sessions_t
*
_bb_get_sessions
(
int
*
num_ent
,
bb_state_t
*
state_ptr
,
static
bb_sessions_t
*
_bb_get_sessions
(
int
*
num_ent
,
bb_state_t
*
state_ptr
,
uint32_t
timeout
);
uint32_t
timeout
);
static
int
_build_bb_script
(
struct
job_record
*
job_ptr
,
char
*
script_file
);
static
int
_create_bufs
(
struct
job_record
*
job_ptr
,
bb_job_t
*
bb_job
,
static
int
_create_bufs
(
struct
job_record
*
job_ptr
,
bb_job_t
*
bb_job
,
bool
job_ready
);
bool
job_ready
);
static
void
*
_create_persistent
(
void
*
x
);
static
void
*
_create_persistent
(
void
*
x
);
...
@@ -2730,6 +2731,21 @@ fini: xfree(access);
...
@@ -2730,6 +2731,21 @@ fini: xfree(access);
return
rc
;
return
rc
;
}
}
/* For interactive jobs, build a script containing the relevant DataWarp
* commands, as needed by the Cray API */
static
int
_build_bb_script
(
struct
job_record
*
job_ptr
,
char
*
script_file
)
{
char
*
out_buf
=
NULL
;
int
rc
;
xstrcat
(
out_buf
,
"#!/bin/bash
\n
"
);
xstrcat
(
out_buf
,
job_ptr
->
burst_buffer
);
rc
=
_write_file
(
script_file
,
out_buf
);
xfree
(
out_buf
);
return
rc
;
}
/*
/*
* init() is called when the plugin is loaded, before any other functions
* init() is called when the plugin is loaded, before any other functions
* are called. Read and validate configuration file here. Spawn thread to
* are called. Read and validate configuration file here. Spawn thread to
...
...
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