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
f23f6ccc
Commit
f23f6ccc
authored
13 years ago
by
Morris Jette
Browse files
Options
Downloads
Plain Diff
Merge branch 'slurm-2.3'
parents
304cccb6
47aebf2c
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
testsuite/expect/test1.90.prog.c
+11
-10
11 additions, 10 deletions
testsuite/expect/test1.90.prog.c
with
11 additions
and
10 deletions
testsuite/expect/test1.90.prog.c
+
11
−
10
View file @
f23f6ccc
...
...
@@ -31,16 +31,17 @@
#include
<stdio.h>
#include
<stdlib.h>
/* For RedHat systems, run with NEW_TOOLS=0
* For current Ubuntu, run wtih NEW_TOOLS=1 */
#define NEW_TOOLS 0
#if NEW_TOOLS
#define MY_MASK struct bitmask *
#define MY_TEST numa_bitmask_isbitset
/* For RedHat systems, LIBNUMA_API_VERSION is undefined
* For current Ubuntu, LIBNUMA_API_VERSION=2 */
#ifndef LIBNUMA_API_VERSION
# define LIBNUMA_API_VERSION 1
#endif
#if (LIBNUMA_API_VERSION > 1)
# define MY_MASK struct bitmask *
# define MY_TEST numa_bitmask_isbitset
#else
#define MY_MASK nodemask_t
#define MY_TEST nodemask_isset
#
define MY_MASK nodemask_t
#
define MY_TEST nodemask_isset
#endif
static
void
_load_cpu_mask
(
MY_MASK
*
cpu_mask
)
...
...
@@ -58,7 +59,7 @@ static unsigned long _mask_to_int(MY_MASK *mask)
int
i
;
unsigned
long
rc
=
0
;
for
(
i
=
0
;
i
<
NUMA_NUM_NODES
;
i
++
)
{
#if
NEW_TOOLS
#if
(LIBNUMA_API_VERSION > 1)
if
(
MY_TEST
(
*
mask
,
i
))
#else
if
(
MY_TEST
(
mask
,
i
))
...
...
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