2
0
Gráfico de cometimentos

13557 Cometimentos

Autor(a) SHA1 Mensagem Data
Ben Sander 20043d602e Merge branch 'privatestaging' into grid_launch 2016-05-02 18:38:20 -05:00
foreman efa52f77ef 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
2016-05-02 16:43:00 -04:00
Ben Sander caadac1005 Merge branch 'p2p' into privatestaging 2016-05-02 13:48:06 -05:00
Ben Sander 230b6546b5 Merge branch 'privatestaging' into p2p 2016-05-02 13:38:01 -05:00
Ben Sander a398cd4cda PASS with warning if not enough GPUs detected. 2016-05-02 13:37:14 -05:00
Ben Sander aea31ad4e1 Explicitly include <string> 2016-05-02 12:49:53 -05:00
Ben Sander c5bec313ee Use hipconfig to determine platform 2016-05-02 11:33:22 -05:00
Ben Sander 79983a1f4b Merge branch 'privatestaging' into p2p 2016-05-02 11:10:10 -05:00
Ben Sander 83cf3ed2b5 Add clang-hipify as optional make step 2016-05-02 10:20:00 -05:00
Ben Sander 5d7f1682f4 split INSTALL.md into separate file 2016-05-02 10:19:46 -05:00
Aditya Atluri c46e03de96 removed warnings 2016-04-30 12:11:04 -05:00
foreman 89f38b0f7e 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
2016-04-29 11:00:59 -04:00
foreman c12399b2e6 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
2016-04-29 03:08:39 -04:00
Ben Sander 563591b065 merge 2016-04-28 18:24:33 -05:00
Ben Sander 9e36ee9b95 enable hipHostRegister 2016-04-28 17:54:03 -05:00
Ben Sander 06df8bbfbc Doc update 2016-04-28 17:41:11 -05:00
Ben Sander 87c355f09d Add tip on making local HIP (mostly for HIP devs) 2016-04-28 17:41:11 -05:00
Ben Sander 0c636007a2 add hostname 2016-04-28 17:41:11 -05:00
Ben Sander a16c58ed46 remove kalmar_defines.h 2016-04-28 17:40:17 -05:00
Ben Sander 9363e495e1 remove hacks to disable math or LDG functions. 2016-04-28 14:14:22 -05:00
Ben Sander c60614eca5 Properly pair #if/#endif 2016-04-28 13:43:32 -05:00
Ben Sander 5c098d5852 merge fix 2016-04-28 13:24:40 -05:00
Ben Sander 06e54694c5 hipcc uses -stdlib=stdlibc++ by default.
hipcc switches to -stdlib=libc++ if user requests it.
hack to disable LDG.
2016-04-28 13:17:49 -05:00
bwicakso c949be355c Merge pull request #24 from bwicakso/kernel_synchronization
Fix for kernel synchronization
2016-04-28 11:59:11 -05:00
foreman 23266526c9 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
2016-04-28 03:10:29 -04:00
Jack Chung a5508ae185 Fix compilation error in hipSinglePrecisionMathHost test 2016-04-27 17:46:27 -05:00
Aditya Atluri ec8cedc70e changed to guard from hc.hpp 2016-04-27 17:46:27 -05:00
Ben Sander 7f1bd9e1e5 Doc update 2016-04-27 17:45:14 -05:00
Ben Sander 26b87d5faf Add tip on making local HIP (mostly for HIP devs) 2016-04-27 11:55:09 -05:00
foreman 889bcdcf8a 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
2016-04-27 03:15:35 -04:00
foreman 829e3d0f6e 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
2016-04-26 03:23:48 -04:00
foreman 62a98d8da8 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
2016-04-25 18:43:12 -04:00
foreman c484ae9061 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
2016-04-25 18:36:37 -04:00
Ben Sander 31f41ba52a add hostname 2016-04-25 15:13:23 -05:00
bwicakso 5552301de2 Merge remote-tracking branch 'refs/remotes/origin/privatestaging' into kernel_synchronization 2016-04-25 14:43:28 -05:00
bwicakso a849321bd9 Update with original 2016-04-25 14:42:35 -05:00
bwicakso 4aca1babe8 Merge remote-tracking branch 'refs/remotes/origin/privatestaging' into kernel_synchronization 2016-04-25 13:57:28 -05:00
bwicakso 7175ca8824 Merge from original 2016-04-25 13:55:44 -05:00
Aditya Atluri f571c5ec7c fixed hipmemset to use native ihip api 2016-04-25 11:05:30 -05:00
foreman 9775dd2ba0 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
2016-04-25 03:08:28 -04:00
foreman ee51c7b281 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
2016-04-24 03:12:29 -04:00
foreman 40e4f4f88c 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
2016-04-23 03:17:16 -04:00
Aditya Atluri 456be2af9c added hcc workweek to ldg test 2016-04-22 09:25:09 -05:00
Aditya Atluri c404f60621 Fixed git spills 2016-04-22 09:19:05 -05:00
Aditya Atluri a2bc6ebc9f added workweek to hip_ldg 2016-04-22 09:14:26 -05:00
foreman 2b622feb2c P4 to Git Change 1260865 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/04/22 03:00:17
SWDEV-2 - Change OpenCL version number from 2101 to 2102.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1848 edit
2016-04-22 03:14:53 -04:00
Maneesh Gupta 091ec702a2 Revert "added full data type support for __ldg"
This reverts commit 3aac6d45ad.

Conflicts:
	include/hcc_detail/hip_ldg.h
2016-04-22 11:12:00 +05:30
Maneesh Gupta 02e6fc27f4 Merge branch 'release_0.84.00' into privatestaging
Conflicts:
	include/hcc_detail/hip_runtime.h
	src/hip_hcc.cpp
2016-04-22 10:55:58 +05:30
Aditya Atluri 1001796485 added full make_datatype support 2016-04-21 17:25:30 -05:00
Aditya Atluri 48f3762160 reorg make_datatype feature 2016-04-21 14:51:19 -05:00