Commit Graph

12735 Commits

Author SHA1 Message Date
Maneesh Gupta 136d220c10 Revert "Enable USE_DISPATCH_HSA_KERNEL."
This reverts commit bbd9d98af7.


[ROCm/clr commit: ac93376c26]
2016-12-05 16:55:26 +05:30
foreman 331f6c23b3 P4 to Git Change 1349269 by johtaylo@johtaylo-jtincrementor-increment on 2016/12/05 03:00:05
SWDEV-2 - Change OpenCL version number from 2295 to 2296.

Affected files ...

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


[ROCm/clr commit: 897be96aed]
2016-12-05 03:09:52 -05:00
Maneesh Gupta b01694f524 Don't share g_malloc_heap_size between libraries
Change-Id: Ic70bf83d4f865bc5c453941fdbc1814c77f0ad9d


[ROCm/clr commit: ac368cc60f]
2016-12-05 11:03:45 +05:30
foreman 11795e2131 P4 to Git Change 1349133 by johtaylo@johtaylo-jtincrementor-increment on 2016/12/04 03:00:08
SWDEV-2 - Change OpenCL version number from 2294 to 2295.

Affected files ...

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


[ROCm/clr commit: bcd923b89e]
2016-12-04 03:17:24 -05:00
Ben Sander bbd9d98af7 Enable USE_DISPATCH_HSA_KERNEL.
Optimize hipLaunchModule dispatch latency.


[ROCm/clr commit: f8bcbe8680]
2016-12-04 00:13:19 -06:00
foreman 84995ed4a8 P4 to Git Change 1349078 by johtaylo@johtaylo-jtincrementor-increment on 2016/12/03 03:00:06
SWDEV-2 - Change OpenCL version number from 2293 to 2294.

Affected files ...

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


[ROCm/clr commit: ac1461ccc1]
2016-12-03 03:13:14 -05:00
Ben Sander bccb897f84 Add additional controls for forcing serialization and blocking.
Move HIP_COHERENT_HOST_ALLOC so it is read once at init time.
Add HIP_LAUNCH_BLOCKING_KERNELS, HIP_API_BLOCKING.
Update docs on debug and chicken bits.

Conflicts:
	src/hip_hcc.cpp


[ROCm/clr commit: 783ac156ce]
2016-12-02 18:03:59 -06:00
foreman 256c73c634 P4 to Git Change 1349031 by lmoriche@lmoriche_opencl_dev on 2016/12/02 18:33:20
SWDEV-107568 - [ROCm CQE][OCL][CZ] Basic 2.0 conformance test giving Segmentation fault (core dumped) at "progvar_prog_scope_uninit"
	- Detect if writable program scope variables are present in the program, and if so, insert barrier each dispatch of a kernel from this program.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.hpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#48 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#16 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#21 edit


[ROCm/clr commit: b705f74166]
2016-12-02 18:40:16 -05:00
foreman 9e9f65bf95 P4 to Git Change 1348779 by nhaustov@spb-hlc-fiji1_opencl_rocm on 2016/12/02 06:23:08
SWDEV-102966 - Dump code object disassembly in OpenCL rocm device.

	Invoke DumpExecutableAsText from driver library.
	Update build to depend on some more LLVM libraries.

	LLVM changes are included, but will come through amd-common.
	Driver changes will come through ROCm-OpenCL-driver.

	Testing: Run some SDK samples/test_basic with AMD_OCL_BUILD_OPTIONS_APPEND=-save-temps

	Reviewed by: Laurent Morichetti, German Andryeyev.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#27 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#47 edit


[ROCm/clr commit: c7d2b188de]
2016-12-02 06:41:36 -05:00
foreman 51c41fe887 P4 to Git Change 1348697 by johtaylo@johtaylo-jtincrementor-increment on 2016/12/02 03:00:05
SWDEV-2 - Change OpenCL version number from 2292 to 2293.

Affected files ...

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


[ROCm/clr commit: 0fff20f59d]
2016-12-02 03:07:40 -05:00
foreman de4285335b P4 to Git Change 1348476 by lmoriche@lmoriche_opencl_dev on 2016/12/01 21:48:08
SWDEV-79278 - [OpenCL][GFXIP9 Bring up] Add the Vega10 DeviceInfo entry and the gfx90X control functions.

Affected files ...

... //depot/stg/opencl/drivers/opencl/library/build/Makefile.library#59 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdefs.hpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#29 edit


[ROCm/clr commit: d4cbb3a801]
2016-12-01 21:55:50 -05:00
foreman a659256035 P4 to Git Change 1348453 by skudchad@skudchad_test_win_opencl2 on 2016/12/01 19:09:47
SWDEV-107855 - [DVR][CF] Slave GPU exit BACO when DVR is turned on
	- Enable partial initiazation when querying devices for Win7.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/11946/diff/

Affected files ...

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


[ROCm/clr commit: c1c625fc49]
2016-12-01 19:16:48 -05:00
foreman 5b4f04ab51 P4 to Git Change 1348415 by gandryey@gera-w8 on 2016/12/01 17:11:27
SWDEV-98415 - [CQE OCL][OpenCL on PAL] Failures/Crash is observed with multiple modules of ocltst
	- Fix OCLImage2DFromBuffer test. Recalculate the original pitch if a view was created on the top of another ImageBuffer.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#19 edit


[ROCm/clr commit: 33de5b1e09]
2016-12-01 17:17:58 -05:00
foreman bcdf557d83 P4 to Git Change 1348378 by gandryey@gera-ocl-lc on 2016/12/01 16:16:14
SWDEV-98415 - [CQE OCL][OpenCL on PAL] Failures/Crash is observed with multiple modules of ocltst
	- Fix program compilation on LC path. Add program constructor for the real device.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#14 edit


[ROCm/clr commit: 0b136f4765]
2016-12-01 16:27:14 -05:00
foreman e47bcaf874 P4 to Git Change 1348313 by gandryey@gera-w8 on 2016/12/01 14:38:56
SWDEV-98415 - [CQE OCL][OpenCL on PAL] Failures/Crash is observed with multiple modules of ocltst
	- Fix a regression with oflline compilation. Mark null program.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#26 edit


[ROCm/clr commit: bf9217468e]
2016-12-01 14:54:04 -05:00
Maneesh Gupta 5e38114363 Improve shared and static library support
hipcc accepts new parameter -use-staticlib and -use-sharedlib to
control linking behavior. Default is still static library.

Change-Id: I28fb9a939f8177c75abefd8b77d8118a6666d1f4


[ROCm/clr commit: fd8b1c7d41]
2016-12-01 15:33:12 +05:30
foreman e0b4d97f9c P4 to Git Change 1348037 by johtaylo@johtaylo-jtincrementor-increment on 2016/12/01 03:00:03
SWDEV-2 - Change OpenCL version number from 2291 to 2292.

Affected files ...

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


[ROCm/clr commit: e86db9a564]
2016-12-01 03:25:34 -05:00
Maneesh Gupta ce325da03f hipcc: HCC workaround no longer needs env var
Change-Id: I81f4eafddbda5e9e2f1082932dd502ab451cfc24


[ROCm/clr commit: f14198956f]
2016-12-01 12:51:58 +05:30
Maneesh Gupta 97d8017e80 Fix some broken directed tests
Change-Id: I40f2661a74951f8d91824df8fd9ef0cc2312d183


[ROCm/clr commit: 9cab8d4260]
2016-12-01 12:47:37 +05:30
foreman 2ed6248f78 P4 to Git Change 1347718 by kzhuravl@kzhuravl-fiji-oclhsa on 2016/11/30 13:40:59
SWDEV-76911 - Bring loader in sync with git (integration of CL 1347664) + necessary updates for runtimes

	ReviewBoardURL: http://ocltc.amd.com/reviews/r/11425/
	Testing: Dev/SCDevUtil build, smoke, some opencl sc stg builds/tests, precheckin (http://ocltc:8111/viewModification.html?modId=79218&personal=true&init=1&tab=vcsModificationBuilds)

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/amdhsacod/amdhsacod.cpp#17 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/executable.cpp#33 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/executable.hpp#18 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/loaders.hpp#12 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/include/amd_elf_image.hpp#9 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/include/amd_hsa_loader.hpp#15 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/include/hsa.h#5 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/include/hsa_ext_image.h#5 integrate
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#229 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#25 edit


[ROCm/clr commit: bc904d8335]
2016-11-30 13:47:21 -05:00
foreman 2caf2b7833 P4 to Git Change 1347598 by atamazov@ata_h1 on 2016/11/30 06:48:06
SWDEV-79309 - [ROCm][OCLonLC][AMDGPU asm] OclElf: Correctly skip symbols which have special section indexes.

	[Issues]
	Kernels which contain absolute symbols can't be run. Error message looks like:
	"OclElf::getSymbolInfo() failed in gelf_getshdr() - Invalid argument."

	[Reason]
	Symbols which have special section indexes (e.g. absolute symbols)
	are incorrectly handled by the compiler library.

	[Solution]
	Correctly skip symbols which have special section indexes in the loader.
	Promote the fix into compiler/legacy-lib at once.

	[Remarks/Misc]
	Absolute symbols do not normally produced by OpenCL compiler,
	but may come from kernels written in assembly language.
	AMDGPU asm exports all symbols, even ABSOLUTE LOCAL HIDDEN INTERNAL etc.
	Impossibility to disable export of useless symbols is known issue of llvm-mc
	core, see https://llvm.org/bugs/show_bug.cgi?id=27201.
	Note that presence of useless symbols does not make ELF invalid.

	[Review] http://ocltc.amd.com/reviews/r/11921/
	Evgeny Mankov (OK)

	[Tests]
	Tested that issue with asm kernels has gone.
	PASS TeamCity - Pre-checkin for CL1347161 timestamped:2016-11-29 21:54:40 Rev:0063

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/loaders/elf/elf.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/elf.cpp#36 edit


[ROCm/clr commit: 71f5fb7e8f]
2016-11-30 06:53:56 -05:00
foreman cb2ce062b8 P4 to Git Change 1347509 by johtaylo@johtaylo-jtincrementor-increment on 2016/11/30 03:00:03
SWDEV-2 - Change OpenCL version number from 2290 to 2291.

Affected files ...

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


[ROCm/clr commit: 61a64a192b]
2016-11-30 02:12:59 -06:00
Aditya Atluri 2c51f72e41 added half add and fma intrinsic
Change-Id: Ifa60c1a7065f524f069291bb00d987b11c836cc4


[ROCm/clr commit: e6df8cb28c]
2016-11-29 19:46:01 -06:00
pensun 946e9b4163 Change to use produce device name by default
Change-Id: Ie2cee2a2e94a08b5874a2f5abee5d1ab6c9fdf47


[ROCm/clr commit: 504fcaf786]
2016-11-29 11:34:06 -06:00
Rahul Garg 4421ff4fb6 Added support for hipMemGetAddressRange
Change-Id: I99a796a4eb765152cf15a12d6a86b58684d34f50


[ROCm/clr commit: bda0704213]
2016-11-29 22:04:09 +05:30
foreman eb3e0d0332 P4 to Git Change 1346875 by johtaylo@johtaylo-jtincrementor-increment on 2016/11/29 03:00:05
SWDEV-2 - Change OpenCL version number from 2289 to 2290.

Affected files ...

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


[ROCm/clr commit: e46fadfb28]
2016-11-29 03:12:57 -05:00
pensun b4b8de3cd7 Change the parameter type of hipDeviceGetPCIBusID to char*
Change-Id: Ia72f403126e95f65da53208fc246f45d1417381f


[ROCm/clr commit: 8e2980c7ef]
2016-11-28 10:47:18 -06:00
foreman fedefcba5e P4 to Git Change 1346404 by johtaylo@johtaylo-jtincrementor-increment on 2016/11/28 03:00:04
SWDEV-2 - Change OpenCL version number from 2288 to 2289.

Affected files ...

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


[ROCm/clr commit: 68e3bfc72d]
2016-11-28 03:09:32 -05:00
foreman 4986b0a9db P4 to Git Change 1346311 by johtaylo@johtaylo-jtincrementor-increment on 2016/11/27 03:00:04
SWDEV-2 - Change OpenCL version number from 2287 to 2288.

Affected files ...

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


[ROCm/clr commit: 8195a9043b]
2016-11-27 03:10:33 -05:00
Ben Sander 68f1a627e0 Add more debug info
[ROCm/clr commit: a504df955e]
2016-11-26 08:56:02 -06:00
foreman f9b63064a3 P4 to Git Change 1346279 by johtaylo@johtaylo-jtincrementor-increment on 2016/11/26 03:00:04
SWDEV-2 - Change OpenCL version number from 2286 to 2287.

Affected files ...

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


[ROCm/clr commit: 96bed3cbf4]
2016-11-26 03:06:23 -05:00
foreman 89557a3f1b P4 to Git Change 1346190 by gandryey@gera-w8 on 2016/11/25 15:12:02
SWDEV-86035 - Add PAL backend to OpenCL
	- Correct a fix from CL#1346120. Just remove the asserts, since size is used in the abstraction  layer setup and represents cl_mem object.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#27 edit


[ROCm/clr commit: 8c56088f43]
2016-11-25 15:21:59 -05:00
Ben Sander e29f253256 Tweak profiler doc
Change-Id: I7be7c44467510e38ae850e1e0a14209a3b4380f1


[ROCm/clr commit: a990806b6c]
2016-11-25 14:06:59 -06:00
foreman 38d68a7e51 P4 to Git Change 1346120 by gandryey@gera-w8 on 2016/11/25 13:00:01
SWDEV-86035 - Add PAL backend to OpenCL
	- Fix a regression after LC path integration. sampler, image and queue pointers have uint64_t size always.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#26 edit


[ROCm/clr commit: 41eceed8f1]
2016-11-25 13:04:36 -05:00
foreman 922d13dea3 P4 to Git Change 1345996 by johtaylo@johtaylo-jtincrementor-increment on 2016/11/25 03:00:04
SWDEV-2 - Change OpenCL version number from 2285 to 2286.

Affected files ...

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


[ROCm/clr commit: 38be7dfff4]
2016-11-25 03:20:16 -05:00
foreman b0be4f1dae P4 to Git Change 1345883 by gandryey@gera-w8 on 2016/11/24 17:31:06
SWDEV-102801 - OpenCL on PAL - mGPU SVM support
	- Update SVM path to use existent cache coherency logic for MGPU

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_memobj.cpp#80 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#560 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#130 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#409 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#38 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#25 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#39 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#123 edit


[ROCm/clr commit: 5036b5da85]
2016-11-24 17:43:45 -05:00
foreman ee411daa7c P4 to Git Change 1345883 by gandryey@gera-w8 on 2016/11/24 17:31:06
SWDEV-102801 - OpenCL on PAL - mGPU SVM support
	- Update SVM path to use existent cache coherency logic for MGPU

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_memobj.cpp#80 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#560 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#130 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#409 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#38 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#25 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#39 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#123 edit


[ROCm/clr commit: afeda63f68]
2016-11-24 17:43:45 -05:00
foreman ec1b06261b P4 to Git Change 1345575 by johtaylo@johtaylo-jtincrementor-increment on 2016/11/24 03:00:04
SWDEV-2 - Change OpenCL version number from 2284 to 2285.

Affected files ...

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


[ROCm/clr commit: e4dc501e91]
2016-11-24 03:06:41 -05:00
Aditya Atluri 62e0623d18 added support for rcp for float and double
Change-Id: Ibeba3a9f64494fc0a176bcb4a854fb2f56567b55


[ROCm/clr commit: de89b25d52]
2016-11-23 20:01:18 -06:00
Aditya Atluri 11018fa0f6 added fma for double and float
1. Added fma intrinsic support for double and float
2. Added test for fma

Change-Id: I909fdbec34a3d12c03ba6eff3a39376a7128ee43


[ROCm/clr commit: cc1f8a1011]
2016-11-23 18:22:05 -06:00
foreman be97bf3aaf P4 to Git Change 1345399 by cpaquot@hog-ocl on 2016/11/23 17:13:30
SWDEV-107558 - Wrong path for map/unmap images
	If mapMemory is allocated, we shouldn't use the read/writeImage path since they lock/unlock the host pointer which in this case, is mapped to GPU memory already.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/11891/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#20 edit


[ROCm/clr commit: 45bf0e3ba6]
2016-11-23 17:20:51 -05:00
foreman 894ae9eec3 P4 to Git Change 1345359 by lmoriche@lmoriche_opencl_dev on 2016/11/23 15:52:29
SWDEV-94610 - Initialize printfdbg_ to null in VirtualDevice::VirtualDevice

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#19 edit


[ROCm/clr commit: e82d2948f5]
2016-11-23 16:02:51 -05:00
pensun 29a69adda7 Add some missing APIs on nv path and hipify
Change-Id: Ic0f4740ab06bf70b1de61b39fedc7a6e7605cb61


[ROCm/clr commit: 69b43ec17c]
2016-11-23 14:36:30 -06:00
pensun bf34811dbe Add several missing APIs in hipify
Change-Id: I58912871cb0b10128f221ef26a11b0d69fb7873c


[ROCm/clr commit: a4b43a6610]
2016-11-23 14:06:18 -06:00
Aditya Atluri a2ecbc2d6e Added fast math flag
1. Use -DHIP_FAST_MATH to make precise math functions compiled to fast math
2. Added double fast math functions for sqrt
3. Changed hipcc to parse -use_fast_math (not working)
4. Added passed tag to hipFloatMath test

Change-Id: I72884b2436b4efe61e9a9297346c1358fee38a2d


[ROCm/clr commit: c2f6ecf264]
2016-11-23 11:19:15 -06:00
Ben Sander 79c92fdb23 Add toc to hip_profiling.md
Change-Id: I3ae100f12686d0398a0403b78ca571382acce135


[ROCm/clr commit: ddb1845ab5]
2016-11-23 08:36:08 -06:00
Ben Sander e2f024fc55 Improve docs in some places
Change-Id: If31e84fbf0c8595ca72edb842dce7ce47783579b


[ROCm/clr commit: 9db93a1b96]
2016-11-23 08:16:18 -06:00
Ben Sander 2e63b780f4 Improve debug capabilities.
Print TID mapping at init when HIP_TRACE_API=1.
Print base host/dev info from tracker during copy.

Change-Id: I84e26d7b801567e5a91baad36126fb590920ec87


[ROCm/clr commit: 111b57ddd0]
2016-11-23 08:16:18 -06:00
Ben Sander 4a60fbc922 Improve profiler and debug documentation
[ROCm/clr commit: 4bcb0fac22]
2016-11-23 08:15:40 -06:00
Rahul Garg cc61f4a720 Removed nested HIP calls from hip_device functions
Change-Id: I18785b0ee27e32fb8950982fa5c3a64d1ae6a9b8


[ROCm/clr commit: 8a2685e6cd]
2016-11-23 18:37:06 +05:30