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
c7ec176d
Commit
c7ec176d
authored
20 years ago
by
phung4
Browse files
Options
Downloads
Patches
Plain Diff
moved pa_node structs to partition_allocator.h
parent
dea89cd6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/partition_allocator/graph_structs.h
+0
-29
0 additions, 29 deletions
src/partition_allocator/graph_structs.h
src/partition_allocator/partition_allocator.h
+29
-0
29 additions, 0 deletions
src/partition_allocator/partition_allocator.h
with
29 additions
and
29 deletions
src/partition_allocator/graph_structs.h
+
0
−
29
View file @
c7ec176d
...
...
@@ -211,35 +211,6 @@ typedef struct partition
}
partition_t
;
struct
pa_request
;
typedef
struct
pa_request
{
int
*
geometry
;
int
size
;
int
conn_type
;
bool
rotate
;
bool
elongate
;
bool
force_contig
;
}
pa_request_t
;
/**
* pa_node: node within the allocation system. Note that this node is
* hard coded for 1d-3d only! (just have the higher order dims as
* null if you want lower dimensions).
*/
typedef
struct
pa_node
{
/* set if using this node in a partition*/
bool
used
;
/* coordinates */
int
coord
[
PA_SYSTEM_DIMENSIONS
];
/* shallow copy of the conf_results. initialized and used as
* array of Lists accessed by dimension, ie conf_result_list[dim]
*/
List
*
conf_result_list
;
}
pa_node_t
;
/** creator/destructor fxns */
/** */
...
...
This diff is collapsed.
Click to expand it.
src/partition_allocator/partition_allocator.h
+
29
−
0
View file @
c7ec176d
...
...
@@ -42,6 +42,35 @@
extern
bool
_initialized
;
struct
pa_request
;
typedef
struct
pa_request
{
int
*
geometry
;
int
size
;
int
conn_type
;
bool
rotate
;
bool
elongate
;
bool
force_contig
;
}
pa_request_t
;
/**
* pa_node: node within the allocation system. Note that this node is
* hard coded for 1d-3d only! (just have the higher order dims as
* null if you want lower dimensions).
*/
typedef
struct
pa_node
{
/* set if using this node in a partition*/
bool
used
;
/* coordinates */
int
coord
[
PA_SYSTEM_DIMENSIONS
];
/* shallow copy of the conf_results. initialized and used as
* array of Lists accessed by dimension, ie conf_result_list[dim]
*/
List
*
conf_result_list
;
}
pa_node_t
;
/**
* create a partition request. Note that if the geometry is given,
* then size is ignored. If elongate is true, the algorithm will try
...
...
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