Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oleksii Turkot
CrystFEL
Commits
3cd69bcd
Commit
3cd69bcd
authored
May 22, 2012
by
Thomas White
Browse files
indexamajig: Remove NUMA options (no longer needed)
parent
9af9d74f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/indexamajig.c
View file @
3cd69bcd
...
...
@@ -242,13 +242,6 @@ static void show_help(const char *s)
" least 10%% of the located peaks.
\n
"
" --no-bg-sub Don't subtract local background estimates from
\n
"
" integrated intensities.
\n
"
"
\n
"
"
\n
You can tune the CPU affinities for enhanced performance on NUMA machines:
\n
"
"
\n
"
" --cpus=<n> Specify number of CPUs. This is NOT the same as
\n
"
" giving the number of analyses to run in parallel.
\n
"
" --cpugroup=<n> Batch threads in groups of this size.
\n
"
" --cpuoffset=<n> Start using CPUs at this group number.
\n
"
);
}
...
...
@@ -558,9 +551,6 @@ int main(int argc, char *argv[])
char
*
element
=
NULL
;
double
nominal_photon_energy
;
int
stream_flags
=
STREAM_INTEGRATED
;
int
cpu_num
=
0
;
int
cpu_groupsize
=
1
;
int
cpu_offset
=
0
;
char
*
endptr
;
char
*
hdf5_peak_path
=
NULL
;
struct
copy_hdf5_field
*
copyme
;
...
...
@@ -690,39 +680,10 @@ int main(int argc, char *argv[])
break
;
case
6
:
cpu_num
=
strtol
(
optarg
,
&
endptr
,
10
);
if
(
!
(
(
optarg
[
0
]
!=
'\0'
)
&&
(
endptr
[
0
]
==
'\0'
)
)
)
{
ERROR
(
"Invalid number of CPUs ('%s')
\n
"
,
optarg
);
return
1
;
}
break
;
case
7
:
cpu_groupsize
=
strtol
(
optarg
,
&
endptr
,
10
);
if
(
!
(
(
optarg
[
0
]
!=
'\0'
)
&&
(
endptr
[
0
]
==
'\0'
)
)
)
{
ERROR
(
"Invalid CPU group size ('%s')
\n
"
,
optarg
);
return
1
;
}
if
(
cpu_groupsize
<
1
)
{
ERROR
(
"CPU group size cannot be"
" less than 1.
\n
"
);
return
1
;
}
break
;
case
8
:
cpu_offset
=
strtol
(
optarg
,
&
endptr
,
10
);
if
(
!
(
(
optarg
[
0
]
!=
'\0'
)
&&
(
endptr
[
0
]
==
'\0'
)
)
)
{
ERROR
(
"Invalid CPU offset ('%s')
\n
"
,
optarg
);
return
1
;
}
if
(
cpu_offset
<
0
)
{
ERROR
(
"CPU offset must be positive.
\n
"
);
return
1
;
}
ERROR
(
"The options --cpus, --cpugroup and --cpuoffset"
" are no longer used by indexamajig.
\n
"
);
break
;
case
9
:
...
...
@@ -759,12 +720,6 @@ int main(int argc, char *argv[])
}
if
(
(
cpu_num
>
0
)
&&
(
cpu_num
%
cpu_groupsize
!=
0
)
)
{
ERROR
(
"Number of CPUs must be divisible by"
" the CPU group size.
\n
"
);
return
1
;
}
if
(
filename
==
NULL
)
{
filename
=
strdup
(
"-"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment