Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CrystFEL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Oleksii Turkot
CrystFEL
Commits
3cd69bcd
Commit
3cd69bcd
authored
12 years ago
by
Thomas White
Browse files
Options
Downloads
Patches
Plain Diff
indexamajig: Remove NUMA options (no longer needed)
parent
9af9d74f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/indexamajig.c
+2
-47
2 additions, 47 deletions
src/indexamajig.c
with
2 additions
and
47 deletions
src/indexamajig.c
+
2
−
47
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
(
"-"
);
}
...
...
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