Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
rocm_bandwidth_test
Commits
d1ac47c6
Unverified
Commit
d1ac47c6
authored
Oct 07, 2019
by
Ramesh Errabolu
Committed by
GitHub
Oct 07, 2019
Browse files
Merge pull request #51 from RadeonOpenCompute/fixSuseBldError
Fix build error on SUSE Linux distribution
parents
6a418db7
f55f1cb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
rocm_bandwidth_test.cpp
rocm_bandwidth_test.cpp
+4
-1
rocm_bandwidth_test.hpp
rocm_bandwidth_test.hpp
+1
-1
No files found.
rocm_bandwidth_test.cpp
View file @
d1ac47c6
...
@@ -52,6 +52,9 @@
...
@@ -52,6 +52,9 @@
#include <sstream>
#include <sstream>
#include <limits>
#include <limits>
// Initialize the variable used to capture validation failure
const
double
RocmBandwidthTest
::
VALIDATE_COPY_OP_FAILURE
=
std
::
numeric_limits
<
double
>::
max
();
// The values are in megabytes at allocation time
// The values are in megabytes at allocation time
const
size_t
RocmBandwidthTest
::
SIZE_LIST
[]
=
{
1
*
1024
,
const
size_t
RocmBandwidthTest
::
SIZE_LIST
[]
=
{
1
*
1024
,
2
*
1024
,
4
*
1024
,
8
*
1024
,
2
*
1024
,
4
*
1024
,
8
*
1024
,
...
@@ -793,7 +796,7 @@ RocmBandwidthTest::RocmBandwidthTest(int argc, char** argv) : BaseTest() {
...
@@ -793,7 +796,7 @@ RocmBandwidthTest::RocmBandwidthTest(int argc, char** argv) : BaseTest() {
// Initialize version of the test
// Initialize version of the test
version_
.
major_id
=
2
;
version_
.
major_id
=
2
;
version_
.
minor_id
=
3
;
version_
.
minor_id
=
3
;
version_
.
step_id
=
6
;
version_
.
step_id
=
7
;
version_
.
reserved
=
0
;
version_
.
reserved
=
0
;
bw_iter_cnt_
=
getenv
(
"ROCM_BW_ITER_CNT"
);
bw_iter_cnt_
=
getenv
(
"ROCM_BW_ITER_CNT"
);
...
...
rocm_bandwidth_test.hpp
View file @
d1ac47c6
...
@@ -474,7 +474,7 @@ class RocmBandwidthTest : public BaseTest {
...
@@ -474,7 +474,7 @@ class RocmBandwidthTest : public BaseTest {
static
const
uint32_t
LINK_PROP_ACCESS
=
0x03
;
static
const
uint32_t
LINK_PROP_ACCESS
=
0x03
;
// Encodes validation failure
// Encodes validation failure
static
const
double
VALIDATE_COPY_OP_FAILURE
=
0xFFFFFFFF
.
FFFFFFFFp0
;
static
const
double
VALIDATE_COPY_OP_FAILURE
;
// List used to store transactions per user request
// List used to store transactions per user request
vector
<
async_trans_t
>
trans_list_
;
vector
<
async_trans_t
>
trans_list_
;
...
...
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