Commit graph

13474 Commits

Autor SHA1 Nachricht Datum
Ben Sander 866e64f6e2 remove extra : 2016-02-18 03:05:53 -06:00
Ben Sander 53f37712bd Tweak version numbers 2016-02-18 21:29:51 -06:00
foreman 992ecc19f9 P4 to Git Change 1238217 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/02/18 03:00:11
SWDEV-2 - Change OpenCL version number from 2037 to 2038.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1784 edit
2016-02-18 03:11:19 -05:00
Ben Sander d0f9881d60 Merge branch 'memtracker' of https://github.com/AMDComputeLibraries/HIP-privatestaging into memtracker 2016-02-17 23:06:51 -06:00
Ben Sander 400dcb8bcb Enable Tracker and ROCR by default, verify with HCC 2016-02-17 23:03:37 -06:00
Ben Sander b08e468c06 Remove HIP-local AM tracker (now in HCC) 2016-02-17 21:33:32 -06:00
Ben Sander 354c9f945a USE_AM_TRACKER=0 works 2016-02-17 21:23:36 -06:00
Ben Sander d75279c8eb Tweak full formatting 2016-02-17 21:22:31 -06:00
Ben Sander 9a82d316c3 Support HSA_PATH env, async path tweak 2016-02-17 21:22:07 -06:00
foreman e5635ffbe4 P4 to Git Change 1237953 by kzhuravl@win-kzhuravl-stg-sc on 2016/02/17 13:32:36
SWDEV-76911 - Remove HSART_NO_LARGE_BAR_SUPPORT define and do necessary updates (comes in 3 separate parts: stg sc, hsa, opencl changelists) [opencl part]

	ReviewBoardURL: http://ocltc.amd.com/reviews/r/9769/
	Testing: http://ocltc:8111/viewModification.html?modId=66952&personal=true&init=1&tab=vcsModificationBuilds

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/executable.cpp#19 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/loaders.cpp#9 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/loaders.hpp#9 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/include/amd_hsa_kernel_code.h#10 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/include/amd_hsa_loader.hpp#8 integrate
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.hpp#64 edit
2016-02-17 13:40:22 -05:00
dfukalov cdcb45d9f2 Adding lit tests 2016-02-17 19:05:18 +03:00
atimofee 5cd248c55f Hipify tool in it current state 2016-02-17 18:34:58 +03:00
pensun c1da0f1e12 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 43785243a5 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
pensun 7309e9ea6a 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
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 731a2a58d3 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 bd7e3b83b9 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 322a3bd9b2 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
Evgeny Mankov 763aa5ea5a 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 56b3d2e7c4 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 8e3dd664eb Result formatting 2016-02-13 01:14:01 -06:00
Ben Sander 1cd35f6371 Add D2H test 2016-02-12 22:47:26 -06:00
Ben Sander 81c275da13 Add D2H test 2016-02-12 22:46:34 -06:00
Ben Sander ba7497b409 Add Bus Bandwidth test, leveraged from SHOC. 2016-02-12 21:30:43 -06:00
Ben Sander 2353cbb028 Improve copy testing 2016-02-12 18:24:08 -06:00
Ben Sander 1128610801 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 90af462b85 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 f464cedcf4 Query tracked memory sizes.
Support more accurate hipMemGetInfo.  Add test to hipPointerAttrib.
2016-02-12 18:24:08 -06:00
Ben Sander f2c1bf3bc0 Remove ! USE_PINNED_HOST support 2016-02-12 18:24:08 -06:00
Ben Sander c04b5d3afb Use memtracker 'appID' to store deviceID associated with ptr 2016-02-12 18:24:08 -06:00
Ben Sander 7216727fba 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 721508cc2f 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 f1bc9af294 Fix bug in device bounds comparison.
Shows up in multi-GPU.
2016-02-12 18:24:08 -06:00
Maneesh Gupta c82511258c Documented supported fastmath functions 2016-02-12 14:21:58 +05:30
Maneesh Gupta 2659e70d48 Updated integer intrinsics documentation 2016-02-12 13:58:35 +05:30
foreman 0b9a71219a P4 to Git Change 1236626 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/02/12 03:00:10
SWDEV-2 - Change OpenCL version number from 2033 to 2034.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1780 edit
2016-02-12 03:09:11 -05:00
foreman fffbe5bb3b P4 to Git Change 1236618 by weizhang@msdnweizhang-opencl on 2016/02/11 22:12:34
SWDEV-78299 - Back out changelist 1236441 since OCLCreateBuffer fails.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#541 edit
2016-02-11 22:20:56 -05:00
Evgeny Mankov 460b501cbb 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 1025341300 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