Commit Graph

12314 Commits

Author SHA1 Message Date
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
foreman 235e616bf6 P4 to Git Change 1261745 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/04/26 03:00:14
SWDEV-2 - Change OpenCL version number from 2105 to 2106.

Affected files ...

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


[ROCm/clr commit: 829e3d0f6e]
2016-04-26 03:23:48 -04:00
foreman b8b14641fc P4 to Git Change 1261645 by smekhano@stas-nova-hsa on 2016/04/25 18:33:13
SWDEV-92625 - x86 RT: fix division by zero in cpumapping::HCtoDCmap
	In many cases default alignment passed as 0. At the same time minimal possible alignment is 1,
	while cpumappings uses this value as a divisor. Set it to max(passed alignment, 1).

	Testing: smoke, precheckin, conformance really quick on cpu
	Reviewed by German Andreev

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpumapping.cpp#5 edit


[ROCm/clr commit: 62a98d8da8]
2016-04-25 18:43:12 -04:00
foreman 74523f0003 P4 to Git Change 1261640 by gandryey@gera-w8 on 2016/04/25 18:21:12
SWDEV-90482 - [Afterswitch] Interop from OpenGL to OpenCL is broken in one driver and crashes in another
	- Make sure SRD resource is reported to OS if program contains static samplers

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#314 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.hpp#67 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#4 edit


[ROCm/clr commit: c484ae9061]
2016-04-25 18:36:37 -04:00
Ben Sander f000ced85c add hostname
[ROCm/clr commit: 31f41ba52a]
2016-04-25 15:13:23 -05:00
bwicakso 8c51afe53b Merge remote-tracking branch 'refs/remotes/origin/privatestaging' into kernel_synchronization
[ROCm/clr commit: 5552301de2]
2016-04-25 14:43:28 -05:00
bwicakso f4b7559be8 Update with original
[ROCm/clr commit: a849321bd9]
2016-04-25 14:42:35 -05:00
bwicakso 4efcfdb83c Merge remote-tracking branch 'refs/remotes/origin/privatestaging' into kernel_synchronization
[ROCm/clr commit: 4aca1babe8]
2016-04-25 13:57:28 -05:00
bwicakso 64867da465 Merge from original
[ROCm/clr commit: 7175ca8824]
2016-04-25 13:55:44 -05:00
Aditya Atluri 1e5fa8456e fixed hipmemset to use native ihip api
[ROCm/clr commit: f571c5ec7c]
2016-04-25 11:05:30 -05:00
foreman cdcb59d5ef P4 to Git Change 1261389 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/04/25 03:00:10
SWDEV-2 - Change OpenCL version number from 2104 to 2105.

Affected files ...

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


[ROCm/clr commit: 9775dd2ba0]
2016-04-25 03:08:28 -04:00
foreman 424e40fd04 P4 to Git Change 1261314 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/04/24 03:00:10
SWDEV-2 - Change OpenCL version number from 2103 to 2104.

Affected files ...

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


[ROCm/clr commit: ee51c7b281]
2016-04-24 03:12:29 -04:00
foreman 85d1a3c83b P4 to Git Change 1261291 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/04/23 03:00:11
SWDEV-2 - Change OpenCL version number from 2102 to 2103.

Affected files ...

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


[ROCm/clr commit: 40e4f4f88c]
2016-04-23 03:17:16 -04:00
Aditya Atluri 7cce632f3e added hcc workweek to ldg test
[ROCm/clr commit: 456be2af9c]
2016-04-22 09:25:09 -05:00