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
one
TransferBench
Commits
6771015c
Unverified
Commit
6771015c
authored
Sep 20, 2022
by
gilbertlee-amd
Committed by
GitHub
Sep 20, 2022
Browse files
Fixing bug with non-default cpu memory types (#5)
Co-authored-by:
Gilbert Lee
<
gilbertlee-amd@github.com
>
parent
be0db711
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
CHANGELOG.md
CHANGELOG.md
+4
-0
EnvVars.hpp
EnvVars.hpp
+1
-1
TransferBench.cpp
TransferBench.cpp
+1
-1
No files found.
CHANGELOG.md
View file @
6771015c
# Changelog for TransferBench
## v1.07
### Changed
-
Fix bug with allocations involving non-default CPU memory types
## v1.06
### Added
-
Added unpinned CPU memory type ('U'). May require HSA_XNACK=1 in order to access via GPU executors
...
...
EnvVars.hpp
View file @
6771015c
...
...
@@ -26,7 +26,7 @@ THE SOFTWARE.
#include <algorithm>
#include <random>
#include <time.h>
#define TB_VERSION "1.0
6
"
#define TB_VERSION "1.0
7
"
extern
char
const
MemTypeStr
[];
...
...
TransferBench.cpp
View file @
6771015c
...
...
@@ -546,7 +546,7 @@ int RemappedIndex(int const origIdx, MemType const memType)
static
std
::
vector
<
int
>
remapping
;
// No need to re-map CPU devices
if
(
memType
==
MEM_CPU
)
return
origIdx
;
if
(
IsCpuType
(
memType
)
)
return
origIdx
;
// Build remapping on first use
if
(
remapping
.
empty
())
...
...
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