Commit-Graf

12735 Incheckningar

Upphovsman SHA1 Meddelande Datum
Ben Sander 89e461988e Step1 in staging buffer copy.
- use StagingBuffer class for copies.
- refactor g_device to use array rather than vector.
   (keeps pointers from moving).


[ROCm/clr commit: 90af462b85]
2016-02-12 18:24:08 -06:00
Ben Sander 5978d5f372 Query tracked memory sizes.
Support more accurate hipMemGetInfo.  Add test to hipPointerAttrib.


[ROCm/clr commit: f464cedcf4]
2016-02-12 18:24:08 -06:00
Ben Sander 80d7c867d1 Remove ! USE_PINNED_HOST support
[ROCm/clr commit: f2c1bf3bc0]
2016-02-12 18:24:08 -06:00
Ben Sander 712750e1a5 Use memtracker 'appID' to store deviceID associated with ptr
[ROCm/clr commit: c04b5d3afb]
2016-02-12 18:24:08 -06:00
Ben Sander 2089e549eb 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.
-


[ROCm/clr commit: 7216727fba]
2016-02-12 18:24:08 -06:00
Ben Sander fe67be1134 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.


[ROCm/clr commit: 721508cc2f]
2016-02-12 18:24:08 -06:00
Ben Sander a50fa0f78e Fix bug in device bounds comparison.
Shows up in multi-GPU.


[ROCm/clr commit: f1bc9af294]
2016-02-12 18:24:08 -06:00
Maneesh Gupta 00d106a777 Documented supported fastmath functions
[ROCm/clr commit: c82511258c]
2016-02-12 14:21:58 +05:30
Maneesh Gupta 7c93bdebaf Updated integer intrinsics documentation
[ROCm/clr commit: 2659e70d48]
2016-02-12 13:58:35 +05:30
foreman 5a0961fdec 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


[ROCm/clr commit: 0b9a71219a]
2016-02-12 03:09:11 -05:00
foreman b1845e0784 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


[ROCm/clr commit: fffbe5bb3b]
2016-02-11 22:20:56 -05:00
Evgeny Mankov 6add51ef8c 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.


[ROCm/clr commit: 460b501cbb]
2016-02-12 01:29:20 +03:00
Evgeny Mankov 735d4738ad 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.


[ROCm/clr commit: 1025341300]
2016-02-12 00:04:14 +03:00
Evgeny Mankov a8b7647f8b BDFID (BusID/DeviceID/FunctionID) support.
Except FunctionID (or DomainID in CUDA) support, because cudaDeviceProp::pciDomainID is not reported by CUDA.


[ROCm/clr commit: 658e9f0484]
2016-02-11 22:26:01 +03:00
foreman 1795e55181 P4 to Git Change 1236441 by weizhang@weizhang-lnx-opencl on 2016/02/11 12:33:49
SWDEV-78299 - [Brahma] Setting max single allocation size by comparing cardMemAvailableBytes with cardExtMemAvailableBytes on Brahma.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#540 edit


[ROCm/clr commit: 31c030ff18]
2016-02-11 12:41:22 -05:00
sunway513 6bfdfc34a0 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
[ROCm/clr commit: fe1000df17]
2016-02-11 22:22:47 +05:30
sunway513 38cc074f08 Add reminder to keep ROCR runtime on the system library path
[ROCm/clr commit: c7cbcfa2e9]
2016-02-11 22:22:00 +05:30
foreman cd7a3bed15 P4 to Git Change 1236419 by asalmanp@asalmanp-opencl-stg on 2016/02/11 11:36:16
SWDEV-79278 - [OpenCL][Ellesmere BU] Exposing Ellesmere in mainline for 16.20 release

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/9750/

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings.h#7 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_amdil.h#7 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_amdil64.h#6 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail.h#6 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail64.h#6 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings.h#39 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_amdil.h#34 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_amdil64.h#30 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail.h#29 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail64.h#24 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm32/lib/Target/AMDIL/AMDILSubtarget.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm32/lib/Target/AMDIL/Internal/InternalProcessors.td#8 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/driver/driver.cpp#59 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudefs.hpp#133 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/runtime/OCLDeviceQueries.cpp#33 edit


[ROCm/clr commit: c16578eb71]
2016-02-11 11:49:08 -05:00
dfukalov f7b58ebd17 adding ability to build in llvm source tree, updated README
[ROCm/clr commit: bae0f00e69]
2016-02-11 15:27:00 +03:00
foreman cd9dabd76d P4 to Git Change 1236333 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/02/11 03:00:10
SWDEV-2 - Change OpenCL version number from 2032 to 2033.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1779 edit


[ROCm/clr commit: 837ab19841]
2016-02-11 03:08:59 -05:00
Maneesh Gupta f826c7aaae Updated readme for test
[ROCm/clr commit: ed2d86f3a9]
2016-02-11 13:06:58 +05:30
dfukalov 50260adbe0 Initial version of CLANG based HIPIFY tool for CUDA -> HIP sources conversion
[ROCm/clr commit: 9d10ae4325]
2016-02-10 20:20:11 +03:00
Ben Sander 7879d2f103 Initial commit
[ROCm/clr commit: f3a2e03a6b]
2016-02-10 09:29:29 -06:00
Evgeny Mankov cedd1c0947 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
[ROCm/clr commit: 3139c72756]
2016-02-10 17:21:53 +03:00
Evgeny Mankov 2478fc078f Formatting, no functional changes
[ROCm/clr commit: d9a94191f2]
2016-02-10 17:21:18 +03:00
streamhsa 03c2768897 Remove test for atomicInc and atomicDec
[ROCm/clr commit: 90add185fd]
2016-02-10 21:02:52 +08:00
streamhsa 688a9a19a5 Updated readme for test
[ROCm/clr commit: 56f1832e70]
2016-02-10 20:05:59 +08:00
streamhsa 5d857b2bc3 Resolved test issues
[ROCm/clr commit: 2f8d56e903]
2016-02-10 20:01:16 +08:00
foreman 77053c3c72 P4 to Git Change 1235953 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/02/10 03:00:10
SWDEV-2 - Change OpenCL version number from 2031 to 2032.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1778 edit


[ROCm/clr commit: 4a8a26801c]
2016-02-10 03:10:47 -05:00
gargrahul 91a5b0aa77 Removed atomicInc and atomicDec support from HIP
[ROCm/clr commit: 51f46d9ddf]
2016-02-10 04:29:55 +05:30
foreman 027f022623 P4 to Git Change 1235782 by asalmanp@asalmanp-opencl-stg on 2016/02/09 15:30:16
SWDEV-68792 - [OpenCL][HWS/CWSR] Adding support for Hardware Scheduler and Compute Wave Save restore (CWSR) feature on ORCA

	Adding a temporary w/a for a CP uCode bug in HWS mode. Due to this bug, CP uCode loops through a RUNLIST unless there is a submission on all queues in HWS mode. This causes some overhead and performance drop in PCMark8 on CZ in HWS mode. To work around this issue, it was suggested to submit a dummy packet during initialization on all available queues on HWS mode so that CP uCode can break the loop. This w/a should be removed once CP uCode provides a final fix for this issue.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/9616/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#160 edit


[ROCm/clr commit: 45715f0c48]
2016-02-09 17:25:20 -05:00
Peng Sun a2550c7ce0 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into doc_update
[ROCm/clr commit: b61f0453c0]
2016-02-09 15:08:39 -06:00
Peng Sun 37a3263766 Fix TODO-Doc in hip_texture.h
[ROCm/clr commit: 6731505c5f]
2016-02-09 10:58:23 -06:00
Evgeny Mankov 9f596e0aab Device property concurrentKernels is added to hipDeviceProp_t struct.
For HCC path concurrentKernels is set to true since all ROCR hardware supports this feature.
For NVCC path concurrentKernels is obtained from CUDA's device property cudaDeviceProp::concurrentKernels.


[ROCm/clr commit: 4d4ca3ef3f]
2016-02-09 17:10:35 +03:00
foreman 7080c5d4f8 P4 to Git Change 1235458 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/02/09 03:00:10
SWDEV-2 - Change OpenCL version number from 2030 to 2031.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1777 edit


[ROCm/clr commit: 9b8568bedb]
2016-02-09 03:09:16 -05:00
foreman 718365b83a P4 to Git Change 1235456 by kebai@kebai_win1 on 2016/02/09 02:47:34
SWDEV-86836 - Enhance caching library class to prepare one-stage kernel caching by:
	0. Moving cache storage setup into constructor
	1. Controlling cache storage size
	2. Explicit cache cleanup
	    a. -kcache-wipe is off by default; when turned on, the caching directory would be wiped off
	    b. Here it's just an option. The implementation (the call of wipeCacheFolders()) will be added in the compiler library
	3. Enforcing cache miss (actual compilation enforcing and adding a new entry to the cache storage).
	    a. -kcache-enforce-miss is off by default; when turned on, the real compilation will be enforced
	    b. Here it's just an option. The implementation will be added in the compiler library
	ReviewBoardURL = http://ocltc.amd.com/reviews/r/9726/

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/OPTIONS.def#134 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/caching/cache.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/caching/cache.hpp#7 edit


[ROCm/clr commit: c5265e08c6]
2016-02-09 02:52:58 -05:00
Maneesh Gupta 4df8743f84 which_hip -> hipconfig
[ROCm/clr commit: f8bfc7f54c]
2016-02-09 11:51:26 +05:30
Maneesh Gupta 978aac7fe0 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
[ROCm/clr commit: 0df78ac9bf]
2016-02-09 10:57:46 +05:30
Maneesh Gupta 8442259da0 Move HIP_DEVICE_COMPILE defines to hip_common.h
[ROCm/clr commit: f6e7abd710]
2016-02-09 10:57:20 +05:30
streamhsa 71d3c9f306 Rename test hipInfo as hipGetDeviceAttribute
[ROCm/clr commit: 310023e273]
2016-02-09 13:19:32 +08:00
Ben Sander d258c7fdcd Test fixes:
- Remove reference to missing test.
- Add hipMemset back.
- Parse --gpu option to specify default starting GPU.


[ROCm/clr commit: ce2fc0f7fe]
2016-02-08 22:55:23 -06:00
Ben Sander 3b04ce4e81 minor doc touchup
[ROCm/clr commit: 2ecb345a67]
2016-02-08 22:11:11 -06:00
Ben Sander 6fe93da014 in HIPCHECK, only run command once even if error occurs
[ROCm/clr commit: c482a3f456]
2016-02-08 21:45:49 -06:00
Ben Sander 8b291201de Doc update
[ROCm/clr commit: a06e0d9050]
2016-02-08 21:44:55 -06:00
Ben Sander 3ce8ed9f4c Add hcc-config info to --full
[ROCm/clr commit: 39c5f0f610]
2016-02-08 21:44:55 -06:00
Ben Sander c94c562f26 iScript cleanup, add --full
[ROCm/clr commit: fdeb477822]
2016-02-08 21:44:55 -06:00
Peng Sun b86252bc0d fix merging conflicts
[ROCm/clr commit: b3b0bbdddc]
2016-02-08 15:35:49 -06:00
foreman 85d849e72b P4 to Git Change 1235269 by asalmanp@asalmanp-opencl-stg on 2016/02/08 12:27:46
SWDEV-79278 - [OpenCL][Baffin BU] Exposing Baffin in mainline for 16.20 release
	ReviewBoardURL = http://ocltc.amd.com/reviews/r/8969/

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings.h#6 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_amdil.h#6 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_amdil64.h#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail.h#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail64.h#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings.h#38 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_amdil.h#33 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_amdil64.h#29 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail.h#28 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail64.h#23 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm32/lib/Target/AMDIL/AMDILSubtarget.cpp#7 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm32/lib/Target/AMDIL/Internal/InternalProcessors.td#7 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/driver/driver.cpp#58 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudefs.hpp#132 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/runtime/OCLDeviceQueries.cpp#32 edit


[ROCm/clr commit: c22b282854]
2016-02-08 12:36:54 -05:00
foreman 0d7f39abb3 P4 to Git Change 1235185 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/02/08 03:00:10
SWDEV-2 - Change OpenCL version number from 2029 to 2030.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1776 edit


[ROCm/clr commit: e536df62e9]
2016-02-08 03:10:50 -05:00
foreman bb78eeded3 P4 to Git Change 1235159 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/02/07 03:00:11
SWDEV-2 - Change OpenCL version number from 2028 to 2029.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1775 edit


[ROCm/clr commit: 3c0eef3228]
2016-02-07 03:10:34 -05:00