Commit Graph

41017 Commits

Author SHA1 Message Date
pensun 43785243a5 Implementation of HIP_VISIBLE_DEVICES in runtime 2016-02-17 06:59:18 -06:00
pensun c1e120fb1b Implementation of HIP_VISIBLE_DEVICES in runtime 2016-02-17 06:59:18 -06:00
foreman d1b2399af8 P4 to Git Change 1237747 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/02/17 03:00:10
SWDEV-2 - Change OpenCL version number from 2036 to 2037.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1783 edit
2016-02-17 03:06:09 -05:00
Ben Sander 0cdbe1ff05 more work on async copies 2016-02-17 00:59:12 -06:00
Ben Sander 59379ffb44 more work on async copies 2016-02-17 00:59:12 -06:00
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 7309e9ea6a modify to add remove invalid devices numbers 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 45d863851d Implement to read HIP_VISIBLE_DEVICES to internal global variable 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 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 5d721a2649 Add per-stream pool for hsa_signals. 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 731a2a58d3 Add comments to tests 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 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 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 bd7e3b83b9 Move warpSize to header, have shuffles use default warpsize. 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 3b2d4acabc Remove old include path. 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 322a3bd9b2 Update docs, cleanup 2016-02-15 05:40:12 -06:00
Ben Sander 4637e19da4 Update docs, cleanup 2016-02-15 05:40:12 -06:00
Ben Sander afbe451b0d Fix tests to account for multi-gpu 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 12fcf1d0ff Formatting, no functional changes. 2016-02-15 13:16:05 +03:00
Evgeny Mankov 763aa5ea5a Formatting, no functional changes. 2016-02-15 13:16:05 +03:00
Evgeny Mankov 072d649d8d Formatting, no functional changes. 2016-02-15 13:16:05 +03:00
Ben Sander 8939b4f0e5 Add multi-threading synchonization on staging buffers and signals.
Also pre-allocate a couple signals for copies.
2016-02-13 03:18:01 -06:00
Ben Sander 6420655dc8 Add multi-threading synchonization on staging buffers and signals.
Also pre-allocate a couple signals for copies.
2016-02-13 03:18:01 -06:00
Ben Sander f12a1e9581 Enable -O3, style points on array size 2016-02-13 03:17:42 -06:00
Ben Sander 56b3d2e7c4 Enable -O3, style points on array size 2016-02-13 03:17:42 -06:00
Ben Sander 928996fec7 Enable -O3, style points on array size 2016-02-13 03:17:42 -06:00
foreman 4ae7b701de P4 to Git Change 1236970 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/02/13 03:00:12
SWDEV-2 - Change OpenCL version number from 2034 to 2035.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1781 edit
2016-02-13 03:09:10 -05:00
Ben Sander a002833a89 D2H multi-buffer 2016-02-13 01:15:23 -06:00
Ben Sander b314777bc1 D2H multi-buffer 2016-02-13 01:15:23 -06:00
Ben Sander b5743abae2 Result formatting 2016-02-13 01:14:01 -06:00
Ben Sander 8e3dd664eb Result formatting 2016-02-13 01:14:01 -06:00
Ben Sander c3720c19a8 Result formatting 2016-02-13 01:14:01 -06:00
Ben Sander 63d79554ab Add D2H test 2016-02-12 22:47:26 -06:00
Ben Sander 1cd35f6371 Add D2H test 2016-02-12 22:47:26 -06:00