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
643e24fb
Commit
643e24fb
authored
20 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
smap will read in the size from db2 is it is there.
parent
7bcdbfb8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/smap/partition_functions.c
+0
-14
0 additions, 14 deletions
src/smap/partition_functions.c
src/smap/smap.c
+26
-4
26 additions, 4 deletions
src/smap/smap.c
src/smap/smap.h
+20
-0
20 additions, 0 deletions
src/smap/smap.h
with
46 additions
and
18 deletions
src/smap/partition_functions.c
+
0
−
14
View file @
643e24fb
...
...
@@ -35,20 +35,6 @@
#define _DEBUG 0
#ifdef HAVE_BGL_FILES
# include "rm_api.h"
#else
typedef
char
*
pm_partition_id_t
;
typedef
int
rm_connection_type_t
;
typedef
int
rm_partition_mode_t
;
typedef
uint16_t
rm_partition_t
;
typedef
char
*
rm_BGL_t
;
typedef
char
*
rm_component_id_t
;
typedef
rm_component_id_t
rm_bp_id_t
;
typedef
int
rm_BP_state_t
;
typedef
int
status_t
;
#endif
typedef
struct
{
char
*
bgl_block_name
;
char
*
nodes
;
...
...
This diff is collapsed.
Click to expand it.
src/smap/smap.c
+
26
−
4
View file @
643e24fb
...
...
@@ -45,14 +45,14 @@ void *_resize_handler(int sig);
int
main
(
int
argc
,
char
*
argv
[])
{
log_options_t
opts
=
LOG_OPTS_STDERR_ONLY
;
node_info_msg_t
*
node_info_ptr
;
node_info_msg_t
*
node_info_ptr
=
NULL
;
int
error_code
;
int
height
=
40
;
int
width
=
100
;
int
startx
=
0
;
int
starty
=
0
;
int
end
=
0
;
int
i
;
int
i
,
rc
;
//char *name;
...
...
@@ -61,8 +61,30 @@ int main(int argc, char *argv[])
#ifdef HAVE_BGL
error_code
=
slurm_load_node
((
time_t
)
NULL
,
&
node_info_ptr
,
0
);
if
(
error_code
)
{
node_info_ptr
=
NULL
;
slurm_perror
(
"slurm_load_node"
);
#ifdef HAVE_BGL_FILES
rm_size3D_t
bp_size
;
if
((
rc
=
rm_set_serial
(
"BGL"
))
!=
STATUS_OK
)
{
fatal
(
"init_bgl: rm_set_serial(): %s"
,
bgl_err_str
(
rc
));
return
SLURM_ERROR
;
}
if
((
rc
=
rm_get_BGL
(
&
bgl
))
!=
STATUS_OK
)
{
fatal
(
"init_bgl: rm_get_BGL(): %s"
,
bgl_err_str
(
rc
));
return
SLURM_ERROR
;
}
if
((
rc
=
rm_get_data
(
bgl
,
RM_Msize
,
&
bp_size
))
!=
STATUS_OK
)
{
fatal
(
"init_bgl: rm_get_data(): %s"
,
bgl_err_str
(
rc
));
return
SLURM_ERROR
;
}
verbose
(
"BlueGene configured with %d x %d x %d base partitions"
,
bp_size
.
X
,
bp_size
.
Y
,
bp_size
.
Z
);
DIM_SIZE
[
X
]
=
bp_size
.
X
;
DIM_SIZE
[
Y
]
=
bp_size
.
Y
;
DIM_SIZE
[
Z
]
=
bp_size
.
Z
;
slurm_rm_free_BGL
(
bgl
);
#endif
//slurm_perror("slurm_load_node");
pa_init
(
NULL
);
}
else
{
pa_init
(
node_info_ptr
);
...
...
This diff is collapsed.
Click to expand it.
src/smap/smap.h
+
20
−
0
View file @
643e24fb
...
...
@@ -56,6 +56,21 @@
# include "src/common/getopt.h"
#endif
#ifdef HAVE_BGL_FILES
# include "rm_api.h"
#else
typedef
char
*
pm_partition_id_t
;
typedef
int
rm_connection_type_t
;
typedef
int
rm_partition_mode_t
;
typedef
uint16_t
rm_partition_t
;
typedef
char
*
rm_BGL_t
;
typedef
char
*
rm_component_id_t
;
typedef
rm_component_id_t
rm_bp_id_t
;
typedef
int
rm_BP_state_t
;
typedef
int
status_t
;
#endif
#include
"src/common/macros.h"
#include
<slurm/slurm.h>
...
...
@@ -96,6 +111,11 @@ typedef struct {
extern
smap_parameters_t
params
;
extern
int
DIM_SIZE
[
PA_SYSTEM_DIMENSIONS
];
#ifdef HAVE_BGL_FILES
rm_BGL_t
*
bgl
;
#endif
void
parse_command_line
(
int
argc
,
char
*
argv
[]);
extern
pa_system_t
*
pa_system_ptr
;
...
...
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