Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPIfR-BDG
psrdada_cpp
Commits
e81a6a2d
Commit
e81a6a2d
authored
Jan 26, 2021
by
Jason Wu
Browse files
nthread as int
parent
5f6f24a5
Pipeline
#92229
failed with stages
in 1 minute and 22 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
psrdada_cpp/effelsberg/edd/EDDPolnMerge.hpp
View file @
e81a6a2d
...
...
@@ -12,7 +12,7 @@ namespace edd {
class
EDDPolnMerge
{
public:
EDDPolnMerge
(
std
::
size_t
nsamps_per_heap
,
std
::
size_t
npol
,
std
::
size_
t
nthreads
,
DadaWriteClient
&
writer
);
EDDPolnMerge
(
std
::
size_t
nsamps_per_heap
,
std
::
size_t
npol
,
std
::
in
t
nthreads
,
DadaWriteClient
&
writer
);
~
EDDPolnMerge
();
/**
...
...
@@ -39,7 +39,7 @@ public:
private:
std
::
size_t
_nsamps_per_heap
;
std
::
size_t
_npol
;
std
::
size_
t
_nthreads
;
in
t
_nthreads
;
DadaWriteClient
&
_writer
;
};
...
...
psrdada_cpp/effelsberg/edd/src/EDDPolnMerge.cpp
View file @
e81a6a2d
...
...
@@ -31,7 +31,7 @@ void merge2pol(char const *buf, char *out)
}
}
EDDPolnMerge
::
EDDPolnMerge
(
std
::
size_t
nsamps_per_heap
,
std
::
size_t
npol
,
std
::
size_
t
nthreads
,
DadaWriteClient
&
writer
)
EDDPolnMerge
::
EDDPolnMerge
(
std
::
size_t
nsamps_per_heap
,
std
::
size_t
npol
,
in
t
nthreads
,
DadaWriteClient
&
writer
)
:
_nsamps_per_heap
(
nsamps_per_heap
)
,
_npol
(
npol
)
,
_nthreads
(
nthreads
)
...
...
psrdada_cpp/effelsberg/edd/src/EDDPolnMerge_cli.cpp
View file @
e81a6a2d
...
...
@@ -25,7 +25,7 @@ int main(int argc, char** argv)
key_t
output_key
;
std
::
size_t
npol
;
std
::
size_t
nsamps_per_heap
;
std
::
size_
t
nthreads
;
in
t
nthreads
;
/** Define and parse the program options
*/
namespace
po
=
boost
::
program_options
;
...
...
@@ -52,7 +52,7 @@ int main(int argc, char** argv)
(
"npol,p"
,
po
::
value
<
std
::
size_t
>
(
&
npol
)
->
default_value
(
2
),
"Value of number of pol"
)
(
"nthreads,n"
,
po
::
value
<
std
::
size_
t
>
(
&
nthreads
)
->
default_value
(
2
),
(
"nthreads,n"
,
po
::
value
<
in
t
>
(
&
nthreads
)
->
default_value
(
2
),
"Value of number of threads"
)
(
"nsamps_per_heap,n"
,
po
::
value
<
std
::
size_t
>
(
&
nsamps_per_heap
)
->
default_value
(
4096
),
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment