Commit Graph

13677 Commits

Author SHA1 Message Date
foreman 10e99fa6f5 P4 to Git Change 1265097 by smekhano@stas-rampitec-hsa on 2016/05/04 12:59:20
SWDEV-90709 - Complib: unquote command line arguments for -I and -D before passing to clang
	Testing: smoke, precheckin
	Reviewed by Evgeny Mankov

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.cpp#36 edit


[ROCm/clr commit: 88638b2b49]
2016-05-04 13:08:59 -04:00
Maneesh Gupta a1e6ca59c3 Bump HIP package version to 0.86.00
[ROCm/clr commit: 003eacfc86]
2016-05-04 17:17:04 +05:30
Maneesh Gupta d33b8ebcb3 Handle missing LLVM package dependency for clang hipify
[ROCm/clr commit: c95c1903b3]
2016-05-04 14:47:26 +05:30
Maneesh Gupta 940521f3e3 Modify cmake for better clang hipify integration
[ROCm/clr commit: 42a0126f38]
2016-05-04 14:44:00 +05:30
foreman 50ef09477c P4 to Git Change 1264764 by wchau@wchau_WIN_OCL_HSA on 2016/05/03 16:46:02
SWDEV-93075 - [OCL] Access violation in clCreateContext() in amdocl.dll when DX9 and DX11 devices are used.  Add support for multiple external devices for context creation to make sure the devices are initialized with proper type.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d10.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d11.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d9.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpudevice.hpp#95 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#274 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#547 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#160 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#128 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsadevice.cpp#62 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsadevice.hpp#30 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#41 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/context.hpp#25 edit


[ROCm/clr commit: 77a1f244b2]
2016-05-03 17:00:14 -04:00
foreman be4288bc18 P4 to Git Change 1264764 by wchau@wchau_WIN_OCL_HSA on 2016/05/03 16:46:02
SWDEV-93075 - [OCL] Access violation in clCreateContext() in amdocl.dll when DX9 and DX11 devices are used.  Add support for multiple external devices for context creation to make sure the devices are initialized with proper type.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d10.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d11.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d9.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpudevice.hpp#95 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#274 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#547 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#160 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#128 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsadevice.cpp#62 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsadevice.hpp#30 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#41 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/context.hpp#25 edit


[ROCm/clr commit: 6a5cdbf60c]
2016-05-03 17:00:14 -04:00
foreman 2b8e8294c1 P4 to Git Change 1264675 by gandryey@gera-w8 on 2016/05/03 14:13:52
SWDEV-86170 - Need OCL changes for Compute Unit Reservation
	- Add support for RT and Medium priority queues
	- Use the new packet for the CU mask programming. It will allow CU reservation for RT queue in KMD.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_command.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/library/hsa/hsail/src/devenq/schedule.cl#12 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#546 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#159 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#127 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#402 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.hpp#139 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLContext.cpp#81 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLContext.h#52 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#165 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/backend.h#12 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#22 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.hpp#17 edit


[ROCm/clr commit: 0c54d874fb]
2016-05-03 14:32:32 -04:00
foreman 21610ac41b P4 to Git Change 1264675 by gandryey@gera-w8 on 2016/05/03 14:13:52
SWDEV-86170 - Need OCL changes for Compute Unit Reservation
	- Add support for RT and Medium priority queues
	- Use the new packet for the CU mask programming. It will allow CU reservation for RT queue in KMD.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_command.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/library/hsa/hsail/src/devenq/schedule.cl#12 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#546 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#159 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#127 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#402 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.hpp#139 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLContext.cpp#81 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLContext.h#52 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#165 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/backend.h#12 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#22 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.hpp#17 edit


[ROCm/clr commit: 9d15802430]
2016-05-03 14:32:32 -04:00
Ben Sander 0b9fcc8ea3 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
[ROCm/clr commit: b8df982dcd]
2016-05-03 11:16:09 -05:00
Ben Sander 76e08e3ea1 libstdc++ is default
[ROCm/clr commit: a35e995244]
2016-05-03 11:14:27 -05:00
Ben Sander 81f7559a37 doc update, add proposed .86 release notes
[ROCm/clr commit: c40b212430]
2016-05-03 11:11:04 -05:00
foreman 8fd7c40f36 P4 to Git Change 1264616 by lmoriche@lmoriche_opencl_dev on 2016/05/03 11:39:29
SWDEV-78467 - OpenCL LiquidFlash feature
	       Enable LiquidFlash on mainline

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#132 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#49 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#273 edit


[ROCm/clr commit: afb6279073]
2016-05-03 11:48:35 -04:00
foreman be416e53ff P4 to Git Change 1264616 by lmoriche@lmoriche_opencl_dev on 2016/05/03 11:39:29
SWDEV-78467 - OpenCL LiquidFlash feature
	       Enable LiquidFlash on mainline

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#132 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#49 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#273 edit


[ROCm/clr commit: 3736e175a3]
2016-05-03 11:48:35 -04:00
Ben Sander c578bb72ef Update porting guide docs on -stdlib
[ROCm/clr commit: 72f7a15e54]
2016-05-03 09:20:41 -05:00
Ben Sander a079847536 comment change
[ROCm/clr commit: 07b5785da2]
2016-05-03 08:33:35 -05:00
Maneesh Gupta bd3692dd12 hcc_dialects report PASSED when passed
[ROCm/clr commit: c2c54aa299]
2016-05-03 14:32:59 +05:30
Maneesh Gupta 3ce3e64493 bit_extract reports PASSED when passed
[ROCm/clr commit: ab671b729d]
2016-05-03 14:19:25 +05:30
Ben Sander 18635995af add fallback to libc++
[ROCm/clr commit: 6a960aff38]
2016-05-02 23:50:39 -05:00
Ben Sander e6ec2439ec Link test with libc++
[ROCm/clr commit: 8cce8dbe61]
2016-05-02 23:38:43 -05:00
Ben Sander ef3273c1b1 add make_hip_executable_libcpp
[ROCm/clr commit: c79dad8000]
2016-05-02 23:32:52 -05:00
Ben Sander 41c57d1e00 Merge branch 'privatestaging' into grid_launch
[ROCm/clr commit: 20043d602e]
2016-05-02 18:38:20 -05:00
foreman 71dc1ef253 P4 to Git Change 1264269 by smekhano@stas-nova-hsa on 2016/05/02 16:32:25
SWDEV-77584 - HSA HLC: refactoring of min/max processing and folding

	1. Fixed correctness bug: if a source contains code like (x > y) ? x : y, HLC was folding
	this and similar patterns to min and max instructions. The problem is with NaN handling.
	Such a pattern may return NaN if one of two arguments is a NaN. All our instructions return
	a number in this case, except for gcn instruction returning a qNaN if input is sNaN.
	For a qNaN a number is retuned in any way. Therefor such folding is only correct if NaN handling
	is disabled. Patterns are predicated to work with -cl-finite-math-only or -cl-fast-relaxed-math
	which includes the former option.

	NB: Performance regressions are expected in programs which do not use either of these options.

	2. Compiler lib did hot handle -cl-finite-math-only. Also added handling of -cl-no-signed-zeros,
	even though it does not affect code generation because there is no llvm counterpart for it.

	3. Patterns for NaN agnostic comparison codes are added. We are getting these in case if finite
	only math is requested.

	4. Removed patterns for __hsail_min_f* and __hsail_max_f*. Instead these intrinsics are lowered
	to fminnum and fmaxnum llvm operations with the same semantics. This allows to decrease the number
	of patterns and simplify handling.

	5. For f32 we were only producing gcn versions min and max with source patterns if gcn is enabled.
	Added similar lowering to standard min/max HSAIL operations if gcn is disabled.

	6. Added lowering of fmaxnum/fminnum to more efficient gcn operations if gcn is enabled.
	Neither OpenCL nor LLVM IR semantics are violated by this.

	7. Moved GCN media intrinsics definitions into the GCN directory.

	8. Added folding of gcn f32 instructions min(max), min(min), max(max) into corresponding gcn
	instructions med3, min3 and max3. This should have been helpful for color clamping.
	Performance testing showed these are slow, however. T-Rex test from compubench has slowed down
	by 50 times for no obvious reason. Therefor folding is disabled by default. The option -enable-gcn-mm3
	is added to enable the folding for testing purposes.

	Testing: smoke, precheckin, luxmark, compubench, BasemarkCL,
	conformance: commonfns, bruteforce -w, relationals, select
	Reviewed by Brian Sumner

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/codegen.cpp#68 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/opt_level.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.cpp#35 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/GCN/HSAILArithmetic.td#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/GCN/HSAILFusion.td#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/GCN/HSAILIntrinsics.td#4 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILArithmetic.td#45 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILFusion.td#28 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILISelDAGToDAG.cpp#68 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILISelLowering.cpp#113 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILInstrInfo.td#21 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILIntrinsics.td#70 edit
... //depot/stg/opencl/drivers/opencl/tests/hsa/src/llc/opt/minmax/minmaxf3pat.cl#1 add
... //depot/stg/opencl/drivers/opencl/tests/hsa/tlst/llc_opt.tlst#93 edit


[ROCm/clr commit: efa52f77ef]
2016-05-02 16:43:00 -04:00
Ben Sander b578915e89 Merge branch 'p2p' into privatestaging
[ROCm/clr commit: caadac1005]
2016-05-02 13:48:06 -05:00
Ben Sander 183aaa5888 Merge branch 'privatestaging' into p2p
[ROCm/clr commit: 230b6546b5]
2016-05-02 13:38:01 -05:00
Ben Sander eaf4e4a0ee PASS with warning if not enough GPUs detected.
[ROCm/clr commit: a398cd4cda]
2016-05-02 13:37:14 -05:00
Ben Sander 7f90e11724 Explicitly include <string>
[ROCm/clr commit: aea31ad4e1]
2016-05-02 12:49:53 -05:00
Ben Sander d7933df2d3 Use hipconfig to determine platform
[ROCm/clr commit: c5bec313ee]
2016-05-02 11:33:22 -05:00
Ben Sander 070b88766f Merge branch 'privatestaging' into p2p
[ROCm/clr commit: 79983a1f4b]
2016-05-02 11:10:10 -05:00
Ben Sander e6832413fb Add clang-hipify as optional make step
[ROCm/clr commit: 83cf3ed2b5]
2016-05-02 10:20:00 -05:00
Ben Sander fb2a9f66fc split INSTALL.md into separate file
[ROCm/clr commit: 5d7f1682f4]
2016-05-02 10:19:46 -05:00
Aditya Atluri 277039bde8 removed warnings
[ROCm/clr commit: c46e03de96]
2016-04-30 12:11:04 -05:00
foreman 5c6e600d1a P4 to Git Change 1263609 by emankov@em-hsa-amd on 2016/04/29 10:45:48
SWDEV-79309 - Back out changelist 1252154 due to AMDIL regression SWDEV-93034

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/include/v0_8/aclStructs.h#7 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/include/v0_8/aclTypes.h#4 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/acl.cpp#42 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#93 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/hsail_be.cpp#67 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_8/aclStructs.h#24 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_8/aclTypes.h#9 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#16 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.h#25 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/CLAssumptionCheck.cpp#50 edit


[ROCm/clr commit: 89f38b0f7e]
2016-04-29 11:00:59 -04:00
foreman 021823290c P4 to Git Change 1263462 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/04/29 03:00:13
SWDEV-2 - Change OpenCL version number from 2108 to 2109.

Affected files ...

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


[ROCm/clr commit: c12399b2e6]
2016-04-29 03:08:39 -04:00
Ben Sander 445ca0c7ec merge
[ROCm/clr commit: 563591b065]
2016-04-28 18:24:33 -05:00
Ben Sander f5819ddcd5 enable hipHostRegister
[ROCm/clr commit: 9e36ee9b95]
2016-04-28 17:54:03 -05:00
Ben Sander 2a2bfb063a Doc update
[ROCm/clr commit: 06df8bbfbc]
2016-04-28 17:41:11 -05:00
Ben Sander 1c96a8215c Add tip on making local HIP (mostly for HIP devs)
[ROCm/clr commit: 87c355f09d]
2016-04-28 17:41:11 -05:00
Ben Sander 65ea6991e0 add hostname
[ROCm/clr commit: 0c636007a2]
2016-04-28 17:41:11 -05:00
Ben Sander cb7c61643b remove kalmar_defines.h
[ROCm/clr commit: a16c58ed46]
2016-04-28 17:40:17 -05:00
Ben Sander a73068d640 remove hacks to disable math or LDG functions.
[ROCm/clr commit: 9363e495e1]
2016-04-28 14:14:22 -05:00
Ben Sander 62da82d48c Properly pair #if/#endif
[ROCm/clr commit: c60614eca5]
2016-04-28 13:43:32 -05:00
Ben Sander b31e27f244 merge fix
[ROCm/clr commit: 5c098d5852]
2016-04-28 13:24:40 -05:00
Ben Sander b2608d2949 hipcc uses -stdlib=stdlibc++ by default.
hipcc switches to -stdlib=libc++ if user requests it.
hack to disable LDG.


[ROCm/clr commit: 06e54694c5]
2016-04-28 13:17:49 -05:00
bwicakso d1d758cd1f Merge pull request #24 from bwicakso/kernel_synchronization
Fix for kernel synchronization

[ROCm/clr commit: c949be355c]
2016-04-28 11:59:11 -05:00
foreman 9639a441c2 P4 to Git Change 1262904 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/04/28 03:00:11
SWDEV-2 - Change OpenCL version number from 2107 to 2108.

Affected files ...

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


[ROCm/clr commit: 23266526c9]
2016-04-28 03:10:29 -04:00
Jack Chung e263765fa4 Fix compilation error in hipSinglePrecisionMathHost test
[ROCm/clr commit: a5508ae185]
2016-04-27 17:46:27 -05:00
Aditya Atluri 8241a3dd75 changed to guard from hc.hpp
[ROCm/clr commit: ec8cedc70e]
2016-04-27 17:46:27 -05:00
Ben Sander 08721a2fda Doc update
[ROCm/clr commit: 7f1bd9e1e5]
2016-04-27 17:45:14 -05:00
Ben Sander b4bd9d851e Add tip on making local HIP (mostly for HIP devs)
[ROCm/clr commit: 26b87d5faf]
2016-04-27 11:55:09 -05:00
foreman 09f3119131 P4 to Git Change 1262241 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/04/27 03:00:15
SWDEV-2 - Change OpenCL version number from 2106 to 2107.

Affected files ...

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


[ROCm/clr commit: 889bcdcf8a]
2016-04-27 03:15:35 -04:00