Felix Kuehling
7a383f9d88
Fix memory leaks due to stale CPU mappings
...
Use the aligned size of the buffer objects for CPU unmapping in
__fmm_release instead of relying on the unaligned size passed in by
the caller.
Change-Id: If986ec24e9a05d32981549fddbf143221fc40bac
2016-02-16 18:12:05 -05:00
Felix Kuehling
6d856ebbff
Fix memory leaks due to stale CPU mappings
...
Use the aligned size of the buffer objects for CPU unmapping in
__fmm_release instead of relying on the unaligned size passed in by
the caller.
Change-Id: If986ec24e9a05d32981549fddbf143221fc40bac
[ROCm/ROCR-Runtime commit: 7a383f9d88 ]
2016-02-16 18:12:05 -05:00
Felix Kuehling
85f9efb1a0
Add support for register/deregister memory for dGPU
...
Allocate SVM address space for the registered memory and use new
userptr support in KFD to create a system memory BO associated with
the given user pointer. Map this BO at the SVM address for CPU
access.
MapMemoryToGPU can be used with the registered user pointer and
will return the SVM address as alternate GPUVA.
Change-Id: I4886e193c51fb6870a567878870c36bf8b5c3748
2016-02-16 18:12:05 -05:00
Felix Kuehling
99325bf7c4
Add support for register/deregister memory for dGPU
...
Allocate SVM address space for the registered memory and use new
userptr support in KFD to create a system memory BO associated with
the given user pointer. Map this BO at the SVM address for CPU
access.
MapMemoryToGPU can be used with the registered user pointer and
will return the SVM address as alternate GPUVA.
Change-Id: I4886e193c51fb6870a567878870c36bf8b5c3748
[ROCm/ROCR-Runtime commit: 85f9efb1a0 ]
2016-02-16 18:12:05 -05:00
Ben Goz
00386734b1
Align gpu-id-array size to multiple of sizeof(uint32_t)
...
Change-Id: I9f46b6a331a8d928ef570b420fb60b99b2edfdd1
Signed-off-by: Ben Goz <ben.goz@amd.com >
2016-02-16 11:27:06 -05:00
Ben Goz
89905c0cd7
Align gpu-id-array size to multiple of sizeof(uint32_t)
...
Change-Id: I9f46b6a331a8d928ef570b420fb60b99b2edfdd1
Signed-off-by: Ben Goz <ben.goz@amd.com >
[ROCm/ROCR-Runtime commit: 00386734b1 ]
2016-02-16 11:27:06 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
bbe0be05d4
Modify MatrixMultiplication sample to use memory pool API
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1237420]
2016-02-16 11:12:25 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
62ea8e12e3
Modify MatrixMultiplication sample to use memory pool API
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1237420]
[ROCm/ROCR-Runtime commit: bbe0be05d4 ]
2016-02-16 11:12:25 -05:00
pensun
31bba31b90
modify to add remove invalid devices numbers
...
[ROCm/clr commit: 7309e9ea6a ]
2016-02-16 10:00:05 -06:00
pensun
7309e9ea6a
modify to add remove invalid devices numbers
2016-02-16 10:00:05 -06:00
pensun
66df1ff930
modify to add remove invalid devices numbers
...
[ROCm/hip commit: 060439b6ab ]
2016-02-16 10:00:05 -06:00
pensun
060439b6ab
modify to add remove invalid devices numbers
2016-02-16 10:00:05 -06:00
pensun
07e4d8261c
Implement to read HIP_VISIBLE_DEVICES to internal global variable
...
[ROCm/clr commit: 45d863851d ]
2016-02-16 07:39:04 -06:00
pensun
45d863851d
Implement to read HIP_VISIBLE_DEVICES to internal global variable
2016-02-16 07:39:04 -06:00
pensun
8c230eab73
Implement to read HIP_VISIBLE_DEVICES to internal global variable
...
[ROCm/hip commit: d40cbef2af ]
2016-02-16 07:39:04 -06:00
pensun
d40cbef2af
Implement to read HIP_VISIBLE_DEVICES to internal global variable
2016-02-16 07:39:04 -06:00
foreman
4032693c05
P4 to Git Change 1237301 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/02/16 03:00:11
...
SWDEV-2 - Change OpenCL version number from 2035 to 2036.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1782 edit
[ROCm/clr commit: a097a6e2ed ]
2016-02-16 03:10:40 -05:00
foreman
a097a6e2ed
P4 to Git Change 1237301 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/02/16 03:00:11
...
SWDEV-2 - Change OpenCL version number from 2035 to 2036.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1782 edit
2016-02-16 03:10:40 -05:00
Ben Sander
0e83efe14d
Add per-stream pool for hsa_signals.
...
[ROCm/clr commit: 5d721a2649 ]
2016-02-16 01:59:13 -06:00
Ben Sander
5d721a2649
Add per-stream pool for hsa_signals.
2016-02-16 01:59:13 -06:00
Ben Sander
512163b889
Add per-stream pool for hsa_signals.
...
[ROCm/hip commit: caef9b5ced ]
2016-02-16 01:59:13 -06:00
Ben Sander
caef9b5ced
Add per-stream pool for hsa_signals.
2016-02-16 01:59:13 -06:00
Ben Sander
d0b29d9192
Add comments to tests
...
[ROCm/clr commit: 731a2a58d3 ]
2016-02-16 01:58:24 -06:00
Ben Sander
731a2a58d3
Add comments to tests
2016-02-16 01:58:24 -06:00
Ben Sander
787078f0b3
Add comments to tests
...
[ROCm/hip commit: fb883d9d03 ]
2016-02-16 01:58:24 -06:00
Ben Sander
fb883d9d03
Add comments to tests
2016-02-16 01:58:24 -06:00
Ben Sander
f8f40e07bf
Update before checkin to HCC.
...
Add support for USE_AM_TRACKER=2 (HCC version).
Add AM_ALLOC, AM_FREE indirection to ease swapping AM implementations.
[ROCm/clr commit: 1ed431c0f6 ]
2016-02-15 21:16:00 -06:00
Ben Sander
1ed431c0f6
Update before checkin to HCC.
...
Add support for USE_AM_TRACKER=2 (HCC version).
Add AM_ALLOC, AM_FREE indirection to ease swapping AM implementations.
2016-02-15 21:16:00 -06:00
Ben Sander
9ab5b92173
Update before checkin to HCC.
...
Add support for USE_AM_TRACKER=2 (HCC version).
Add AM_ALLOC, AM_FREE indirection to ease swapping AM implementations.
[ROCm/hip commit: 38c735fd1d ]
2016-02-15 21:16:00 -06:00
Ben Sander
38c735fd1d
Update before checkin to HCC.
...
Add support for USE_AM_TRACKER=2 (HCC version).
Add AM_ALLOC, AM_FREE indirection to ease swapping AM implementations.
2016-02-15 21:16:00 -06:00
Besar Wicaksono (xN/A) TX [TEXT]
c494af9d49
Add sample application to use the new memory pool API.
...
Details:
- add HsaGetInfo program that prints out all available CPU, GPU and their respective memory pools.
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1237219]
2016-02-15 18:11:44 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
f166016d8a
Add sample application to use the new memory pool API.
...
Details:
- add HsaGetInfo program that prints out all available CPU, GPU and their respective memory pools.
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1237219]
[ROCm/ROCR-Runtime commit: c494af9d49 ]
2016-02-15 18:11:44 -05:00
Ben Sander
93c07bc3d1
Move warpSize to header, have shuffles use default warpsize.
...
[ROCm/clr commit: bd7e3b83b9 ]
2016-02-15 05:41:09 -06:00
Ben Sander
bd7e3b83b9
Move warpSize to header, have shuffles use default warpsize.
2016-02-15 05:41:09 -06:00
Ben Sander
d58eab1706
Move warpSize to header, have shuffles use default warpsize.
...
[ROCm/hip commit: db3a63360b ]
2016-02-15 05:41:09 -06:00
Ben Sander
db3a63360b
Move warpSize to header, have shuffles use default warpsize.
2016-02-15 05:41:09 -06:00
Ben Sander
dc6f0ef3a6
Remove old include path.
...
[ROCm/clr commit: 3b2d4acabc ]
2016-02-15 05:40:37 -06:00
Ben Sander
3b2d4acabc
Remove old include path.
2016-02-15 05:40:37 -06:00
Ben Sander
79a99f48f9
Remove old include path.
...
[ROCm/hip commit: 57274850f9 ]
2016-02-15 05:40:37 -06:00
Ben Sander
57274850f9
Remove old include path.
2016-02-15 05:40:37 -06:00
Ben Sander
84810268c0
Update docs, cleanup
...
[ROCm/clr commit: 322a3bd9b2 ]
2016-02-15 05:40:12 -06:00
Ben Sander
322a3bd9b2
Update docs, cleanup
2016-02-15 05:40:12 -06:00
Ben Sander
b97e430921
Update docs, cleanup
...
[ROCm/hip commit: 4637e19da4 ]
2016-02-15 05:40:12 -06:00
Ben Sander
4637e19da4
Update docs, cleanup
2016-02-15 05:40:12 -06:00
Ben Sander
7e46e90591
Fix tests to account for multi-gpu
...
[ROCm/clr commit: afbe451b0d ]
2016-02-15 05:19:52 -06:00
Ben Sander
afbe451b0d
Fix tests to account for multi-gpu
2016-02-15 05:19:52 -06:00
Ben Sander
9ccdbdca71
Fix tests to account for multi-gpu
...
[ROCm/hip commit: 3ecd1b1539 ]
2016-02-15 05:19:52 -06:00
Ben Sander
3ecd1b1539
Fix tests to account for multi-gpu
2016-02-15 05:19:52 -06:00
Evgeny Mankov
d2a67588d0
Formatting, no functional changes.
...
[ROCm/hip-tests commit: 12fcf1d0ff ]
2016-02-15 13:16:05 +03:00
Evgeny Mankov
12fcf1d0ff
Formatting, no functional changes.
2016-02-15 13:16:05 +03:00