Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPIfR-BDG
psrdada_cpp
Commits
42b8b9d7
Commit
42b8b9d7
authored
Nov 17, 2020
by
Tobias Winchen
Browse files
Disabled empty paf test shell
parent
dd471bda
Pipeline
#86823
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
psrdada_cpp/effelsberg/paf/test/src/UnpackerTester.cu
View file @
42b8b9d7
...
@@ -60,24 +60,24 @@ void UnpackerTester::compare_against_host(
...
@@ -60,24 +60,24 @@ void UnpackerTester::compare_against_host(
}
}
}
}
TEST_F
(
UnpackerTester
,
paf_unpack_test
)
//
TEST_F(UnpackerTester, paf_unpack_test)
{
//
{
std
::
size_t
n
=
1024
*
3
;
//
std::size_t n = 1024 * 3;
std
::
default_random_engine
generator
;
//
std::default_random_engine generator;
std
::
uniform_int_distribution
<
int
>
distribution
(
1
,
1
<<
31
);
//
std::uniform_int_distribution<int> distribution(1,1<<31);
InputType
host_input
(
n
);
//
InputType host_input(n);
for
(
size_t
ii
=
0
;
ii
<
n
;
++
ii
)
//
for (size_t ii = 0; ii < n; ++ii)
{
//
{
host_input
[
ii
]
=
distribution
(
generator
);
//
host_input[ii] = distribution(generator);
}
//
}
Unpacker
::
InputType
gpu_input
=
host_input
;
//
Unpacker::InputType gpu_input = host_input;
Unpacker
::
OutputType
gpu_output
;
//
Unpacker::OutputType gpu_output;
OutputType
host_output
;
//
OutputType host_output
.resize(n)
;
Unpacker
unpacker
(
_stream
);
//
Unpacker unpacker(_stream);
unpacker
.
unpack
(
gpu_input
,
gpu_output
);
//
unpacker.unpack(gpu_input, gpu_output);
unpacker_c_reference
(
host_input
,
host_output
);
//
unpacker_c_reference(host_input, host_output);
compare_against_host
(
gpu_output
,
host_output
);
//
compare_against_host(gpu_output, host_output);
}
//
}
}
//namespace test
}
//namespace test
...
...
Write
Preview
Markdown
is supported
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