Commit Graph

13222 Commits

Author SHA1 Message Date
Ben Sander 17e21309f1 Cleanup: Remove HIP signal pool.
Change-Id: Icebfd0509d12396cc5933d5556d68b53e1be36e0
2016-09-22 14:21:19 -05:00
Ben Sander c365785c5c Remove HIP command dependency tracking.
Change-Id: I991c13bc5108193959ba70f9f6f9c692c9ad3a5b
2016-09-22 14:21:19 -05:00
Ben Sander b0509c5a58 Cleanup, remove preCopyCommand.
Change-Id: I3768d3789a99be8136b43179d4152fa1875665cb
2016-09-22 14:21:19 -05:00
Ben Sander 3596901c3d Change HIP async copy to call av::copy_async.
Change-Id: I4274b63ced3940d5249c32bd9d156296529c70e8
2016-09-22 14:21:19 -05:00
Ben Sander 8598d8c6d3 Use HCC's synchronous accelerator_view::copy
Replace large block of HIP code with a call to HCC av::copy().

Change-Id: Ic32e1801cf8d4cd116ac02b72c41b1a1e4b6065c
2016-09-22 14:21:19 -05:00
Ben Sander 60f797cc5a Remove USE_AV_COPY, USE_PEER_TO_PEER fallback paths.
Change-Id: I9c20173e62029c4caebabc98784c6d7697758e4f
2016-09-22 14:21:19 -05:00
Ben Sander 39750da9a5 Remove HIP_STAGING_BUFFER
Code simplification/cleanup:
Remove stale fallback paths that uses something besides the unpinned engine.
Remove HIP_STAGING_BUFFER env var - now is const 2, 0 no longer has
special meaning.

Change-Id: I7d24cdd1067dd0c244e87b6a83897cb135d307e7
2016-09-22 14:21:18 -05:00
Ben Sander 271e2357e0 Fix bugs for different CopyModes
Change-Id: Ie59fb3b36a9ff2de178307a6d5756b5c71e0306b
2016-09-22 14:21:18 -05:00
Ben Sander 17d7fc586e Move isLargeBar to UnpinnedCopyEngine constructor.
Change-Id: I7a7d3a40b1d4e0c6ec856658a6a70e5e70d287ce
2016-09-22 14:21:18 -05:00
Ben Sander 77c86934c1 Refactor Staging Buffer CopyDeviceToHost
Use copyMode.  Embed algorithm selection inside the unpinned class.

Change-Id: Ic75fd5931717a3160904402794bbed3ccd445112
2016-09-22 14:21:18 -05:00
Ben Sander e77d75c1c1 Refactor staging buffer CopyHostToDevice.
- Move algorithm selection inside Unpinned class.
- Refactor function names.
- Use size_t for size threshholds.

Change-Id: Iac4de652ac9d49acbf527aa0849e388b8ecd8486
2016-09-22 14:21:18 -05:00
Ben Sander e8beacbfb1 Sample improvements.
- Enable -O3 for hipDispatchLatency.
- Use nearly-null kernel to prevent it from being optimized away.
- Formatting for hipDispatchLatency.
- Formatting for hipInfo.
2016-09-22 13:05:47 -05:00
Ben Sander 6126d73778 Doc update for faq. 2016-09-22 13:05:47 -05:00
Ben Sander 7ec4b65786 Doc update: release reminder, compare hip against other porting tools. 2016-09-22 13:05:47 -05:00
Ben Sander b4bc101c96 Updates docs for hipHcc* functions, move to header 2016-09-22 13:05:47 -05:00
Aditya Atluri 470a1583d1 added ipc runtime api for nvcc backend
Change-Id: I3297c4c9db34e7bc3267fec64a6757f9ebf91905
2016-09-22 12:55:41 -05:00
Aditya Atluri c0babe6b0a Fixed typo in function return
Change-Id: I8905bfdbc162815ac10c926e77a9bab432932c9c
2016-09-22 09:30:05 -05:00
Maneesh Gupta e51e268f24 Fix bug in defining HIP_VERSION_*
Change-Id: I52fcd78386ee4b5035aba4c9bced3372b7894650
2016-09-22 16:32:05 +05:30
Rahul Garg 86e441c769 Added hipRuntimeGetVersion function
Change-Id: I59ec2beacb5a94439deed0dcc8eb37d6de1cc900
2016-09-22 15:21:23 +05:30
foreman 4dd808cd6d P4 to Git Change 1317395 by johtaylo@johtaylo-jtincrementor-increment on 2016/09/22 03:00:04
SWDEV-2 - Change OpenCL version number from 2221 to 2222.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1968 edit
2016-09-22 03:11:20 -04:00
Maneesh Gupta ba9d9708f7 Expose HIP_VERSION_* to HIP source and HIP applications
Change-Id: I6fb0d6711642c4fad2cd89b98707ee4b548b7243
2016-09-22 12:27:07 +05:30
foreman 0dd6aae926 P4 to Git Change 1317285 by lmoriche@lmoriche_opencl_dev on 2016/09/21 20:36:55
SWDEV-102540 - Fill the device info_.boardName_ field from the info returned by ROCR's HSA_AMD_AGENT_INFO_PRODUCT_NAME query.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#19 edit
2016-09-21 20:43:02 -04:00
foreman 48590452f1 P4 to Git Change 1317211 by gandryey@gera-w8 on 2016/09/21 16:53:02
SWDEV-102971 - [CQE OCL][OpenCL on PAL] "computer on low memory" issue observed folllowed by tdr while running few WF Conformance tests together
	- Use custom memory allocator to avoid memory grow in PAL
	- Extra clean-ups in resource alloc, including a fix for image pitch in the persistent memory

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#7 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#22 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#9 edit
2016-09-21 17:08:14 -04:00
pensun d64bbacdd9 doc fix for hipStream
Change-Id: I618464c8b9ffa0a566434e72d2bc87a152884ca1
2016-09-21 12:03:01 -05:00
foreman fcc6d6637b P4 to Git Change 1316856 by johtaylo@johtaylo-jtincrementor-increment on 2016/09/21 03:00:05
SWDEV-2 - Change OpenCL version number from 2220 to 2221.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1967 edit
2016-09-21 03:05:42 -04:00
foreman 383e97425b P4 to Git Change 1316785 by lmoriche@lmoriche_opencl_dev on 2016/09/20 20:47:40
SWDEV-94610 - Add gfx700 to the list of suported targets in HSAILProgram::linkImpl_LC. When dumping the source (-save-temps), print the options actually sent to clang as well as the options passed to OpenCL.

Affected files ...

... //depot/stg/opencl/drivers/opencl/library/build/Makefile.library#56 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/amdgpu_metadata.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#36 edit
2016-09-20 20:53:50 -04:00
foreman e9c1fb06c7 P4 to Git Change 1316718 by johtaylo@johtaylo-jtincrementor-increment on 2016/09/20 17:52:05
SWDEV-2 - Change OpenCL version number from 2219 to 2220.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1966 edit
2016-09-20 18:02:57 -04:00
foreman f6529ae04a P4 to Git Change 1316686 by johtaylo@johtaylo-jtincrementor-increment on 2016/09/20 17:08:15
SWDEV-2 - Change OpenCL version number from 2218 to 2219.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1965 edit
2016-09-20 17:22:31 -04:00
foreman 34e0d956ec P4 to Git Change 1316519 by johtaylo@johtaylo_L7_stg on 2016/09/20 12:50:43
SWDEV-2 - Change OpenCL version number from 2217 to 2218.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1964 edit
2016-09-20 12:56:44 -04:00
Maneesh Gupta 6b9d8e85a7 FindHIP: Fix bug in parsing source files and options
Change-Id: Ib1c793dd19d61b387da3f5894c4e37c66f02b753
2016-09-20 20:46:49 +05:30
Maneesh Gupta 3e18b5fdf3 FindHIP: Fix bug in handling HIP_SOURCE_PROPERTY_FORMAT
Change-Id: I6f19c487b222039e2653a8de1930c02da64318ed
2016-09-20 14:03:51 +05:30
Maneesh Gupta f9a9936c49 FindHIP: Fix formatting issues
Change-Id: I169266fe34fec1d0619b299733e9997eddc16d90
2016-09-20 12:53:55 +05:30
foreman c2b57553dc P4 to Git Change 1316270 by scharupa@scharupa_temp on 2016/09/20 03:14:55
SWDEV-96479 - changing tab to space as Victor pointed out

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#18 edit
2016-09-20 03:20:15 -04:00
foreman d793001561 P4 to Git Change 1316221 by scharupa@scharupa_temp on 2016/09/20 01:44:43
SWDEV-96479 - bug fix, exposing atomics capabilities based on GFX IP. For Hawaii the atomics is not supported hence disabled.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#17 edit
2016-09-20 01:52:18 -04:00
foreman b65af32fe1 P4 to Git Change 1316123 by gandryey@gera-w8 on 2016/09/19 18:22:55
SWDEV-102286 - [CQE OCL][OpenCL on PAL] 32/64 "DX9" OpenCL SDK Sample is crashing
	- Correct DX9 device binding

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#22 edit
2016-09-19 20:13:01 -04:00
foreman 0dd7a03954 P4 to Git Change 1315824 by asalmanp@asalmanp-opencl-stg on 2016/09/19 12:04:15
SWDEV-102417 - Forum [205433] : Memory leak with printf statement inside kernel code

	A memory leak can occur if a printf statement is inside the .cl source code but it is not used inside the __kernel code (e.g., a function inside .cl code that uses printf but never called by the __kernel). In this case compiler generates the printf metadata but printf is not used by the __kernel (i.e., the printf buffer is empty).

	To fix this issue, release the transfer buffer object before returning false in PrintfDbgHSA::output function.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprintf.cpp#42 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprintf.cpp#3 edit
2016-09-19 12:13:23 -04:00
Rahul Garg 8842a0d5b8 Added return error code hipErrorInvalidValue in hipMemGetInfo
Change-Id: If01b012136b655ff8eb4878eb703dfe3e6a36530
2016-09-17 23:54:20 +05:30
pensun e11b6144e4 Revert "resolve merge conflict"
This reverts commit 213fd6c961.
2016-09-16 16:04:48 -05:00
pensun 213fd6c961 resolve merge conflict
Change-Id: I041730d4208ae1865820f5df73a67ba60fd4bc3c
2016-09-16 11:13:43 -05:00
Maneesh Gupta 9df8d9b399 Merge branch 'amd-develop' into amd-master
Change-Id: I9f284502dc764b7ad39bd9bc8a40ea7404d0391e
2016-09-16 15:31:56 +05:30
Maneesh Gupta 70a1a498f6 Some more event API documentation fixes
Change-Id: I159706e6771bec5270dda81800c1c6fd5f13d254
2016-09-16 15:26:58 +05:30
Maneesh Gupta 1dc1c056d4 Fix typo in comment
Change-Id: I217012e10d8e5322aa0dc7dd5915be10df35fb53
2016-09-16 15:18:17 +05:30
Maneesh Gupta b14d2c8c8e Updates to doxygen documentation for HIP Event APIs
Change-Id: Ic2e4a5725aebca14ac824da43436aacd0fe0a45c
2016-09-16 15:06:54 +05:30
Maneesh Gupta f51b5dda0c Fix fence functions doxygen group
Change-Id: I222eecb0eb0174b9f19e15b16c1ee06b7ba1e67e
2016-09-16 15:06:54 +05:30
Rahul Garg 5b0a4eeaba Updated error codes in Memory APIs
Change-Id: I328090db929867fd3500fc471b69f86c6f595912
2016-09-16 14:59:08 +05:30
Rahul Garg 58a828ede5 Corrected wrong error code name in memory APIs
Change-Id: I16a8ebf6d530f2e7d266a1a63a76ba7b9710c8c1
2016-09-16 14:14:45 +05:30
Rahul Garg cb3bff0a0d Partial updates of error codes for Memory APIs
Change-Id: If924867cc62f56dc9eaf81f5499ba66f417c393a
2016-09-16 12:59:41 +05:30
Maneesh Gupta 4ceb73baa1 Ignore .* files again
Change-Id: Idf430bea898537df2cdef11796b12e52fa4cd9c6
2016-09-16 12:39:33 +05:30
Rahul Garg 6139d5f587 Added further properties in hipChooseDevice
Change-Id: I8f7f5800e8a95873318a534f09e75e037ad31b06
2016-09-16 11:18:34 +05:30
Rahul Garg 2c1bd4bd10 HIP/NVCC path for hipChooseDevice
Change-Id: I64690d7df1f5493e067c7ff5e3b39a10fcf323bb
2016-09-16 11:15:03 +05:30