Wykres commitów

3648 Commity

Autor SHA1 Wiadomość Data
Ben Sander 44f40e171a USE_AM_TRACKER=0 works 2016-02-17 21:23:36 -06:00
Ben Sander dffe573d49 Tweak full formatting 2016-02-17 21:22:31 -06:00
Ben Sander f466b291d8 Support HSA_PATH env, async path tweak 2016-02-17 21:22:07 -06:00
dfukalov a0720fe79a Adding lit tests 2016-02-17 19:05:18 +03:00
atimofee 434c070ea7 Hipify tool in it current state 2016-02-17 18:34:58 +03:00
pensun 8aa4bfce57 1. Bug fix
2. passed initial tests on different sets of
HIP_VISIBLE_DEVICES: (0),(1),(0,1),(1,2),(2,3),(1,2,3),(2,3,4),(1,5,2,3)
and achieved expected choice of GPU devices at the runtime.
3. Passed HIP test suite.
2016-02-17 09:32:50 -06:00
pensun c1e120fb1b Implementation of HIP_VISIBLE_DEVICES in runtime 2016-02-17 06:59:18 -06:00
Ben Sander 59379ffb44 more work on async copies 2016-02-17 00:59:12 -06:00
pensun 060439b6ab modify to add remove invalid devices numbers 2016-02-16 10:00:05 -06:00
pensun d40cbef2af Implement to read HIP_VISIBLE_DEVICES to internal global variable 2016-02-16 07:39:04 -06:00
Ben Sander caef9b5ced Add per-stream pool for hsa_signals. 2016-02-16 01:59:13 -06:00
Ben Sander fb883d9d03 Add comments to tests 2016-02-16 01:58:24 -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
Ben Sander db3a63360b Move warpSize to header, have shuffles use default warpsize. 2016-02-15 05:41:09 -06:00
Ben Sander 57274850f9 Remove old include path. 2016-02-15 05:40:37 -06:00
Ben Sander 4637e19da4 Update docs, cleanup 2016-02-15 05:40:12 -06:00
Ben Sander 3ecd1b1539 Fix tests to account for multi-gpu 2016-02-15 05:19:52 -06:00
Evgeny Mankov 072d649d8d Formatting, no functional changes. 2016-02-15 13:16:05 +03: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 928996fec7 Enable -O3, style points on array size 2016-02-13 03:17:42 -06:00
Ben Sander b314777bc1 D2H multi-buffer 2016-02-13 01:15:23 -06:00
Ben Sander c3720c19a8 Result formatting 2016-02-13 01:14:01 -06:00
Ben Sander bcb5953d6e Add D2H test 2016-02-12 22:47:26 -06:00
Ben Sander 559db057d5 Add D2H test 2016-02-12 22:46:34 -06:00
Ben Sander f3fd6476eb Add Bus Bandwidth test, leveraged from SHOC. 2016-02-12 21:30:43 -06:00
Ben Sander 1bfd3cdbd0 Improve copy testing 2016-02-12 18:24:08 -06:00
Ben Sander 134d7975ce Improve copy testing implementation.
- add tests for (unpinned/pinned) x H2H x D2D.
- Free memory at end of test.
2016-02-12 18:24:08 -06:00
Ben Sander 24c1fdb864 Step1 in staging buffer copy.
- use StagingBuffer class for copies.
- refactor g_device to use array rather than vector.
   (keeps pointers from moving).
2016-02-12 18:24:08 -06:00
Ben Sander d7396b5af3 Query tracked memory sizes.
Support more accurate hipMemGetInfo.  Add test to hipPointerAttrib.
2016-02-12 18:24:08 -06:00
Ben Sander 0370cd1cfc Remove ! USE_PINNED_HOST support 2016-02-12 18:24:08 -06:00
Ben Sander 00fd172c64 Use memtracker 'appID' to store deviceID associated with ptr 2016-02-12 18:24:08 -06:00
Ben Sander de45e2291e Tracker improvements
- add API to add / remove user-pointers from the tracker.
- test for thread-safety with MultiThreadtest_2 - rapid
  insertions/removal.
- add mutex to provide thread-safety.
- rename tracker interface to "memtracker_..." for consistency.
- add am_memtracker_reset, connect to hipDeviceReset.
-
2016-02-12 18:24:08 -06:00
Ben Sander 4ee2a5229b Create address tracker for am_alloc.
Tracks device where memory is allocated, pinned-host or device, and
more.

Uses memory-range-based lookups - so pointers that exist anywhere in

the range of hostPtr + size will find the associated AmPointerInfo.

The insertions and lookups use a self-balancing binary tree and
should support O(logN) lookup speed.
2016-02-12 18:24:08 -06:00
Ben Sander e483eea85b Fix bug in device bounds comparison.
Shows up in multi-GPU.
2016-02-12 18:24:08 -06:00
Maneesh Gupta 447201a6a0 Documented supported fastmath functions 2016-02-12 14:21:58 +05:30
Maneesh Gupta 2c01480131 Updated integer intrinsics documentation 2016-02-12 13:58:35 +05:30
Evgeny Mankov ea8f99702d Fix typo: maxThreadsPerMultiProcessor -> MaxSharedMemoryPerMultiprocessor
Device property MaxSharedMemoryPerMultiprocessor set equal to totalGlobalMem (HIP path).
Reason: MaxSharedMemoryPerMultiprocessor should be as the same as group memory size. Group memory will not be paged out, so, the physical memory size = total shared memory size = group region size. NVCC path remains untouched: CUDA's device property MaxSharedMemoryPerMultiprocessor is reported.

hipify is updated as well.
2016-02-12 01:29:20 +03:00
Evgeny Mankov 9f05a52c74 Device property maxThreadsPerMultiProcessor set equal to totalGlobalMem (HIP path).
Reason: maxThreadsPerMultiProcessor should be as the same as group memory size. Group memory will not be paged out, so, the physical memory size = total shared memory size = group region size.

NVCC path remains untouched: CUDA's device property maxThreadsPerMultiProcessor is reported.
2016-02-12 00:04:14 +03:00
Evgeny Mankov 33f60c300d BDFID (BusID/DeviceID/FunctionID) support.
Except FunctionID (or DomainID in CUDA) support, because cudaDeviceProp::pciDomainID is not reported by CUDA.
2016-02-11 22:26:01 +03:00
sunway513 1a8bd21eb6 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging 2016-02-11 22:22:47 +05:30
sunway513 d15f22113f Add reminder to keep ROCR runtime on the system library path 2016-02-11 22:22:00 +05:30
dfukalov dca4a70bb7 adding ability to build in llvm source tree, updated README 2016-02-11 15:27:00 +03:00
Maneesh Gupta a87c7988e8 Updated readme for test 2016-02-11 13:06:58 +05:30
dfukalov 5f224280ce Initial version of CLANG based HIPIFY tool for CUDA -> HIP sources conversion 2016-02-10 20:20:11 +03:00
Ben Sander 09fe3cc7d4 Initial commit 2016-02-10 09:29:29 -06:00
Evgeny Mankov 12d9d9be82 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging 2016-02-10 17:21:53 +03:00
Evgeny Mankov 254da4ec53 Formatting, no functional changes 2016-02-10 17:21:18 +03:00
streamhsa 51bff8757c Remove test for atomicInc and atomicDec 2016-02-10 21:02:52 +08:00
streamhsa 6f2a94fb93 Updated readme for test 2016-02-10 20:05:59 +08:00
streamhsa 4035b71df4 Resolved test issues 2016-02-10 20:01:16 +08:00