Commit Graph

13222 Commits

Author SHA1 Message Date
Aditya Atluri ca033e19cf Fixed issue on git #39
Change-Id: I5b507fc2b544df0cd3a900a2763c7a3ad6295c13
2016-09-29 10:06:26 -05:00
foreman 52294f7d9b P4 to Git Change 1320374 by johtaylo@johtaylo-jtincrementor-increment on 2016/09/29 03:00:04
SWDEV-2 - Change OpenCL version number from 2228 to 2229.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1975 edit
2016-09-29 03:11:56 -04:00
pensun 4570877142 add hipEvent* macros on NV path
Change-Id: I28ff0fa24f69560e13366e7cd8d3a485665c67e1
2016-09-29 01:22:19 -05:00
Maneesh Gupta 1df4c1288a Rebuild hip_hcc if hcc version changes
And also force rebuild of .buildInfo & .version everytime

Change-Id: I97e0d3c24fd693366a293803088014d13ca640cc
2016-09-29 10:29:35 +05:30
foreman bf954b958a P4 to Git Change 1319819 by johtaylo@johtaylo-jtincrementor-increment on 2016/09/28 03:00:08
SWDEV-2 - Change OpenCL version number from 2227 to 2228.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1974 edit
2016-09-28 03:12:09 -04:00
foreman 59612c30f9 P4 to Git Change 1319752 by lmoriche@lmoriche_opencl_dev on 2016/09/28 00:48:39
SWDEV-103420 - [ROCm CQE][OCLonLC][Fiji] 9 of 47 tests failed in oclperf.so component in Fiji
	Enable image support for the Lightning path.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#20 edit
2016-09-28 00:55:30 -04:00
pensun e6d7ecc0f5 change hipEnvVarDriver to reduce communications to hipEnvVar
Change-Id: I65a5f67dd51d53594fa51f88505e32321643d189
2016-09-27 23:00:11 -05:00
Ben Sander 806e58ca63 Refactor asyncCopy and syncCopy to fix deadlock case.
- Minimize time that locks are held.
- Eliminate copy code that locked stream and ctx at same time.
    - Stream was locked to ensure thread-safe enqueue to the queue.
    - Devices were locked to query peer-lists.

Change-Id: Ibe8880bb7fb995a3da8f90ff911f212d81525018
2016-09-27 15:45:40 -05:00
Ben Sander 4fd4168796 Add debug option to print ThreadID with each message.
Also print messages with single fprintf to prevents threads from
interleaving.

Change-Id: Ib3999fe6b1e67b4a16cd7dcde82f3dfc99dd48ff
2016-09-27 15:45:40 -05:00
Ben Sander c53349a371 Add iterations option to MT test.
Change-Id: I945706a75601006ee55a408f965483dd263190ef
2016-09-27 15:45:40 -05:00
foreman fd73443cb0 P4 to Git Change 1319465 by lmoriche@lmoriche_opencl_dev on 2016/09/27 14:56:10
SWDEV-103418 - [ROCm CQE][OCLonLC][Fiji] OCLCreateBuffer results in Segmentation fault
	Fix KernelBlitManager::createProgram to report an error if one or more blit kernel could not be created. Re-enable the image blit kernels in the blit program.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/blitcl.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.cpp#4 edit
2016-09-27 15:06:48 -04:00
Aditya Atluri 04b68a515d Fixed hipDeviceGetAttribute
1. Added negative test for hipDeviceGetAttribute
2. Fixed hipDeviceGetAttribute if int ptr input is null

Change-Id: I0e31f50fa407701fddf96e4eb64a87a371ff5d95
2016-09-27 13:33:42 -05:00
Aditya Atluri 4299316039 added more device negative testing
1. Added fallback for nullptr to hipGetDeviceProperties and hipGetDeviceCount
2. Added negative tests for hipGetDeviceProperties and hipGetDeviceCount

Change-Id: Iac93fd53d7d4794fb10546ddadf6ca802b047c87
2016-09-27 13:04:35 -05:00
Aditya Atluri 57872d2a88 fallthrough if deviceId pointer is null
Change-Id: I924996d60d0286a7be1d18881ee733459de2981c
2016-09-27 11:47:58 -05:00
Aditya Atluri 977918badf added negative testing for device APIs
Change-Id: I7bfcdd777f240d36b29eca987f7bc9da7614d704
2016-09-27 11:38:31 -05:00
foreman 9aa76246e5 P4 to Git Change 1319372 by gandryey@gera-w8 on 2016/09/27 12:16:18
SWDEV-102288 - [CQE OCL][OpenCL on PAL] 32bit "ExtractPrimes" OpenCL SDK Sample is causing TDR followed by crash
	- Disable OCL2.0 with 32 bit binaries for VI+

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#7 edit
2016-09-27 12:22:54 -04:00
foreman 692f05e628 P4 to Git Change 1319330 by gandryey@gera-w8 on 2016/09/27 11:03:51
SWDEV-86035 - Add PAL backend to OpenCL
	- Use wait() for now to match GSL path.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#7 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#25 edit
2016-09-27 11:15:47 -04:00
Maneesh Gupta 1e8282327b directed tests: Enable remaining tests in HIT infrastructure
Change-Id: I800ee00d6f7d339bb5d2ed898a16362a8541ed3a
2016-09-27 17:24:33 +05:30
Maneesh Gupta 887525ac32 HIT: Support make_named_test
Change-Id: I7472c14595f10c4f2e2cf8d0228cc0373458a0b7
2016-09-27 17:22:23 +05:30
Maneesh Gupta 356aa8a983 make test: Build tests in parallel
Change-Id: If7b9d0519554226d09d8e6264eb248cd2dd53a2e
2016-09-27 17:21:18 +05:30
foreman fb882c1a5b P4 to Git Change 1319173 by johtaylo@johtaylo-jtincrementor-increment on 2016/09/27 03:00:04
SWDEV-2 - Change OpenCL version number from 2226 to 2227.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1973 edit
2016-09-27 03:11:19 -04:00
foreman 1197b3c361 P4 to Git Change 1319074 by gandryey@gera-w8 on 2016/09/26 19:39:26
SWDEV-101621 - [CQE OCL][OpenCL on PAL] 6 WF Conformance tests are failing
	- Some tests may call syncFromCache and if SDMA can't perform that transfer kernel will be used. Kernel used in the transfer may break memory dependency tracking, because sync is done during memory objects processing. Use local variable for memory list and add mem objects to the tracker at the end of processMemObjectsHSA()

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#24 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#12 edit
2016-09-26 19:48:04 -04:00
Ben Sander f6717e326e Fix signal resource issue.
Remove memory leak with new hc::completion_future.
Implement HIP_LAUNCH_BLOCKING with queue-level wait.

Change-Id: I45975f81c4d239fdeed7776970988d28449865dc
2016-09-26 16:47:32 -05:00
Ben Sander 061bcc6a5c Small tool, doc, sample enhancements.
- Expand message when HIP version mismatch detected.
- Doc touchup.
- change sorting of hipBusBandwidth so byte results shown at top.
-

Change-Id: Ifb4e44a5fdfb65d59c4994b11e5f13385705f7e0
2016-09-26 16:36:01 -05:00
pensun 5bdb9e349c fix of HIPCC on libc++ option on HCC path
Change-Id: Ie0d3213a165fa13f033b777b490eb60b980d02da
2016-09-26 14:39:57 -05:00
Rahul Garg 3d1a61f1d9 Doxygen documentation changes for hipCtxXXX APIs
Change-Id: I1e5e3a621b732bd8bdeef1c607c004d6adfdab32
2016-09-26 23:11:07 +05:30
Rahul Garg 25e9308831 Doxygen related document updates for texture/ array related functions
Change-Id: Iedc5b6512b5ddecb98c0e51a353957f08b955fde
2016-09-26 16:18:53 +05:30
foreman 1064863737 P4 to Git Change 1318652 by johtaylo@johtaylo-jtincrementor-increment on 2016/09/26 03:00:04
SWDEV-2 - Change OpenCL version number from 2225 to 2226.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1972 edit
2016-09-26 03:11:51 -04:00
Rahul Garg c313836013 Removed deprecated hipHostAlloc
Change-Id: Ia592a3545c5d72f37e049ce29f910e404323c01c
2016-09-26 10:58:46 +05:30
Rahul Garg f5b463702e Removed deprecated hipMallocHost
Change-Id: I3141fe05a34b6a306297a30721509965f49ccb97
2016-09-26 05:52:21 +05:30
Rahul Garg 3a6acd044b Removed deprecated hipFreeHost
Change-Id: I9747ea3993090e0da6a2e1f5e9ce318762bc03e1
2016-09-26 05:35:14 +05:30
foreman 1f0499f75b P4 to Git Change 1318553 by johtaylo@johtaylo-jtincrementor-increment on 2016/09/25 03:00:05
SWDEV-2 - Change OpenCL version number from 2224 to 2225.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1971 edit
2016-09-25 03:11:23 -04:00
foreman 8d50678adb P4 to Git Change 1318482 by johtaylo@johtaylo-jtincrementor-increment on 2016/09/24 03:00:07
SWDEV-2 - Change OpenCL version number from 2223 to 2224.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1970 edit
2016-09-24 03:10:04 -04:00
foreman 0fb0fb1d8b P4 to Git Change 1318412 by lmoriche@lmoriche_opencl_dev on 2016/09/23 17:57:01
SWDEV-94610 - Remove the padding at the end of the kernargs (It was for the hidden arguments, but now, LC reports the correct size). Set the LLVM triple to amdgcn-amd-amdhsa-opencl when building the built-in library.

Affected files ...

... //depot/stg/opencl/drivers/opencl/opencldefs#186 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#20 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#37 edit
2016-09-23 18:18:01 -04:00
foreman 27bc59ab60 P4 to Git Change 1318397 by gandryey@gera-rcf-lnx on 2016/09/23 17:46:56
SWDEV-86035 - Add PAL backend to OpenCL
	- Fix more strict compilation rules in C++11

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/build/Makefile.pal#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcounters.hpp#7 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#23 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevicegl.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palthreadtrace.hpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#11 edit
2016-09-23 18:05:10 -04:00
foreman 6e1e293bd7 P4 to Git Change 1318204 by gandryey@gera-w8 on 2016/09/23 13:14:59
SWDEV-86035 - Add PAL backend to OpenCL
	- Avoid malloc()/free() calls during the dispatch

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#161 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#23 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#10 edit
2016-09-23 13:29:09 -04:00
Maneesh Gupta da6183a194 hip_tests: Scan for tests recursively in tests/src
Change-Id: I0297e6c94de3ea446ce99cce0aa641e74dad0d13
2016-09-23 22:42:52 +05:30
Maneesh Gupta 9216464861 directed tests: Enabled top-level uncategorized tests in HIT
Change-Id: If37cbd00244ebfa0e5bff8362820aa68aaa163f1
2016-09-23 16:15:31 +05:30
Maneesh Gupta a8a8ebed10 HIT: Fix logic in HIT_ADD_DIRECTORY_RECURSIVE
Change-Id: I066787aaeec2a1562aa36527e60291594da31f83
2016-09-23 15:13:12 +05:30
Maneesh Gupta 121edb35d9 Add target test that uses HIT to the top-level HIP cmake
Change-Id: Idae1c0b39e6c4deb9f8fdb192bab17b0904941d7
2016-09-23 14:46:48 +05:30
Maneesh Gupta f82e26bbe2 Initial implementation of HIT infrastructure
Change-Id: Icaef40cca67715fe3ec4ce3479d0f80f391f3917
2016-09-23 14:44:51 +05:30
foreman 7f531afdb4 P4 to Git Change 1317944 by johtaylo@johtaylo-jtincrementor-increment on 2016/09/23 03:00:05
SWDEV-2 - Change OpenCL version number from 2222 to 2223.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1969 edit
2016-09-23 03:18:40 -04:00
Maneesh Gupta 6254131dfd CMakeLists.txt: No need to define HIP_HCC
Change-Id: I0aa149bf3ffd4ee665bf3b822e178b3d74efe2af
2016-09-23 10:44:39 +05:30
Maneesh Gupta b088ca2a53 hipcc: Don't try to linking unpinned_copy_engine
Change-Id: Iaa4d8b4f6dbb7940bba553f82c157a2ee9468c9e
2016-09-23 10:43:09 +05:30
foreman c5b3373da2 P4 to Git Change 1317781 by lmoriche@lmoriche_opencl_dev on 2016/09/22 19:28:45
SWDEV-94610 - Add runtime support for Printf. Parse the metadata strings and build the PrintInfo structure expected by the runtime.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/amdgpu_metadata.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/amdgpu_metadata.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#16 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.hpp#10 edit
2016-09-22 19:35:10 -04:00
Ben Sander 944d4eaa18 Peer-to-Peer improvements.
- Bug fix for peer visibility.  Now contexts correctly detect when they can use SDMA for P2P vs staging buffers.
- Interface to new HCC copy_ext function.
- Improve context and peer print /debug options.
- Add comments and usage to hipPeerToPeer_simple test.
2016-09-22 14:21:19 -05:00
Ben Sander a397e60ba9 Add kind translation for hipMemcpyDeviceToDevice 2016-09-22 14:21:19 -05:00
Ben Sander fd6c09602f Fix HIP_INIT_API and ihipLogStatus calls 2016-09-22 14:21:19 -05:00
Ben Sander 926aefa930 Remove unpinned_copy code. Other cleanup.
Change-Id: Ie3f71439cf1ba729ef223d078917c403d3de879a
2016-09-22 14:21:19 -05:00
Ben Sander 5bc18c8603 Cleanup. Remove cfs, ihipSignal_t, staging buffer calls.
Change-Id: I8bb67c484e3a65be06a03665f059217930da2bed
2016-09-22 14:21:19 -05:00